Skip to content

Instantly share code, notes, and snippets.

@odedia
Created September 30, 2021 16:23
Show Gist options
  • Save odedia/f3694fe1d0c3bde4f676fc58e5de9eae to your computer and use it in GitHub Desktop.
Save odedia/f3694fe1d0c3bde4f676fc58e5de9eae to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitpod-pv-claim
spec:
storageClassName: tanzu
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
labels:
run: gitpod
name: gitpod
spec:
ports:
- port: 3000
protocol: TCP
targetPort: 3000
selector:
run: gitpod
type: LoadBalancer
---
apiVersion: v1
kind: Pod
metadata:
name: gitpod
labels:
run: gitpod
spec:
restartPolicy: Always
volumes:
- name: gitpod-storage
persistentVolumeClaim:
claimName: gitpod-pv-claim
containers:
- name: gitpod
image: gitpod/openvscode-server
ports:
- containerPort: 3000
name: "gitpod"
volumeMounts:
- mountPath: "/home/workspace"
name: gitpod-storage
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment