Liveness/Readiness probe failure for bitnami/zookeeper and bitnami/kafka image

1/24/2022

I am trying to add liveness and readinessprobe for zookeeper using bitnami/zookeeper image, but the pod creation is failing, please let me know what values need to be added in liveness and readiness probe.

Below is the value that I have tried with.

livenessProbe:
      enabled: true
      initialDelaySeconds: 120
      periodSeconds: 30
      timeoutSeconds: 5
      failureThreshold: 6
      successThreshold: 1
readinessProbe:
      enabled: true
      initialDelaySeconds: 120
      periodSeconds: 30
      timeoutSeconds: 5
      failureThreshold: 6
      successThreshold: 1

I am getting the below error.

[spec.containers0.livenessProbe: Required value: must specify a handler type, spec.containers0.readinessProbe: Required value: must specify a handler type]

-- SVD
apache-zookeeper
kubernetes
livenessprobe
readinessprobe

1 Answer

1/24/2022

The Kubernetes Probes as the livenessProbe and readinessProbe require a handler which is used for the probe. Kubernetes supports multiple handler types, e.g. a HTTP request probe or a liveness command probe. There are additional handler types, e.g. TCP probes. You can find all supported handler types in the documentation.<br> Please note that the handler configuration is required and there isn't a default handler type.

-- Jonas Breuer
Source: StackOverflow