I have configured a readinessProbe on my pod with a binary execution check, which connects to my running server (in the same container) and retrieves some health information (like ready for traffic).
Configured as a readinessProbe, the binary fails to contact my server and get the required info. It connects on a TCP socket. But it works correctly when I configured it as a livenessProbe.
Configuration. To make it work, I only changed the type from readinessProbe to livenessProbe.
"readinessProbe": {
"exec": {
"command": [
"/opt/bin/ready_probe",
"--check_ready_traffic",
"--service=myServer-service"
]
},
"initialDelaySeconds": 60,
"timeoutSeconds": 5
},
The service is for the server, to register it's host and port. This is OK.
Version used: kubernetes v1.1.0-origin-1107-g4c8e6f4
Thank you.