wordpress-quickstart
wordpress-quickstart copied to clipboard
readyness probe fails
I havent dug deeper into the why, but with the readyness probe enabled I was not able to deploy the app container (db worked fine) Then I removed the readyness probe and deployment went through
the readyness and liveness require updated, I used http replace https and set the timeout as 3 second, the deployment worked well.
Deploying on Minishift: both liveness and readiness probes failed consistently (5 attempts); see event log below. Fixed by increasing probes' timeout to 120 seconds (but looks like 2 seconds might be enough).
Scheduled default-scheduler Successfully assigned my-wordpress-site-1-tlwqq to localhost
SuccessfulMountVolume kubelet, localhost MountVolume.SetUp succeeded for volume "pv0040"
SuccessfulMountVolume kubelet, localhost MountVolume.SetUp succeeded for volume "default-token-h66lk"
Pulling kubelet, localhost pulling image "172.30.1.1:5000/wordpress/my-wordpress-site-img@sha256:54e381ef5a90399980568f72add78a36ab8e3c1f18ed5add7a0363564717cbf9"
Pulled kubelet, localhost Successfully pulled image "172.30.1.1:5000/wordpress/my-wordpress-site-img@sha256:54e381ef5a90399980568f72add78a36ab8e3c1f18ed5add7a0363564717cbf9"
Created kubelet, localhost Created container
Started kubelet, localhost Started container
Unhealthy kubelet, localhost Liveness probe failed: Get http://172.17.0.6:8080/wp-admin/install.php: dial tcp 172.17.0.6:8080: getsockopt: connection refused
Unhealthy kubelet, localhost Readiness probe failed: Get http://172.17.0.6:8080/wp-admin/install.php: dial tcp 172.17.0.6:8080: getsockopt: connection refused
Unhealthy kubelet, localhost Liveness probe failed: Get http://172.17.0.6:8080/wp-admin/install.php: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Unhealthy kubelet, localhost Readiness probe failed: Get http://172.17.0.6:8080/wp-admin/install.php: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Killing kubelet, localhost Killing container with id docker://wordpress:Container failed liveness probe.. Container will be killed and recreated.
BackOff kubelet, localhost Back-off restarting failed container