kubernetes/beginners/installing-k8s-dashboard-on-pwk.md
Dashboard is a web-based Kubernetes user interface. It can be used to deploy containerized applications to a Kubernetes cluster, troubleshoot your containerized application, and manage the cluster resources. You can use Dashboard to get an overview of applications running on your cluster, as well as for creating or modifying individual Kubernetes resources (such as Deployments, Jobs, DaemonSets, etc). For example, you can scale a Deployment, initiate a rolling update, restart a pod or deploy new applications using a deploy wizard. It also provides information on the state of Kubernetes resources in your cluster and on any errors that may have occurred.
git clone https://github.com/ajeetraina/kubernetes101
cd kubernetes101/install
sh bootstrap.sh
You can now join any number of machines by running the following on each node
as root:
kubeadm join 172.26.0.2:6443 --token 6pe5qv.08r4ca4zpun0iden --discovery-token-ca-cert-hash sha256:30df21524001ffe6bd2c5a6a3af53729c1d830865f68e8af1e2c2836774da068
Waiting for api server to startup
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
daemonset.extensions/kube-proxy configured
No resources found
serviceaccount/weave-net created
clusterrole.rbac.authorization.k8s.io/weave-net created
clusterrolebinding.rbac.authorization.k8s.io/weave-net created
role.rbac.authorization.k8s.io/weave-net created
rolebinding.rbac.authorization.k8s.io/weave-net created
daemonset.extensions/weave-net created
Copy the command which joins rest of the 4 worker node to the master node
kubeadm join 172.26.0.2:6443 --token 6pe5qv.08r4ca4zpun0iden --discovery-token-ca-cert-hash sha256:30df21524001ffe6bd2c5a6a3af53729c1d830865f68e8af1e2c2836774da068
[node1 install]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master 2m v1.11.3
node2 NotReady <none> 33s v1.11.3
node3 NotReady <none> 25s v1.11.3
node4 NotReady <none> 14s v1.11.3
node5 NotReady <none> 7s v1.11.3
Wait for 3 minutes till these nodes shows up as "Ready"
[node1 install]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master 4m v1.11.3
node2 Ready <none> 2m v1.11.3
node3 Ready <none> 2m v1.11.3
node4 Ready <none> 2m v1.11.3
node5 Ready <none> 2m v1.11.3
[node1 install]$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
serviceaccount/kubernetes-dashboard created
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
deployment.apps/kubernetes-dashboard created
service/kubernetes-dashboard created
[node1 install]$