Skip to content

Instantly share code, notes, and snippets.

@felipecruz91
Last active February 1, 2020 07:35
Show Gist options
  • Save felipecruz91/e2414cd1ba76d71739cf0fc8302109da to your computer and use it in GitHub Desktop.
Save felipecruz91/e2414cd1ba76d71739cf0fc8302109da to your computer and use it in GitHub Desktop.
microk8s-dashboard

If you want to access the Kubernetes dashboard publicly, open the port 10443 in your VM.

  1. Enable the dashboard: microk8s.enable dashboard
  2. Get the token token=$(microk8s.kubectl -n kube-system get secret | grep default-token | cut -d " " -f1) microk8s.kubectl -n kube-system describe secret $token
  3. kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 --address 0.0.0.0
  4. Launch Brave browser with the --ignore-certificate-errors flag: "C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe" --ignore-certificate-errors
  5. You can then access the Dashboard at https://<YOUR_VM_PUBLIC_IP_ADDRESS>:10443

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment