Created
January 19, 2019 14:46
-
-
Save dmarkey/ab7c2d4e0ddec4b4a6ec039fa8e2653b to your computer and use it in GitHub Desktop.
Microk8s Cloud Init
This file contains 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
runcmd: | |
- "snap install microk8s --classic" | |
- "echo '-H tcp://0.0.0.0' >> /var/snap/microk8s/current/args/dockerd" | |
- "systemctl restart snap.microk8s.daemon-docker.service" | |
- "ln -s /var/snap/microk8s/current/docker.sock /var/run/docker.sock" | |
- "/snap/bin/microk8s.start" | |
- "/snap/bin/microk8s.status --wait-ready" | |
- "/snap/bin/microk8s.enable dns storage ingress" | |
- "/snap/bin/microk8s.status --wait-ready" | |
- "iptables -P FORWARD ACCEPT" | |
write_files: | |
- content: | | |
#!/bin/sh | |
iptables -P FORWARD ACCEPT | |
path: /etc/rc.local | |
permissions: '0755' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment