Created
September 20, 2020 23:26
-
-
Save ams0/f315d63098997f43138463749592e623 to your computer and use it in GitHub Desktop.
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 characters
cat << END > startup-script | |
#cloud-config | |
hostname: vm1 | |
ssh_authorized_keys: | |
- $(cat ~/.ssh/id_rsa.pub) | |
END | |
kubectl create secret generic vm1-cloudconfig --from-file=userdata=startup-script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment