2020-09-03 02:41:58 +07:00
|
|
|
# code-server
|
|
|
|
|
2020-11-25 01:12:10 +07:00
|
|
|
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.7.3](https://img.shields.io/badge/AppVersion-3.7.3-informational?style=flat-square)
|
2020-09-03 04:02:37 +07:00
|
|
|
|
2020-09-03 02:41:58 +07:00
|
|
|
[code-server](https://github.com/cdr/code-server) code-server is VS Code running
|
|
|
|
on a remote server, accessible through the browser.
|
|
|
|
|
2020-11-11 03:09:13 +07:00
|
|
|
This chart is community maintained by [@Matthew-Beckett](https://github.com/Matthew-Beckett) and [@alexgorbatchev](https://github.com/alexgorbatchev)
|
|
|
|
|
2020-09-03 02:41:58 +07:00
|
|
|
## TL;DR;
|
|
|
|
|
|
|
|
```console
|
2020-11-14 05:08:05 +07:00
|
|
|
$ git clone https://github.com/cdr/code-server
|
|
|
|
$ cd code-server
|
|
|
|
$ helm upgrade --install code-server ci/helm-chart
|
2020-09-03 02:41:58 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This chart bootstraps a code-server deployment on a
|
|
|
|
[Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh)
|
|
|
|
package manager.
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Kubernetes 1.6+
|
|
|
|
|
|
|
|
## Installing the Chart
|
|
|
|
|
2020-11-14 05:08:05 +07:00
|
|
|
To install the chart with the release name `code-server`:
|
2020-09-03 02:41:58 +07:00
|
|
|
|
|
|
|
```console
|
2020-11-14 05:08:05 +07:00
|
|
|
$ git clone https://github.com/cdr/code-server
|
|
|
|
$ cd code-server
|
|
|
|
$ helm upgrade --install code-server ci/helm-chart
|
2020-09-03 02:41:58 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
The command deploys code-server on the Kubernetes cluster in the default
|
|
|
|
configuration. The [configuration](#configuration) section lists the parameters
|
|
|
|
that can be configured during installation.
|
|
|
|
|
|
|
|
> **Tip**: List all releases using `helm list`
|
|
|
|
|
|
|
|
## Uninstalling the Chart
|
|
|
|
|
2020-11-14 05:08:05 +07:00
|
|
|
To uninstall/delete the `code-server` deployment:
|
2020-09-03 02:41:58 +07:00
|
|
|
|
|
|
|
```console
|
2020-11-14 05:08:05 +07:00
|
|
|
$ helm delete code-server
|
2020-09-03 02:41:58 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
The command removes all the Kubernetes components associated with the chart and
|
|
|
|
deletes the release.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
The following table lists the configurable parameters of the code-server chart
|
|
|
|
and their default values.
|
|
|
|
|
2020-09-03 04:02:37 +07:00
|
|
|
## Values
|
|
|
|
|
|
|
|
| Key | Type | Default | Description |
|
|
|
|
|-----|------|---------|-------------|
|
|
|
|
| affinity | object | `{}` | |
|
|
|
|
| extraArgs | list | `[]` | |
|
|
|
|
| extraConfigmapMounts | list | `[]` | |
|
|
|
|
| extraContainers | string | `""` | |
|
|
|
|
| extraSecretMounts | list | `[]` | |
|
|
|
|
| extraVars | list | `[]` | |
|
|
|
|
| extraVolumeMounts | list | `[]` | |
|
|
|
|
| fullnameOverride | string | `""` | |
|
|
|
|
| hostnameOverride | string | `""` | |
|
|
|
|
| image.pullPolicy | string | `"Always"` | |
|
|
|
|
| image.repository | string | `"codercom/code-server"` | |
|
2020-11-25 01:12:10 +07:00
|
|
|
| image.tag | string | `"3.7.3"` | |
|
2020-09-03 04:02:37 +07:00
|
|
|
| imagePullSecrets | list | `[]` | |
|
|
|
|
| ingress.enabled | bool | `false` | |
|
|
|
|
| nameOverride | string | `""` | |
|
|
|
|
| nodeSelector | object | `{}` | |
|
|
|
|
| persistence.accessMode | string | `"ReadWriteOnce"` | |
|
|
|
|
| persistence.annotations | object | `{}` | |
|
|
|
|
| persistence.enabled | bool | `true` | |
|
|
|
|
| persistence.size | string | `"1Gi"` | |
|
|
|
|
| podAnnotations | object | `{}` | |
|
|
|
|
| podSecurityContext | object | `{}` | |
|
|
|
|
| replicaCount | int | `1` | |
|
|
|
|
| resources | object | `{}` | |
|
|
|
|
| securityContext.enabled | bool | `true` | |
|
|
|
|
| securityContext.fsGroup | int | `1000` | |
|
|
|
|
| securityContext.runAsUser | int | `1000` | |
|
|
|
|
| service.port | int | `8443` | |
|
|
|
|
| service.type | string | `"ClusterIP"` | |
|
|
|
|
| serviceAccount.create | bool | `true` | |
|
|
|
|
| serviceAccount.name | string | `nil` | |
|
|
|
|
| tolerations | list | `[]` | |
|
|
|
|
| volumePermissions.enabled | bool | `true` | |
|
|
|
|
| volumePermissions.securityContext.runAsUser | int | `0` | |
|
2020-09-03 02:41:58 +07:00
|
|
|
|
|
|
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm
|
|
|
|
install`. For example,
|
|
|
|
|
|
|
|
```console
|
2020-11-14 06:45:13 +07:00
|
|
|
$ helm upgrade --install code-server \
|
2020-11-14 05:08:05 +07:00
|
|
|
ci/helm-chart \
|
|
|
|
--set persistence.enabled=false
|
2020-09-03 02:41:58 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
The above command sets the the persistence storage to false.
|
|
|
|
|
|
|
|
Alternatively, a YAML file that specifies the values for the above parameters
|
|
|
|
can be provided while installing the chart. For example,
|
|
|
|
|
|
|
|
```console
|
2020-11-14 06:45:13 +07:00
|
|
|
$ helm upgrade --install code-server ci/helm-chart -f values.yaml
|
2020-09-03 02:41:58 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
> **Tip**: You can use the default [values.yaml](values.yaml)
|