How to make Helm install to use 'kubectl apply' instead of 'kubectl create'

1/11/2019

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.

-- Chandra
kubernetes
kubernetes-helm

1 Answer

1/11/2019

Short answer, I would try helm upgrade.

-- Rico
Source: StackOverflow