0

My legacy server listens on two TCP ports. I want to put livenessProbe and readinessProbe on two ports. For single port it looks like the following. How to do it for 2 ports ?

livenessProbe:
  tcpSocket:
    port: 15772
  initialDelaySeconds: 10
  periodSeconds: 5
  failureThreshold: 5
readinessProbe:
  tcpSocket:
    port: 15772
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 5
Baptiste Mille-Mathias
  • 2,144
  • 4
  • 31
  • 37
Chandu
  • 1,837
  • 7
  • 30
  • 51
  • Does this answer your question? [Multiple liveness probes in kuberenetes](https://stackoverflow.com/questions/49172671/multiple-liveness-probes-in-kuberenetes) – Tummala Dhanvi Jan 21 '20 at 09:36

1 Answers1

0

Kubernetes pod object will not allow to keep more than one liveness and readiness probe per container. if the pod contains multiple containers, you can define multiple liveness/readiness probes for every containers.