1

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?

Anthon
  • 69,918
  • 32
  • 186
  • 246
Revanth Reddy
  • 149
  • 2
  • 9
  • I don't see any problem, because if you notice, 0x3f in hex is equal to ? – c4f4t0r Feb 22 '19 at 17:59
  • 1
    Looks very similar to another question https://stackoverflow.com/questions/38532286/kubernetes-liveness-probes-with-query-string-parameters. Are you using Kubernetes older than 1.3? – Paul Annetts Feb 23 '19 at 06:21
  • @PaulAnnetts I am on kubernetes version 1.11 and kubctl client 1.13 – Revanth Reddy Feb 27 '19 at 18:34
  • I think that extra / character is confusing kubernetes into thinking that the ? is part of a path. Remove the / immediately before the ?, and try that. – dlaidlaw May 23 '19 at 22:33

0 Answers0