Using Sample Scripts

Sample liveness scripts for CM, NoSQL and SQL containers are present in the TIBCO Cloud™ API Management - Local Edition distribution package at location samples/deploy/onprem/k8s

Procedure

  1. From sample liveness script, copy the following livenessProbe section defined under containers section. Do not copy complete sample script.
    livenessProbe:
      exec:
        command:
        - /bin/bash
        - -c
        - /usr/local/bin/sql-liveness-probe.sh
      failureThreshold: 10
      initialDelaySeconds: 300
      periodSeconds: 30
      successThreshold: 1
  2. Put the liveness probe section in the container yaml file under manifest folder.
    For example - liveness probe for SQL container should be put in all sql-pod-*.yaml present under manifest folder.
  3. In the yaml file, liveness probe section should be present under containers section after the imagePullPolicy tag.
    Indentation of liveness probe section should be proper. It should be in line with the imagePullPolicy tag.