Skip to content

How to order deployments in v6? #2880

Closed Answered by rafaeljusto
rafaeljusto asked this question in Q&A
Discussion options

You must be logged in to vote

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:
           …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rafaeljusto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant