If you need more than just static manifests, you can use the Kubernetes-native templating solution provided by kustomize.
After adding a manifest deployment, the configuration for this deployment will look similar to this example:
deployments: - name: my-deployment kubectl: manifests: - my-manifests/* - more-manifests/*
You can easily create a
kustomization.yaml file within your
my-manifests and within your
more-manifests folder and tell DevSpace CLI to deploy these manifest via
kustomize by modifying the configuration as follows:
deployments: - name: my-deployment kubectl: manifests: - my-manifests/ - more-manifests/ kustomize: true
This configuration would tell DevSpace CLI to deploy our application with the following commands:
kubectl apply -k manifests/ kubectl apply -k more-manifests/
If you only want one of the folders to be deployed via
kustomize, you will need to put them in separate deployment configurations.
Note the missing
manifestssection of the configuration with
kustomize: true. Removing the
*when using kustomize is highly recommended.