How to order deployments in v6? #2880
-
Hi, Checking the v5 documentation I can see that we use an array to guarantee the order of execution of the deployments. There was even a concurrent flag added to allow running deployments in parallel or not. For v6, the The documentation for v6 doesn't mention anything related to ordering anymore, and the How do I order the deployments in the latest version? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found a way to enforce the order using init containers. It's useful when you have an HTTP interface available to check the status of the other deployment. deployments:
app1:
helm:
chart:
name: component-chart
repo: https://charts.devspace.sh
values:
containers:
- image: app1:1.2.3
service:
name: app1
ports:
- port: 80
app2:
helm:
chart:
name: component-chart
repo: https://charts.devspace.sh
values:
initContainers:
- name: wait-for-app1
image: curlimages/curl:8.9.1
command:
- sh
args:
- -c
- |
while true; do
curl -sSf http://app1 && break
sleep 5
done
containers:
- image: app2:1.2.3 |
Beta Was this translation helpful? Give feedback.
I found a way to enforce the order using init containers. It's useful when you have an HTTP interface available to check the status of the other deployment.