Created
January 13, 2017 08:36
-
-
Save hjacobs/94e5543b37608e473c18d8bbeae193df to your computer and use it in GitHub Desktop.
Revisions
-
hjacobs created this gist
Jan 13, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: add-my-ssh-key labels: application: add-my-ssh-key spec: template: metadata: name: add-my-ssh-key labels: application: add-my-ssh-key spec: containers: - name: shell image: registry.opensource.zalan.do/stups/ubuntu:latest command: - /bin/bash - -c args: - "curl https://even.stups.zalan.do/public-keys/hjacobs/sshkey.pub -o /host-root/home/core/.ssh/authorized_keys.d/hjacobs && cat /host-root/home/core/.ssh/authorized_keys.d/hjacobs >> /host-root/home/core/.ssh/authorized_keys; sleep 99999" securityContext: privileged: true volumeMounts: - mountPath: /host-root name: host-root volumes: - name: host-root hostPath: path: /