k8s/SshLoginLinode

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: debug
  namespace: vigor
spec:
  selector:
    matchLabels:
     app: debug
  template:
    metadata:
      labels:
        app: debug
    spec:
      containers:
        - name: debug
          image: docker.io/diepes/debug:latest
          securityContext:
            privileged: true
          command:
            - "/bin/sh"
            - "-c"
            - |
              sleep 1200
          volumeMounts:
            - name: root
              mountPath: /mnt/root
            - name: ssh-keys
              mountPath: /mnt/keys
      volumes:
        - name: root
          hostPath:
            path: /root
        - name: ssh-keys
          configMap:
            name: root-ssh-pubkeys
            optional: true