Kubernetes liveness probes with query string parameters

后端 未结 3 960
北海茫月
北海茫月 2021-01-13 05:15

I\'ve looked over the documentation and browsed the source, but I can\'t seem to figure out how to do this. Is there any way to send query string parameters along with the p

3条回答
  •  囚心锁ツ
    2021-01-13 06:05

    If you have some kind of token authorization (via get parameter) and you have health check on root (service-name/), you should omit the slash, for example:

    readinessProbe:
      httpGet:
        path: ?token=${TOKEN}
        port: 80
        scheme: HTTP
    

    I had to look through PR changes to find the way to specify it

提交回复
热议问题