|
| 1 | +# code-server |
| 2 | + |
| 3 | +   |
| 4 | + |
| 5 | +[code-server](https://github.com/cdr/code-server) code-server is VS Code running |
| 6 | +on a remote server, accessible through the browser. |
| 7 | + |
| 8 | +This chart is community maintained by [@Matthew-Beckett](https://github.com/Matthew-Beckett) and [@alexgorbatchev](https://github.com/alexgorbatchev) |
| 9 | + |
| 10 | +## TL;DR; |
| 11 | + |
| 12 | +```console |
| 13 | +$ git clone https://github.com/cdr/code-server.git |
| 14 | +$ helm install code-server/charts/code-server |
| 15 | +``` |
| 16 | + |
| 17 | +## Introduction |
| 18 | + |
| 19 | +This chart bootstraps a code-server deployment on a |
| 20 | +[Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) |
| 21 | +package manager. |
| 22 | + |
| 23 | +## Prerequisites |
| 24 | + |
| 25 | + - Kubernetes 1.6+ |
| 26 | + |
| 27 | +## Installing the Chart |
| 28 | + |
| 29 | +To install the chart with the release name `my-release`: |
| 30 | + |
| 31 | +```console |
| 32 | +$ helm install --name my-release charts/code-server |
| 33 | +``` |
| 34 | + |
| 35 | +The command deploys code-server on the Kubernetes cluster in the default |
| 36 | +configuration. The [configuration](#configuration) section lists the parameters |
| 37 | +that can be configured during installation. |
| 38 | + |
| 39 | +> **Tip**: List all releases using `helm list` |
| 40 | +
|
| 41 | +## Uninstalling the Chart |
| 42 | + |
| 43 | +To uninstall/delete the `my-release` deployment: |
| 44 | + |
| 45 | +```console |
| 46 | +$ helm delete my-release |
| 47 | +``` |
| 48 | + |
| 49 | +The command removes all the Kubernetes components associated with the chart and |
| 50 | +deletes the release. |
| 51 | + |
| 52 | +## Configuration |
| 53 | + |
| 54 | +The following table lists the configurable parameters of the code-server chart |
| 55 | +and their default values. |
| 56 | + |
| 57 | +## Values |
| 58 | + |
| 59 | +| Key | Type | Default | Description | |
| 60 | +|-----|------|---------|-------------| |
| 61 | +| affinity | object | `{}` | | |
| 62 | +| extraArgs | list | `[]` | | |
| 63 | +| extraConfigmapMounts | list | `[]` | | |
| 64 | +| extraContainers | string | `""` | | |
| 65 | +| extraSecretMounts | list | `[]` | | |
| 66 | +| extraVars | list | `[]` | | |
| 67 | +| extraVolumeMounts | list | `[]` | | |
| 68 | +| fullnameOverride | string | `""` | | |
| 69 | +| hostnameOverride | string | `""` | | |
| 70 | +| image.pullPolicy | string | `"Always"` | | |
| 71 | +| image.repository | string | `"codercom/code-server"` | | |
| 72 | +| image.tag | string | `"3.5.0"` | | |
| 73 | +| imagePullSecrets | list | `[]` | | |
| 74 | +| ingress.enabled | bool | `false` | | |
| 75 | +| nameOverride | string | `""` | | |
| 76 | +| nodeSelector | object | `{}` | | |
| 77 | +| persistence.accessMode | string | `"ReadWriteOnce"` | | |
| 78 | +| persistence.annotations | object | `{}` | | |
| 79 | +| persistence.enabled | bool | `true` | | |
| 80 | +| persistence.size | string | `"1Gi"` | | |
| 81 | +| podAnnotations | object | `{}` | | |
| 82 | +| podSecurityContext | object | `{}` | | |
| 83 | +| replicaCount | int | `1` | | |
| 84 | +| resources | object | `{}` | | |
| 85 | +| securityContext.enabled | bool | `true` | | |
| 86 | +| securityContext.fsGroup | int | `1000` | | |
| 87 | +| securityContext.runAsUser | int | `1000` | | |
| 88 | +| service.port | int | `8443` | | |
| 89 | +| service.type | string | `"ClusterIP"` | | |
| 90 | +| serviceAccount.create | bool | `true` | | |
| 91 | +| serviceAccount.name | string | `nil` | | |
| 92 | +| tolerations | list | `[]` | | |
| 93 | +| volumePermissions.enabled | bool | `true` | | |
| 94 | +| volumePermissions.securityContext.runAsUser | int | `0` | | |
| 95 | + |
| 96 | +Specify each parameter using the `--set key=value[,key=value]` argument to `helm |
| 97 | +install`. For example, |
| 98 | + |
| 99 | +```console |
| 100 | +$ helm install --name my-release \ |
| 101 | + --set persistence.enabled=false \ |
| 102 | + deployment/chart |
| 103 | +``` |
| 104 | + |
| 105 | +The above command sets the the persistence storage to false. |
| 106 | + |
| 107 | +Alternatively, a YAML file that specifies the values for the above parameters |
| 108 | +can be provided while installing the chart. For example, |
| 109 | + |
| 110 | +```console |
| 111 | +$ helm install --name my-release -f values.yaml deployment/chart |
| 112 | +``` |
| 113 | + |
| 114 | +> **Tip**: You can use the default [values.yaml](values.yaml) |
0 commit comments