Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gzupanda
code-server
提交
1b6ddb66
C
code-server
项目概览
gzupanda
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1b6ddb66
编写于
9月 02, 2020
作者:
M
Matthew Beckett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Re-commit 0f1bbc
上级
617cd38c
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
718 addition
and
0 deletion
+718
-0
deployment/chart/Chart.yaml
deployment/chart/Chart.yaml
+5
-0
deployment/chart/README.md
deployment/chart/README.md
+115
-0
deployment/chart/templates/NOTES.txt
deployment/chart/templates/NOTES.txt
+25
-0
deployment/chart/templates/_helpers.tpl
deployment/chart/templates/_helpers.tpl
+43
-0
deployment/chart/templates/deployment.yaml
deployment/chart/templates/deployment.yaml
+144
-0
deployment/chart/templates/ingress.yaml
deployment/chart/templates/ingress.yaml
+39
-0
deployment/chart/templates/pvc.yaml
deployment/chart/templates/pvc.yaml
+29
-0
deployment/chart/templates/secrets.yaml
deployment/chart/templates/secrets.yaml
+18
-0
deployment/chart/templates/service.yaml
deployment/chart/templates/service.yaml
+19
-0
deployment/chart/templates/serviceaccount.yaml
deployment/chart/templates/serviceaccount.yaml
+11
-0
deployment/chart/templates/tests/test-connection.yaml
deployment/chart/templates/tests/test-connection.yaml
+18
-0
deployment/chart/values.yaml
deployment/chart/values.yaml
+135
-0
deployment/manifests/aws/deployment.yaml
deployment/manifests/aws/deployment.yaml
+74
-0
deployment/manifests/deployment.yaml
deployment/manifests/deployment.yaml
+43
-0
未找到文件。
deployment/chart/Chart.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
appVersion
:
"
1.0"
description
:
A Helm chart for code-server
name
:
code-server
version
:
1.0.0
deployment/chart/README.md
0 → 100644
浏览文件 @
1b6ddb66
# code-server
[
code-server
](
https://github.com/cdr/code-server
)
code-server is VS Code running
on a remote server, accessible through the browser.
## TL;DR;
```
console
$
git clone https://github.com/cdr/code-server.git
$
helm
install
deployment/chart
```
## 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
To install the chart with the release name
`my-release`
:
```
console
$
helm
install
--name
my-release deployment/chart
```
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
To uninstall/delete the
`my-release`
deployment:
```
console
$
helm delete my-release
```
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 nginx-ingress chart
and their default values.
The following table lists the configurable parameters of the code-server chart
and their default values.
| Parameter | Description | Default |
| --------------------------------- | ------------------------------------------ | --------------------------------------------------------- |
|
`image.registry`
| Code-server image registry |
`docker.io`
|
|
`image.repository`
| Code-server Image name |
`codercom/code-server`
|
|
`image.tag`
| Code-server Image tag |
`{TAG_NAME}`
|
|
`image.pullPolicy`
| Code-server image pull policy |
`IfNotPresent`
|
|
`nameOverride`
| String to partially override code-server.fullname template with a string (will prepend the release name) |
`nil`
|
|
`fullnameOverride`
| String to fully override code-server.fullname template with a string |
|
`hostnameOverride`
| String to fully override code-server container hostname |
|
`service.type`
| Kubernetes Service type |
`NodePort`
|
|
`service.port`
| Service HTTP port |
`8443`
|
|
`ingress.enabled`
| Enable ingress controller resource |
`false`
|
|
`ingress.hosts[0].name`
| Hostname to your code-server installation |
`code-server.local`
|
|
`ingress.hosts[0].path`
| Path within the url structure |
`/`
|
|
`ingress.hosts[0].tls`
| Utilize TLS backend in ingress |
`false`
|
|
`ingress.hosts[0].certManager`
| Add annotations for cert-manager |
`false`
|
|
`ingress.hosts[0].tlsSecret`
| TLS Secret (certificates) |
`code-server.local-tls-secret`
|
|
`ingress.hosts[0].annotations`
| Annotations for this host's ingress record |
`[]`
|
|
`ingress.secrets[0].name`
| TLS Secret Name |
`nil`
|
|
`ingress.secrets[0].certificate`
| TLS Secret Certificate |
`nil`
|
|
`ingress.secrets[0].key`
| TLS Secret Key |
`nil`
|
|
`extraArgs`
| Additional code-server container arguments |
`{}`
|
|
`extraVars`
| Optional environment variables for code-server |
`{}`
|
|
`volumePermissions.enabled`
| Enable volume permissions init container |
`true`
|
|
`volumePermissions.securityContext.runAsUser`
| User ID for the init container |
`0`
|
|
`securityContext.enabled`
| Enable security context |
`true`
|
|
`securityContext.fsGroup`
| Group ID for the container |
`1000`
|
|
`securityContext.runAsUser`
| User ID for the container |
`1000`
|
|
`resources`
| CPU/Memory resource requests/limits |
`{}`
|
|
`persistence.enabled`
| Enable persistence using PVC |
`true`
|
|
`persistence.storageClass`
| PVC Storage Class for code-server volume |
`nil`
|
|
`persistence.accessMode`
| PVC Access Mode for code-server volume |
`ReadWriteOnce`
|
|
`persistence.size`
| PVC Storage Request for code-server volume |
`8Gi`
|
|
`extraContainers`
| Sidecar containers to add to the code-server pod |
`{}`
|
|
`extraSecretMounts`
| Additional code-server server secret mounts |
`[]`
|
|
`extraVolumeMounts`
| Additional code-server server volume mounts |
`[]`
|
|
`extraConfigmapMounts`
| Additional code-server server configMap volume mounts |
`[]`
|
Specify each parameter using the
`--set key=value[,key=value]`
argument to
`helm
install`
. For example,
```
console
$
helm
install
--name
my-release
\
--set
persistence.enabled
=
false
\
deployment/chart
```
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
$
helm
install
--name
my-release
-f
values.yaml deployment/chart
```
> **Tip**: You can use the default [values.yaml](values.yaml)
deployment/chart/templates/NOTES.txt
0 → 100644
浏览文件 @
1b6ddb66
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "code-server.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "code-server.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "code-server.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "code-server.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:80
{{- end }}
Administrator credentials:
Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "code-server.fullname" . }} -o jsonpath="{.data.password}" | base64 --decode)
deployment/chart/templates/_helpers.tpl
0 → 100644
浏览文件 @
1b6ddb66
{{
/*
vim
:
set
filetype
=
mustache
:
*/
}}
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "code-server.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
If
release
name
contains
chart
name
it
will
be
used
as
a
full
name
.
*/
}
}
{{- define "code-server.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{
{
/*
Create
chart
name
and
version
as
used
by
the
chart
label
.
*/
}
}
{{- define "code-server.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Create
the
name
of
the
service
account
to
use
*/
}
}
{{- define "code-server.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "code-server.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
deployment/chart/templates/deployment.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
{{
include "code-server.fullname" .
}}
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
replicas
:
1
strategy
:
type
:
Recreate
selector
:
matchLabels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
template
:
metadata
:
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
spec
:
{{
- if .Values.hostnameOverride
}}
hostname
:
{{
.Values.hostnameOverride
}}
{{
- end
}}
{{
- if .Values.securityContext.enabled
}}
securityContext
:
fsGroup
:
{{
.Values.securityContext.fsGroup
}}
{{
- end
}}
{{
- if and .Values.volumePermissions.enabled .Values.persistence.enabled
}}
initContainers
:
-
name
:
init-chmod-data
image
:
busybox:latest
imagePullPolicy
:
IfNotPresent
command
:
-
sh
-
-c
-
|
chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /home/coder
securityContext
:
runAsUser
:
{{
.Values.volumePermissions.securityContext.runAsUser
}}
volumeMounts
:
-
name
:
data
mountPath
:
/home/coder
{{
- end
}}
containers
:
{{
- if .Values.extraContainers
}}
{{
toYaml .Values.extraContainers | indent 8
}}
{{
- end
}}
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
{{
- if .Values.securityContext.enabled
}}
securityContext
:
runAsUser
:
{{
.Values.securityContext.runAsUser
}}
{{
- end
}}
env
:
{{
- if .Values.extraVars
}}
{{
toYaml .Values.extraVars | indent 10
}}
{{
- end
}}
-
name
:
PASSWORD
valueFrom
:
secretKeyRef
:
{{
- if .Values.existingSecret
}}
name
:
{{
.Values.existingSecret
}}
{{
- else
}}
name
:
{{
template "code-server.fullname" .
}}
{{
- end
}}
key
:
password
{{
- if .Values.extraArgs
}}
args
:
{{
toYaml .Values.extraArgs | indent 10
}}
{{
- end
}}
volumeMounts
:
-
name
:
data
mountPath
:
/home/coder/project
subPath
:
project
-
name
:
data
mountPath
:
/home/coder/.local/share/code-server
subPath
:
code-server
{{
- range .Values.extraConfigmapMounts
}}
-
name
:
{{
.name
}}
mountPath
:
{{
.mountPath
}}
subPath
:
{{
.subPath | default ""
}}
readOnly
:
{{
.readOnly
}}
{{
- end
}}
{{
- range .Values.extraSecretMounts
}}
-
name
:
{{
.name
}}
mountPath
:
{{
.mountPath
}}
readOnly
:
{{
.readOnly
}}
{{
- end
}}
{{
- range .Values.extraVolumeMounts
}}
-
name
:
{{
.name
}}
mountPath
:
{{
.mountPath
}}
subPath
:
{{
.subPath | default ""
}}
readOnly
:
{{
.readOnly
}}
{{
- end
}}
ports
:
-
name
:
http
containerPort
:
8443
protocol
:
TCP
livenessProbe
:
httpGet
:
path
:
/
port
:
http
readinessProbe
:
httpGet
:
path
:
/
port
:
http
resources
:
{{
- toYaml .Values.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.affinity
}}
affinity
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
serviceAccountName
:
{{
template "code-server.serviceAccountName" .
}}
volumes
:
-
name
:
data
{{
- if .Values.persistence.enabled
}}
persistentVolumeClaim
:
claimName
:
{{
.Values.persistence.existingClaim | default (include "code-server.fullname" .)
}}
{{
- else
}}
emptyDir
:
{}
{{
- end -
}}
{{
- range .Values.extraSecretMounts
}}
-
name
:
{{
.name
}}
secret
:
secretName
:
{{
.secretName
}}
defaultMode
:
{{
.defaultMode
}}
{{
- end
}}
{{
- range .Values.extraVolumeMounts
}}
-
name
:
{{
.name
}}
persistentVolumeClaim
:
claimName
:
{{
.existingClaim
}}
{{
- end
}}
deployment/chart/templates/ingress.yaml
0 → 100644
浏览文件 @
1b6ddb66
{{
- if .Values.ingress.enabled -
}}
{{
- $fullName
:
= include "code-server.fullname" . -
}}
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
{{
$fullName
}}
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
{{
- with .Values.ingress.annotations
}}
annotations
:
{{
- toYaml . | nindent 4
}}
{{
- end
}}
spec
:
{{
- if .Values.ingress.tls
}}
tls
:
{{
- range .Values.ingress.tls
}}
-
hosts
:
{{
- range .hosts
}}
-
{{
. | quote
}}
{{
- end
}}
secretName
:
{{
.secretName
}}
{{
- end
}}
{{
- end
}}
rules
:
{{
- range .Values.ingress.hosts
}}
-
host
:
{{
.host | quote
}}
http
:
paths
:
{{
- range .paths
}}
-
path
:
{{
.
}}
backend
:
serviceName
:
{{
$fullName
}}
servicePort
:
http
{{
- end
}}
{{
- end
}}
{{
- end
}}
deployment/chart/templates/pvc.yaml
0 → 100644
浏览文件 @
1b6ddb66
{{
- if and .Values.persistence.enabled (not .Values.persistence.existingClaim)
}}
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
{{
include "code-server.fullname" .
}}
namespace
:
{{
.Release.Namespace
}}
{{
- with .Values.persistence.annotations
}}
annotations
:
{{
toYaml . | indent 4
}}
{{
- end
}}
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
accessModes
:
-
{{
.Values.persistence.accessMode | quote
}}
resources
:
requests
:
storage
:
{{
.Values.persistence.size | quote
}}
{{
- if .Values.persistence.storageClass
}}
{{
- if (eq "-" .Values.persistence.storageClass)
}}
storageClassName
:
"
"
{{
- else
}}
storageClassName
:
"
{{
.Values.persistence.storageClass
}}"
{{
- end
}}
{{
- end
}}
{{
- end
}}
deployment/chart/templates/secrets.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
{{
include "code-server.fullname" .
}}
annotations
:
"
helm.sh/hook"
:
"
pre-install"
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
type
:
Opaque
data
:
{{
if .Values.password
}}
password
:
"
{{
.Values.password
|
b64enc
}}"
{{
else
}}
password
:
"
{{
randAlphaNum
24
|
b64enc
}}"
{{
end
}}
deployment/chart/templates/service.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
include "code-server.fullname" .
}}
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
type
:
{{
.Values.service.type
}}
ports
:
-
port
:
{{
.Values.service.port
}}
targetPort
:
http
protocol
:
TCP
name
:
http
selector
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
deployment/chart/templates/serviceaccount.yaml
0 → 100644
浏览文件 @
1b6ddb66
{{
- if or .Values.serviceAccount.create -
}}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
name
:
{{
template "code-server.serviceAccountName" .
}}
{{
- end -
}}
deployment/chart/templates/tests/test-connection.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
"
{{
include
"code-server.fullname" . }}-test-connection"
labels
:
app.kubernetes.io/name
:
{{
include "code-server.name" .
}}
helm.sh/chart
:
{{
include "code-server.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
annotations
:
"
helm.sh/hook"
:
test-success
spec
:
containers
:
-
name
:
wget
image
:
busybox
command
:
[
'
wget'
]
args
:
[
'
{{
include
"code-server.fullname"
.
}}:{{
.Values.service.port
}}'
]
restartPolicy
:
Never
deployment/chart/values.yaml
0 → 100644
浏览文件 @
1b6ddb66
# Default values for code-server.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image
:
repository
:
codercom/code-server
tag
:
1.1156-vsc1.33.1
pullPolicy
:
Always
nameOverride
:
"
"
fullnameOverride
:
"
"
hostnameOverride
:
"
"
service
:
type
:
NodePort
port
:
8443
ingress
:
enabled
:
false
#annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
#hosts:
# - host: code-server.example.loc
# paths:
# - /
#tls:
# - secretName: code-server
# hosts:
# - code-server.example.loc
# Optional additional arguments
extraArgs
:
[]
# - --allow-http
# - --no-auth
# Optional additional environment variables
extraVars
:
[]
# - name: DISABLE_TELEMETRY
# value: true
##
## Init containers parameters:
## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
##
volumePermissions
:
enabled
:
true
securityContext
:
runAsUser
:
0
## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext
:
enabled
:
true
fsGroup
:
1000
runAsUser
:
1000
resources
:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 1000Mi
nodeSelector
:
{}
tolerations
:
[]
affinity
:
{}
## Persist data to a persistent volume
persistence
:
enabled
:
true
## code-server data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
accessMode
:
ReadWriteOnce
size
:
1Gi
annotations
:
{}
serviceAccount
:
create
:
true
name
:
## Enable an Specify container in extraContainers.
## This is meant to allow adding code-server dependencies, like docker-dind.
extraContainers
:
|
#
- name: docker-dind
#
image: docker:19.03-dind
#
imagePullPolicy: IfNotPresent
#
resources:
#
requests:
#
cpu: 250m
#
memory: 256M
#
securityContext:
#
privileged: true
#
procMount: Default
#
env:
#
- name: DOCKER_TLS_CERTDIR
#
value: ""
#
- name: DOCKER_DRIVER
#
value: "overlay2"
#
# Additional code-server secret mounts
e
xtraSecretMounts: []
# - name: secret-files
# mountPath: /etc/secrets
# secretName: code-server-secret-files
# readOnly: true
#
# Additional code-server volume mounts
e
xtraVolumeMounts: []
# - name: extra-volume
# mountPath: /mnt/volume
# readOnly: true
# existingClaim: volume-claim
e
xtraConfigmapMounts: []
# - name: certs-configmap
# mountPath: /etc/code-server/ssl/
# subPath: certificates.crt # (optional)
# configMap: certs-configmap
# readOnly: true
deployment/manifests/aws/deployment.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
code-server
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
code-server
namespace
:
code-server
spec
:
ports
:
-
port
:
8443
name
:
https
protocol
:
TCP
selector
:
app
:
code-server
type
:
ClusterIP
---
kind
:
StorageClass
apiVersion
:
storage.k8s.io/v1
metadata
:
name
:
gp2
annotations
:
storageclass.kubernetes.io/is-default-class
:
"
true"
provisioner
:
kubernetes.io/aws-ebs
parameters
:
type
:
gp2
fsType
:
ext4
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
code-store
namespace
:
code-server
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
60Gi
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
labels
:
app
:
code-server
name
:
code-server
namespace
:
code-server
spec
:
selector
:
matchLabels
:
app
:
code-server
replicas
:
1
template
:
metadata
:
labels
:
app
:
code-server
spec
:
containers
:
-
image
:
codercom/code-server
imagePullPolicy
:
Always
name
:
code-servery
ports
:
-
containerPort
:
8443
name
:
https
volumeMounts
:
-
name
:
code-server-storage
mountPath
:
/go/src
volumes
:
-
name
:
code-server-storage
persistentVolumeClaim
:
claimName
:
code-store
deployment/manifests/deployment.yaml
0 → 100644
浏览文件 @
1b6ddb66
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
code-server
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
code-server
namespace
:
code-server
spec
:
ports
:
-
port
:
8443
name
:
https
protocol
:
TCP
selector
:
app
:
code-server
type
:
ClusterIP
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
labels
:
app
:
code-server
name
:
code-server
namespace
:
code-server
spec
:
selector
:
matchLabels
:
app
:
code-server
replicas
:
1
template
:
metadata
:
labels
:
app
:
code-server
spec
:
containers
:
-
image
:
codercom/code-server
imagePullPolicy
:
Always
name
:
code-server
ports
:
-
containerPort
:
8443
name
:
https
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录