helm: Fix README examples

Not sure where --name came from? Maybe an older version of helm.

Ah, it's from v2.16.7
This commit is contained in:
Anmol Sethi 2020-11-13 17:08:05 -05:00
parent 52ea32f4a7
commit 248c2adb2e
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
2 changed files with 14 additions and 11 deletions

View File

@ -10,8 +10,9 @@ This chart is community maintained by [@Matthew-Beckett](https://github.com/Matt
## TL;DR; ## TL;DR;
```console ```console
$ git clone https://github.com/cdr/code-server.git $ git clone https://github.com/cdr/code-server
$ helm install code-server charts/code-server $ cd code-server
$ helm upgrade --install code-server ci/helm-chart
``` ```
## Introduction ## Introduction
@ -26,10 +27,12 @@ package manager.
## Installing the Chart ## Installing the Chart
To install the chart with the release name `my-release`: To install the chart with the release name `code-server`:
```console ```console
$ helm install --name my-release charts/code-server $ git clone https://github.com/cdr/code-server
$ cd code-server
$ helm upgrade --install code-server ci/helm-chart
``` ```
The command deploys code-server on the Kubernetes cluster in the default The command deploys code-server on the Kubernetes cluster in the default
@ -40,10 +43,10 @@ that can be configured during installation.
## Uninstalling the Chart ## Uninstalling the Chart
To uninstall/delete the `my-release` deployment: To uninstall/delete the `code-server` deployment:
```console ```console
$ helm delete my-release $ helm delete code-server
``` ```
The command removes all the Kubernetes components associated with the chart and The command removes all the Kubernetes components associated with the chart and
@ -97,9 +100,9 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
install`. For example, install`. For example,
```console ```console
$ helm install --name my-release \ $ helm install code-server \
--set persistence.enabled=false \ ci/helm-chart \
deployment/chart --set persistence.enabled=false
``` ```
The above command sets the the persistence storage to false. The above command sets the the persistence storage to false.
@ -108,7 +111,7 @@ Alternatively, a YAML file that specifies the values for the above parameters
can be provided while installing the chart. For example, can be provided while installing the chart. For example,
```console ```console
$ helm install --name my-release -f values.yaml deployment/chart $ helm install code-server ci/helm-chart -f values.yaml
``` ```
> **Tip**: You can use the default [values.yaml](values.yaml) > **Tip**: You can use the default [values.yaml](values.yaml)

View File

@ -112,7 +112,7 @@ persistence:
## ##
# storageClass: "-" # storageClass: "-"
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 1Gi size: 10Gi
annotations: {} annotations: {}
# existingClaim: "" # existingClaim: ""
# hostPath: /data # hostPath: /data