how to avoid encoding in kubernetes http liveness and readiness probes?

2/22/2019

My application has a health check at the endpoint /service?cmd=watchdog and when I try to configure a HTTP liveness probe in kubernetes, the above endpoint is getting encoded to utf-8 as it gets applied to the pods (when I do a describe on the pod), the health check is being applies as /service%3fcmd=watchdog and that situation does not work for me.

in my deployment.yaml:

httpGet:
    path: "/service/?cmd=watchdog"
    port: 8080

Is there any way to avoid the encoding / work around this situation?

-- Revanth Reddy
azure-aks
eks
kubernetes

0 Answers