2
votes

When we run helm install ./ --name release1 --namespace namespace1, it creates the chart only if none of the deployments exist then it fails saying that the deployment or secret or any other objects already exist.

I want the functionality to create Kubernetes deployment or objects as part of helm install only those objects or deployments already not exists if exists helm should apply the templates instead of creating.

I have already tried 'helm install' by having a secret and the same secret is also there in the helm templates, so helm installs fail.

1
did you run with latest version of helm?BMW
Using Helm 2.9.1, i don't think helm has a feature to update existing object (like kubectl apply) instead of create as part helm install.Chandra

1 Answers

2
votes

Short answer, I would try helm upgrade.