diff --git a/cluster/default/code/code.yaml b/cluster/default/code/code.yaml deleted file mode 100644 index 76c27b8f..00000000 --- a/cluster/default/code/code.yaml +++ /dev/null @@ -1,72 +0,0 @@ ---- -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: code-server - namespace: default - annotations: - kubernetes.io/ingress.class: internal -spec: - rules: - - host: code.sko.ai - http: - paths: - - backend: - serviceName: code-server - servicePort: 8080 - path: / - tls: - - hosts: - - code.sko.ai ---- -apiVersion: v1 -kind: Service -metadata: - name: code-server - namespace: default -spec: - ports: - - protocol: TCP - port: 8080 - targetPort: 8080 - selector: - app: code-server - type: LoadBalancer ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: code-server - namespace: default -spec: - selector: - matchLabels: - app: code-server - strategy: - type: Recreate - template: - metadata: - labels: - app: code-server - spec: - containers: - - image: codercom/code-server:4.0.2 - name: code-server - args: - - --auth - - none - env: - ports: - - containerPort: 8080 - name: code-server - volumeMounts: - - name: pv-code-server - mountPath: /home/coder - securityContext: - runAsUser: 1000 - runAsGroup: 1000 - fsGroup: 1000 - volumes: - - name: pv-code-server - persistentVolumeClaim: - claimName: code-server-data-v2 diff --git a/cluster/default/code/pvc.yaml b/cluster/default/code/pvc.yaml deleted file mode 100644 index ac507c57..00000000 --- a/cluster/default/code/pvc.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: code-server-data-v2 - namespace: default -spec: - storageClassName: nfs-client - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi