apiVersion: v1
kind: Namespace
metadata:
name: code-server
---
kind: Service
namespace: code-server
spec:
ports:
- port: 8080
name: https
protocol: TCP
selector:
app: code-server
type: ClusterIP
kind: StorageClass
apiVersion: storage.k8s.io/v1
name: gp2
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
fsType: ext4
kind: PersistentVolumeClaim
name: code-store
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 60Gi
apiVersion: extensions/v1beta1
kind: Deployment
labels:
matchLabels:
replicas: 1
template:
containers:
- image: codercom/code-server
imagePullPolicy: Always
name: code-servery
- containerPort: 8080
volumeMounts:
- name: code-server-storage
mountPath: /go/src
volumes:
persistentVolumeClaim:
claimName: code-store