Created
May 8, 2024 09:37
-
-
Save lilac/a5e824775da3c615f2d277908ac000a9 to your computer and use it in GitHub Desktop.
Deploy Code Server to k8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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