I am trying to setup /ping on port websecure for my cloud kubernetes cluster.
here are parts of the traefik deployment yaml config with the ping and ports:
The "livenessProbe" is a config to check Traefik itself, "/ping" is a web address listen by Traefik itself on the web entryPoint, so the port of livenessProbe must set to 8000 as your entryPoint config.
port 8000 is the web which isn't used. We only accept websecure from outside which is 8443 in this pod.
The original configuration for liveiness and readiness before adding the ping.entrypoint is this:
I tried 8000 (ping.entryPoint=web) for liveinessProbe port while leaving the readiness port to 8443 and I get errors. I also tried port 9000 using -ping.entryPoint=traefik
For both if i have different readinessprode and liveiness probe, i get these errors:
10.245.0.1 - - [25/Sep/2020:13:30:44 +0000] "GET /ping HTTP/1.1" - - "-" "-" 9 "-" "-" 0ms
time="2020-09-25T13:30:44Z" level=error msg="close tcp [::]:8000: use of closed network connection" entryPointName=web
time="2020-09-25T13:30:44Z" level=error msg="accept tcp [::]:8000: use of closed network connection" entryPointName=web
time="2020-09-25T13:30:44Z" level=error msg="accept tcp [::]:8443: use of closed network connection" entryPointName=websecure
time="2020-09-25T13:30:44Z" level=error msg="accept tcp [::]:9000: use of closed network connection" entryPointName=traefik
time="2020-09-25T13:30:44Z" level=error msg="close tcp [::]:8443: use of closed network connection" entryPointName=websecure
time="2020-09-25T13:30:44Z" level=error msg="close tcp [::]:9000: use of closed network connection" entryPointName=traefikfik
So i started using the same port for readiness and liveiness trying both 8000 and entrypoint as web, and I still get the 404: