Add your SSH public key to all hosts of your cluster easily!
50K+
latest (Dockerfile)
Follow the two steps in the following yaml file and launch it using "kubectl"
kubectl apply -f ssh.yaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: add-ssh-key
spec:
selector:
matchLabels:
name: add-ssh-key
template:
metadata:
labels:
name: add-ssh-key
spec:
containers:
- name: add-ssh-key
image: leodotcloud/add-ssh-key
imagePullPolicy: Always
volumeMounts:
- name: userhomedir
mountPath: /tmp/user
env:
- name: SSH_KEY_TO_ADD
value: "ssh-rsa blahblahblah [email protected]" # Step 1: Replace the value with your SSH public key
volumes:
- name: userhomedir
hostPath:
path: /home/ubuntu # Step 2: Replace this user home directory path accordingly
Content type
Image
Digest
Size
40.6 MB
Last updated
over 8 years ago
docker pull leodotcloud/add-ssh-key