Created
August 14, 2021 14:22
-
-
Save wirwolf/3f8afad8f90c00fd89dac672d3623592 to your computer and use it in GitHub Desktop.
install-microk8s
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
#!/usr/bin/env bash | |
set -e | |
set -u | |
set -o pipefail | |
apt update | |
apt install -y snapd | |
sudo snap install microk8s --classic | |
microk8s status --wait-ready | |
microk8s.enable dns | |
microk8s stop | |
microk8s start | |
microk8s config > /root/.kube/config | |
snap install kubectl --classic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment