Configuring Probes in Kubernetes

In Kubernetes, health checks are performed by configuring liveness probes or readiness probes. The liveness probes indicate when to restart a container and the readiness probes are used to know when a container can start accepting traffic. The HTTP endpoint in the TIBCO BusinessWorks™ Container Edition application is used to configure readiness probes in Kubernetes. The endpoint should access only after the application is started.

Setting Up Liveness Probe

To view the liveness of an application, you need to add the liveness probe in the configuration file. For more information, see Configure Liveness and Readiness Probes in Kubernetes documentation.

livenessProbe:
 httpGet:
   path: /_ping
   port: 7777

Setting Up Readiness Probe

To view the readiness of an application, you need to add the readiness probe in the manifest.yml file. For more information, see Configure Liveness and Readiness Probes in the Kubernetes documentation.
readinessProbe:
 # an http probe
 httpGet:
   path: /_ping
   port: 7777