apiVersion: apps/v1
kind: Deployment
metadata:
    name: dev-dep
    namespace: '{{namespace}}'
    labels:
      system.codezero.io/app: vscode
      app: vscode
spec:
    selector:
        matchLabels:
            app: vscode
    replicas: 1
    template:
        metadata:
            labels:
                app: vscode
                system.codezero.io/app: vscode
        spec:
            containers:
            - name: dev-pod
              image: '{{img}}'
              ports:
                - name: ssh
                  containerPort: 22
                - name: dev-3030
                  containerPort: 3030
              volumeMounts:
                - mountPath: "/data"
                  name: dev-do-volume
                - mountPath: "/data/keys"
                  name: rsa-key-volume
            volumes:
              - name: dev-do-volume
                persistentVolumeClaim:
                  claimName: dev-pvc
              - name: rsa-key-volume
                configMap:
                  name: vscode-rsa-pub-key