Fix issue with PhpFpm Application Deployed on Kubernetes

@dcmexy, this could be temporary network issue, this is marked pending for you, please give it an another try.

@rahul456,

Thank you for attending to this.

However, the problem I had yesterday is still there. The website only becomes accessible when deployment is restarted forcing the one index.html to disappear. It shows a Wordpress install page as opposed to an Nginx welcome page as stated in the task description.

It failed to validate after submission and subsequently marked the task as failed. Should I assume that the task is complete like this?

@rahul456,

I submitted and it failed with the following error: Nginx is not working on port 80. In this case I explicitly added a containerPort 80 to the nginx container.

Please see open review: KodeKloud Engineer | Real Project Tasks on Real Systems

@dcmexy Please le me know how you restarted the deployment? I am struggling with this same task

@Chudo you can restart deployment with this command

kubectl rollout restart deployment nginx-phpfpm-dp.

1 Like

I’ve applied containerPort: 80 too, and facing the same error message (and the same html page display), and looking for idea how the service should be exposed.

@mmumshad @Inderpreet @Tej-Singh-Rana @rahul456, can we get some help here please…

Hello, @dcmexy
No doubt, YES. Please be patience.

I have checked in the “Review” section, you’ve already got a solution from other community members. Please analysis and try again.

@Tej-Singh-Rana,

There’s nothing in the suggestions that I hadn’t previously tried out. If you able to access the comments/video of my first attempt, you would see that I checked all that out. So I’m confident it wasn’t a configmap/Nginx config issue at all because I checked it out too.

What is consistent in all my attempts is that testing through the browser via port 30008 would not work unless the deployment gets updated/restarted. In my first attempt, it couldn’t even validate at all.

@mmumshad @Inderpreet @Tej-Singh-Rana @rahul456

It’s almost 5 days now and I’m still stuck with this task. If this is not going to get looked at by anybody, could a new task be assigned to me please. This is the only task I’ve got this whole week.

And just out of curiosity, has anyone been able to pass this task lately?

@dcmexy, sorry for the issue, this is marked success for you.

Hi @rahul456,

Please check again… Not marked success…

@dcmexy, please logout and then login again.

Something is definitely not right with this task… Please see the attached gif. It shows what happens when I try to validate… It resets and subsequently marks the task as failed.

kke

Thank you @rahul456. It is now marked success but I ended up getting only half the points. Also, I lost a whole week on this task, is it possible to get a new task any sooner?




i do this task right i change the default port but i failed i don’t know why really the last two lab i failed for no reason

I completed my task with refer to the Deploy Nginx and Phpfpm on Kubernetes

Hello Folks,

We apologise for the inconvenience. We are aware of this issue and working on to fix the same. It should be fixed soon and you will be assigned these tasks again.

image
this is the mistake
please check it