Deployments are configured within the
deployments section of the
# An array of deployments (kubectl, helm, component) which will be deployed with DevSpace in the specified order deployments: - name: deployment-1 # Name of this deployment component: ... # Deploy a Component - name: deployment-2 # Name of this deployment kubectl: ... # Deploy Kubernetes manifests or Kustomizations (using kubectl and kustomize) - name: deployment-3 # Name of this deployment helm: ... # Deploy a Helm Chart - name: deployment-4 # Name of this deployment helm: ... # Deploy another Helm Chart ...
Unlike images which are build in parallel, deployments will be deployed sequentially following the order in which they are specified in the
The following config options exist for every deployment:
namestating the name of the deployment (required)
componentfor Configuring Component Deployments
kubectlfor Configuring Manifest Deployments
helmfor Configuring Helm Chart Deployments
namespacestating a namespace to deploy to (optional, see note below)
namespaceonly if you want to run a deployment in another namespace than the remaining deployments. Generally, DevSpace uses the default namespace of the current kube-context and runs all deployments in the same namespace.
You cannot use
kubectlin combination. You must specify exactly one of the three.