Skip to content

Instantly share code, notes, and snippets.

@ams0
Created September 20, 2020 23:26
Show Gist options
  • Save ams0/f315d63098997f43138463749592e623 to your computer and use it in GitHub Desktop.
Save ams0/f315d63098997f43138463749592e623 to your computer and use it in GitHub Desktop.
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