How to Configure Pod initialization in a specific order in Kubernetes?

AVarf

I want to know how I can start my deployments in a specific order. I am aware of initContainers but that is not working for me. I have a huge platform with around 20 deployments and 5 statefulsets that each of them has their own service, environment variables, volumes, horizontal autoscaler, etc. So it is not possible (or I don't know how) to define them in another yaml deployment as initContainers.

Is there another option to launch deployments in a specific order?

Suresh Vishnoi

To create dependency among the deployment, there need to be sequence of certain condition true.

For example, Wait for the pod "busybox1" to contain the status condition of type "Ready".

kubectl wait --for=condition=Ready pod/busybox1

after than you can rollout the next deployment.

for further detail kubect-wait

Here is an another example from @Michael Hausenblas job-dependacies, having dependencies among the job objects

if you’d like to kick off another job after worker has completed? Here you go:

$ kubectl -n waitplayground \
             wait --for=condition=complete --timeout=32s \     
             job/worker
job.batch/worker condition met

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

how to stop/pause a pod in kubernetes

分類Dev

Is the static initialization order of this code implementation specific?

分類Dev

How to configure angular with a provider that needs async initialization?

分類Dev

How to connect to a private IP from Kubernetes Pod

分類Dev

kubernetes - route ingress traffic to specific pod for some paths

分類Dev

how to configure already running cluster in kubernetes

分類Dev

How to map one single file into kubernetes pod using hostPath?

分類Dev

How to (properly) Deploy MongoDB on Kubernetes and Access it from Another Pod/Job?

分類Dev

in kubernetes how to print current pod rc and service configuration?

分類Dev

How to clear or clean specific pod from the local cocoapods cache

分類Dev

Kubernetes pod auto-scaling

分類Dev

Kubernetes - Get EBS Volume of a Pod

分類Dev

Can volumeMounts: in kubernetes pod be optional

分類Dev

Kubernetes MLflow Service Pod Connection

分類Dev

Running bash script in a kubernetes pod

分類Dev

JSP - How to show elements in a specific order?

分類Dev

how to connect a kubernetes pod to the outside world without a forwarding rule (google container engine)

分類Dev

How to auto scale on Kubernetes (GKE) with a pod that runs one per node and uses all available resources?

分類Dev

How to configure a specific IP in prometheus yml configuration file?

分類Dev

Prometheus with multi-container pod on kubernetes

分類Dev

Azure Kubernetes - not able to connect pod containers

分類Dev

Save file to Kubernetes pod during deployment

分類Dev

Two containers within same pod on Kubernetes

分類Dev

Monitor custom kubernetes pod metrics using Prometheus

分類Dev

How can I configure Linux to not require sudo for specific commands for specific users?

分類Dev

How can I sort given a specific order that I provide

分類Dev

how to sort the first letter in a speciif order and the second letter in other specific order

分類Dev

aClassic ASP : How to locate an specific order in array, or record-set. Then move Next or Previous, starting from that order

分類Dev

how to modify pod memory limit of a running pod

Related 関連記事

  1. 1

    how to stop/pause a pod in kubernetes

  2. 2

    Is the static initialization order of this code implementation specific?

  3. 3

    How to configure angular with a provider that needs async initialization?

  4. 4

    How to connect to a private IP from Kubernetes Pod

  5. 5

    kubernetes - route ingress traffic to specific pod for some paths

  6. 6

    how to configure already running cluster in kubernetes

  7. 7

    How to map one single file into kubernetes pod using hostPath?

  8. 8

    How to (properly) Deploy MongoDB on Kubernetes and Access it from Another Pod/Job?

  9. 9

    in kubernetes how to print current pod rc and service configuration?

  10. 10

    How to clear or clean specific pod from the local cocoapods cache

  11. 11

    Kubernetes pod auto-scaling

  12. 12

    Kubernetes - Get EBS Volume of a Pod

  13. 13

    Can volumeMounts: in kubernetes pod be optional

  14. 14

    Kubernetes MLflow Service Pod Connection

  15. 15

    Running bash script in a kubernetes pod

  16. 16

    JSP - How to show elements in a specific order?

  17. 17

    how to connect a kubernetes pod to the outside world without a forwarding rule (google container engine)

  18. 18

    How to auto scale on Kubernetes (GKE) with a pod that runs one per node and uses all available resources?

  19. 19

    How to configure a specific IP in prometheus yml configuration file?

  20. 20

    Prometheus with multi-container pod on kubernetes

  21. 21

    Azure Kubernetes - not able to connect pod containers

  22. 22

    Save file to Kubernetes pod during deployment

  23. 23

    Two containers within same pod on Kubernetes

  24. 24

    Monitor custom kubernetes pod metrics using Prometheus

  25. 25

    How can I configure Linux to not require sudo for specific commands for specific users?

  26. 26

    How can I sort given a specific order that I provide

  27. 27

    how to sort the first letter in a speciif order and the second letter in other specific order

  28. 28

    aClassic ASP : How to locate an specific order in array, or record-set. Then move Next or Previous, starting from that order

  29. 29

    how to modify pod memory limit of a running pod

ホットタグ

アーカイブ