k8s/SshLoginLinode
Set ssh key on Linode node. (From: https://github.com/asauber/dssh/blob/master/daemonset.yaml)
- Launch container and mount /root home dir.
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