Fix Helm chart README.md for Helm 3
## TL;DR;
```console
-$ helm install -n kyverno ./kyverno
+$ helm install --create-namespace -n kyverno kyverno ./kyverno
```
## Introduction
@@ -23,9 +23,11 @@ This chart bootstraps a Kyverno deployment on a [Kubernetes](http://kubernetes.i
Kyverno makes assumptions about naming of namespaces and resources. Therefore, the chart must be installed with the default release name `kyverno` (default if --name is omitted) and in the namespace 'kyverno':
```console
-$ helm install --namespace kyverno --name kyverno ./kyverno
+$ helm install --namespace kyverno kyverno ./kyverno
```
+Note that Helm by default expects the namespace to already exist before running helm install. If you want Helm to create the namespace, add --create-namespace to the command.
+
The command deploys kyverno on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
## Uninstalling the Chart
@@ -33,7 +35,7 @@ The command deploys kyverno on the Kubernetes cluster in the default configurati
To uninstall/delete the `kyverno` deployment:
```console
-$ helm delete -n kyverno
+$ helm delete -n kyverno kyverno
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
@@ -83,14 +85,14 @@ Parameter | Description | Default
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console
-$ helm install --namespace kyverno --name kyverno ./kyverno \
+$ helm install --namespace kyverno kyverno ./kyverno \
--set=image.tag=v0.0.2,resources.limits.cpu=200m
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
```console
-$ helm install --namespace kyverno --name kyverno ./kyverno -f values.yaml
+$ helm install --namespace kyverno kyverno ./kyverno -f values.yaml
```
> **Tip**: You can use the default [values.yaml](values.yaml)
