Another challenging task on KodeKloud was the “Fix issue with PhpFpm Application Deployed on Kubernetes.” Initially, it seemed simple, but it ended up taking me almost 5 days to complete. I eventually decided to skip it when I realized that the information provided by KodeKloud and the checking mechanism were not functioning correctly.
Here’s an overview of the steps I followed for this task:
- First, I used the “get” command to check the status of all the services, configmaps, pods, and deployments. Everything appeared to be fine.
- The task required me to use the default nginx port on the service, so I edited the service configuration accordingly. Although the external IP was still pending, I proceeded with the change and set the port to 80.
- Next, I examined the configmap to ensure the correct name was used. I then edited the deployment to reflect the updated configmap name.
- Finally, I attempted to copy a file using the command kubectl cp /tmp/index.php nginx-phpfpm-dp-b848747b9-62248:/var/www/html -c nginx-container. I verified its success by executing a command and confirming that port 30008 was accessible, as evidenced by my screenshot. However, despite these efforts, I encountered the same error.
I also encountered difficulties with the review button, which prevented me from submitting my work. This issue may be related to the fact that this was my second review attempt.