elasticsearch-operator
elasticsearch-operator copied to clipboard
Liveness & readiness probe fail in mutual_tls environment
As per https://istio.io/help/faq/security/#k8s-health-checks If mutual TLS is enabled, http and tcp health checks from the kubelet will not work since the kubelet does not have Istio-issued certificates.
We rather need to perform a curl command. e.g. livenessProbe: exec: command:
- curl
- -f
- http://localhost:8080/healthz # Replace port and URI by your actual health check initialDelaySeconds: 10 periodSeconds: 5
Would it be possible to change k8utils.go to do something like? : Handler: v1.Handler{ ExecAction: &v1.ExecAction{ Command: "curl -f http://localhost:9200"+clusterHealthURL, },
Cheers, Carol.
@carolvdlinde I don't see why not I guess if it accomplishes the same thing. The only downside is you would have to make sure curl
is available in the container.
I'm facing master discovery issue with istio proxy inject. Anyone has success with istio enabled?