demo-infra-dashboard-start.sh 285 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh

# print token
token=$(microk8s kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
kubectl -n kube-system describe secret $token

# expose dashboard
microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 --address 0.0.0.0 &