Skip to content

Instantly share code, notes, and snippets.

@SebastianRiquelmeM
Created September 12, 2022 05:43
Show Gist options
  • Save SebastianRiquelmeM/59e4ddfb47dfdf32990825747c804440 to your computer and use it in GitHub Desktop.
Save SebastianRiquelmeM/59e4ddfb47dfdf32990825747c804440 to your computer and use it in GitHub Desktop.
Script to install and configure microk8s with dashboard, to run use ./install.sh
#!/bin/sh
# to run use:
# ./install.sh
echo "snap remove microk8s"
snap remove microk8s
echo "snap install microk8s --channel=1.23/stable --classic"
snap install microk8s --channel=1.23/stable --classic
echo "microk8s enable dns dashboard storage"
microk8s enable dns dashboard storage
echo "microk8s kubectl get all --all-namespaces"
microk8s kubectl get all --all-namespaces
echo "Generando token..."
token=$(microk8s kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
microk8s kubectl -n kube-system describe secret $token
echo "Para agregar nodo"
microk8s add-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment