wordpress-quickstart icon indicating copy to clipboard operation
wordpress-quickstart copied to clipboard

readyness probe fails

Open durandom opened this issue 8 years ago • 2 comments

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

durandom avatar Nov 03 '17 15:11 durandom

the readyness and liveness require updated, I used http replace https and set the timeout as 3 second, the deployment worked well.

douzl avatar Apr 17 '18 09:04 douzl

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

GrahamCP avatar Apr 24 '18 03:04 GrahamCP