k8wiz
Helm
Medium
Commands

Which flag to 'helm install' creates the namespace if it doesn't already exist?

Select your answer:

Show answer and explanation

Answer: --create-namespace

Explanation

helm install --create-namespace creates the --namespace target if it doesn't exist yet. Helm doesn't treat that namespace as part of the release, so helm uninstall leaves it behind.

Read more about Helm