UNCLASSIFIED - NO CUI

Skip to content

Add init containers to pods dependent on other services

This issue will add init containers to some pods which confirm the availability of other services before allowing the application container to come up.

Pods: ci-manager, ng-manager | Dependent Service: pipeline-service

Pods: ti-service, access-control | Dependent Service: mongodb-replicaset-chart

Possible init container:

initContainers:
        - name: check-for-pms
          image: harness/busybox:{{ .Values.versions.busybox }}
          command: ['sh', '-c', "until curl -s http://pipeline-service:12001/api/health; do echo waiting for pipeline-service; sleep 2; done"]
          securityContext:
            runAsNonRoot: true
            runAsUser: 101
Edited by Rob Mengert