Skip to content

Instantly share code, notes, and snippets.

@kunday
Created January 11, 2019 03:11
Show Gist options
  • Select an option

  • Save kunday/29827d1dda5c5dceeeb7b840cde18e3d to your computer and use it in GitHub Desktop.

Select an option

Save kunday/29827d1dda5c5dceeeb7b840cde18e3d to your computer and use it in GitHub Desktop.
Install MicroK8s
#!/usr/bin/env bash
echo "Installing microk8s."
sudo snap install microk8s --classic --edge
sudo snap alias microk8s.kubectl kubectl
echo "Waiting for 60 seconds for the service to come up."
sleep 60
microk8s.kubectl config view --raw > $HOME/.kube/config
microk8s.enable dns
microk8s.enable storage
microk8s.enable ingress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment