2024-01-04 20:58:23 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
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:
|
|
|
|
initContainers:
|
|
|
|
- name: init-chmod-data
|
2024-09-09 11:49:57 +00:00
|
|
|
image: busybox:1.36@sha256:34b191d63fbc93e25e275bfccf1b5365664e5ac28f06d974e8d50090fbb49f41
|
2024-01-04 20:58:23 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
chown -R 1000:1000 /home/coder
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: /home/coder
|
|
|
|
containers:
|
2024-06-03 13:34:16 +00:00
|
|
|
- image: codercom/code-server:4.89.1-ubuntu@sha256:d7faf97bc59933b398d5df5c5aec786637a9e40ae8c842bb8d23ca20e0946739
|
2024-01-04 20:58:23 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: code-server
|
|
|
|
args:
|
|
|
|
- --auth
|
|
|
|
- none
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: /home/coder
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 8080
|
|
|
|
protocol: TCP
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: http
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: http
|
|
|
|
volumes:
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: code-server
|