Deploy Lamp Stack on Kubernetes Cluster - ConfigMap Mount Error

@Alistair_KodeKloud

Noted.

I’m still learning, and hence it took me a lot longer to figure that one out. And this is the main reason for subscribing to KodeKloud Engineer, to practice different scenarios and learn hands on. Now I won’t forget. Appreciate you spending time to help me out on this.

mysql container keep crashing
@Alistair_KodeKloud

Hi @Sandra-Konotey
I have given the solution to this challenge further up in this thread. Please follow it carefully.

Can you elaborate on this more? why wouldnt a random value work?

update: I think i figured this out but would love confirmation.

When you need to connect to a service (like mysql in this case) you use the service’s “address”. This is either an IP address or a DNS name.

If you needed to go and visit somebody, you would ask for their address first and then go there. You would not pick an address at random, turn up at this address and hope it was the person you intended to visit.

The only reason the other values are random is because the mysql instance is not yet intialized, and these values are being used to create a new database and set the new username and password in the mysql server.

Were the mysql server to be pre-existing then all the values would have to be clearly defined since it would be expecting known credentials and the name of an existing database in the server.