Setting up a Kubernetes dashboard - prabhav-thali/articles GitHub Wiki
Kubernetes Dashboard - x86/s390x
x86 Dashboard setup
Initialize the kubernetes cluster: kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=9.98.177.251 --token 3s1i5s.oozk58r7pvpphtlf --token-ttl 0
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
You should now deploy a pod network to the cluster. Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: https://kubernetes.io/docs/concepts/cluster-administration/addons/
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join 9.98.177.251:6443 --token 6b4l5a.nahors9iyi5jj4zu --discovery-token-ca-cert-hash sha256:20d26401c132c5f500f4811dd1b5a19e2366430ca94e19da21cbccbc0bf32c7b
Apply following kubernetes-dashboard.yaml:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl proxy &
Change kubernetes dashboard service from clusterIp to NodePort and save:
kubectl -n kube-system edit service Kubernetes-dashboard
Create service account for the dashboard:
kubectl create serviceaccount cluster-admin-dashboard-sa
kubectl create clusterrolebinding cluster-admin-dashboard-sa
--clusterrole=cluster-admin
--serviceaccount=default:cluster-admin-dashboard-sa
kubectl get secret | grep cluster-admin-dashboard-sa - this will give a dashboard service account token name whose value can be obtained from below command. For eg, if "cluster-admin-dashboard-sa-token-4276t" is the token.
kubectl describe secret cluster-admin-dashboard-sa-token-4276t
s390x Dashboard setup
Refer to Kubenetes-dashboard on s390x