Ayon Nahiyan
Ayon Nahiyan

Reputation: 2200

kubernetes running pods in serial

In my kubernetes cluster I have several kind of pods. Some pods have to wait for other pods to start. To create a cluster I have to Run all the pods in a particular serial. This requires me to continuously check for states of previous pods. I want to reduce the time taken for creating cluster.

I want to explore 2 different solutions here:

  1. Is there a way I can add conditions like create pod 'a' if pod 'b' is in 'running' state?

  2. Is there a way I can pull all the images when creating pod and run them later in order. Since most of the time taken to create the pod is for pulling the image.

Upvotes: 1

Views: 445

Answers (1)

user2363318
user2363318

Reputation: 1067

Pet Sets might help you with this.

http://kubernetes.io/docs/user-guide/petset/

Upvotes: 1

Related Questions