Welcome to the Linux Foundation Forum!

Exercise 12.3: Adding tools for monitoring and metrics (Configure the Dashboard step 6) not work

[email protected]:~$ kubectl create -f https://bit.ly/2OFQRMy
namespace/kubernetes-dashboard created
serviceaccount/kubernetes-dashboard created
service/kubernetes-dashboard created
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
secret/kubernetes-dashboard-key-holder created
configmap/kubernetes-dashboard-settings created
role.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
deployment.apps/kubernetes-dashboard created
service/dashboard-metrics-scraper created
deployment.apps/dashboard-metrics-scraper created
[email protected]:~$ kubectl get svc --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.96.0.1 443/TCP 7d1h
default secondapp NodePort 10.96.146.145 80:30751/TCP 23h
default thirdpage NodePort 10.101.140.71 80:31896/TCP 23h
kube-system kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 7d1h
kube-system metrics-server ClusterIP 10.103.190.22 443/TCP 15m
kube-system traefik-ingress-service ClusterIP 10.111.178.14 80/TCP,8080/TCP 23h
kubernetes-dashboard dashboard-metrics-scraper ClusterIP 10.104.93.144 8000/TCP 36s
kubernetes-dashboard kubernetes-dashboard ClusterIP 10.96.195.151 443/TCP 36s
[email protected]:~$ kubectl -n kubernetes-dashboard edit svc kubernetes-dashboard
service/kubernetes-dashboard edited
[email protected]:~$ kubectl -n kubernetes-dashboard get svc kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard NodePort 10.96.195.151 443:32497/TCP 3m44s
[email protected]:~$ kubectl create clusterrolebinding dashaccess \

--clusterrole=cluster-admin \
--serviceaccount=kubernetes-dashboard:kubernetes-dashboard

clusterrolebinding.rbac.authorization.k8s.io/dashaccess created


Best Answer

Answers

Sign In or Register to comment.