Fork me on GitHub

Herr Knedel/Great things with containers: Kubernetes dashboard

Created Sat, 26 Jun 2021 00:00:00 +0000 Modified Mon, 28 Mar 2022 18:10:42 +0000 Difficulty level: Very athletic

131 Words

After creating a Kubernetes - cluster in the Great things with containers: Kubenetes cluster and NFS storage tutorial, I want to install a Kubernetes dashboard.

This command contains everything I need for my project:
x
+
Terminal

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

Since the associated service is not accessible from the outside, the “.spec.type” node must still be changed.
x
+
Terminal

$ kubectl -n kube-system edit service kubernetes-dashboard --namespace=kubernetes-dashboard

The “.spec.type” node must be “NodePort”. After that, the dashboard is already accessible: To get the access token, you need to find a deployment controller key:
x
+
Terminal

$ kubectl -n kube-system get secret | grep deployment-controller-token

After that you can display and copy the token.
x
+
Terminal

$ kubectl -n kube-system describe secret deployment-controller-token-g7qdm