Created
September 12, 2022 05:43
-
-
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
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
#!/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