Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Coder
code-server
提交
bc3fb5e2
C
code-server
项目概览
镜像
/
Coder
/
code-server
2022-09-21 03:15:05同步失败
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bc3fb5e2
编写于
8月 24, 2021
作者:
J
Joe Previte
提交者:
Teffen Ellis
8月 25, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: move helm README to docs/helm.md
上级
3e55e5e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
166 addition
and
1 deletion
+166
-1
docs/helm.md
docs/helm.md
+160
-0
docs/install.md
docs/install.md
+1
-1
docs/manifest.json
docs/manifest.json
+5
-0
未找到文件。
ci/helm-chart/README
.md
→
docs/helm
.md
浏览文件 @
bc3fb5e2
# code-server
# code-server
Helm Chart
![
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.11.1
](
https://img.shields.io/badge/AppVersion-3.11.1-informational?style=flat-square
)
...
...
@@ -23,7 +23,7 @@ package manager.
## Prerequisites
-
Kubernetes 1.6+
-
Kubernetes 1.6+
## Installing the Chart
...
...
@@ -59,51 +59,50 @@ and their default values.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object |
`{}`
| |
| extraArgs | list |
`[]`
| |
| extraConfigmapMounts | list |
`[]`
| |
| extraContainers | string |
`""`
| |
| extraInitContainers | string |
`""`
| |
| extraSecretMounts | list |
`[]`
| |
| extraVars | list |
`[]`
| |
| extraVolumeMounts | list |
`[]`
| |
| fullnameOverride | string |
`""`
| |
| hostnameOverride | string |
`""`
| |
| image.pullPolicy | string |
`"Always"`
| |
| image.repository | string |
`"codercom/code-server"`
| |
| image.tag | string |
`"3.11.1"`
| |
| 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`
| |
Specify each parameter using the
`--set key=value[,key=value]`
argument to
`helm
install`
. For example,
| Key | Type | Default | Description |
| ------------------------------------------- | ------ | ------------------------ | ----------- |
| affinity | object |
`{}`
| |
| extraArgs | list |
`[]`
| |
| extraConfigmapMounts | list |
`[]`
| |
| extraContainers | string |
`""`
| |
| extraInitContainers | string |
`""`
| |
| extraSecretMounts | list |
`[]`
| |
| extraVars | list |
`[]`
| |
| extraVolumeMounts | list |
`[]`
| |
| fullnameOverride | string |
`""`
| |
| hostnameOverride | string |
`""`
| |
| image.pullPolicy | string |
`"Always"`
| |
| image.repository | string |
`"codercom/code-server"`
| |
| image.tag | string |
`"3.11.1"`
| |
| 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`
| |
Specify each parameter using the
`--set key=value[,key=value]`
argument to
`helm install`
. For example,
```
console
$
helm upgrade
--install
code-server
\
ci/helm-chart
\
--set
persistence.enabled
=
false
ci/helm-chart
\
--set
persistence.enabled
=
false
```
The above command sets the the persistence storage to false.
...
...
@@ -120,7 +119,7 @@ $ helm upgrade --install code-server ci/helm-chart -f values.yaml
# Extra Containers
There are two parameters which allow to add more containers to pod.
Use
`extraContainers`
to add regular containers
Use
`extraContainers`
to add regular containers
and
`extraInitContainers`
to add init containers. You can read more
about init containers in
[
k8s documentation
](
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
)
.
...
...
@@ -128,7 +127,7 @@ Both parameters accept strings and use them as a templates
Example of using
`extraInitContainers`
:
```
yaml
```
yaml
extraInitContainers
:
|
- name: customization
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
...
...
@@ -147,16 +146,15 @@ extraInitContainers: |
volumeMounts:
- name: data
mountPath: /home/coder
```
With this yaml in file
`init.yaml`
, you can execute
With this yaml in file
`init.yaml`
, you can execute
```
console
$
helm upgrade
--install
code-server
\
ci/helm-chart
\
--values
init.yaml
ci/helm-chart
\
--values
init.yaml
```
to deploy code-server with python and golang extensions preinstalled
before main container have started.
\ No newline at end of file
before main container have started.
docs/install.md
浏览文件 @
bc3fb5e2
...
...
@@ -224,7 +224,7 @@ alternative](https://hub.docker.com/r/linuxserver/code-server).
## Helm
You can install code-server
via
[
Helm
](
https://github.com/cdr/code-server/blob/main/ci/helm-chart/README.md
)
.
You can install code-server
using the
[
Helm package manager
](
https://coder.com/docs/code-server/latest/helm
)
.
## Windows
...
...
docs/manifest.json
浏览文件 @
bc3fb5e2
...
...
@@ -37,6 +37,11 @@
"description"
:
"How to run code-server --link"
,
"path"
:
"./link.md"
},
{
"title"
:
"Helm"
,
"description"
:
"How to install code-server using the Helm package manager"
,
"path"
:
"./helm.md"
},
{
"title"
:
"iPad"
,
"description"
:
"How to access your code-server installation using an iPad."
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录