Skip to content

Instantly share code, notes, and snippets.

@lilac
Created May 8, 2024 09:37
Show Gist options
  • Save lilac/a5e824775da3c615f2d277908ac000a9 to your computer and use it in GitHub Desktop.
Save lilac/a5e824775da3c615f2d277908ac000a9 to your computer and use it in GitHub Desktop.
Deploy Code Server to k8s
apiVersion: apps/v1
kind: Deployment
metadata:
name: coder
spec:
replicas: 1
strategy:
type: Recreate
template:
spec:
containers:
- args:
- '--auth'
- none
command:
- code-server
image: codercom/code-server:latest
imagePullPolicy: Always
name: coder
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /home/coder
name: home
securityContext:
fsGroup: 1000
terminationGracePeriodSeconds: 30
volumes:
- name: home
persistentVolumeClaim:
claimName: coder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment