Kubernetes - wait for other pod to be ready

后端 未结 4 1035
难免孤独
难免孤独 2020-12-03 03:07

I have two applications - app1 and app2, where app1 is a config server that holds configs for app2

4条回答
  •  借酒劲吻你
    2020-12-03 03:34

    initContainers:
        - name: wait-for-dependent-service
          image: stefanevinance/wait-for-200
          env:
            - name: URL
              value: http://dependent-service.{{.Release.Namespace}}.svc.cluster.local:3000
    

    Using https://hub.docker.com/r/stefanevinance/wait-for-200/

提交回复
热议问题