I Malla:
Another query :please help
In question number 1 of https://uklabs.kodekloud.com/topic/practice-test-application-failure-2/
Service name : mysql
Value inside pod:
Environment:
DB_Host: mysql-service
DB_User: root
DB_Password: paswrd
This difference causes the connectivity issue . I got the issue .
BUT AS A SOLUTION i changed the environment value to “mysql” without touching service name and receated the deployment object. I personally think its better to make change in the part where it is being consumed. here its pod .
Value inside pod:
Environment:
DB_Host: mysql
DB_User: root
DB_Password: paswrd
Therefore now i can curl and get <!-- <h1> DATABASE CONNECTION SUCCESSFUL !</h1> –>
BUT the test verification fails . It only marks it right if the service name is changed to “mysql-service”.
I was wondering if the tester in exam only follows one approach cause there could be multiple ways to solve a problem.