Kubernetes - wait for other pod to be ready

后端 未结 4 1030
难免孤独
难免孤独 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:26

    Yes, it's possible using Init Containers (also, see this blog post for some background re timing) but a better, more Kubernetes-native pattern is to use retries and timeouts rather than hard-coding dependencies in this way.

提交回复
热议问题