kube-state-metrics
#clone kube-state-metrics [root@k8s-master ~]# git clone https://github.com/kubernetes/kube-state-metrics.git Cloning into 'kube-state-metrics'... remote: Enumerating objects: 1, done. remote: Counting objects: 100% (1/1), done. remote: Total 18700 (delta 0), reused 0 (delta 0), pack-reused 18699 Receiving objects: 100% (18700/18700), 15.96 MiB | 3.60 MiB/s, done. Resolving deltas: 100% (11775/11775), done. #apply config [root@k8s-master kube-state-metrics]# kubectl apply -f examples/standard clusterrolebinding.rbac.authorization.k8s.io/kube-state-metrics created clusterrole.rbac.authorization.k8s.io/kube-state-metrics created deployment.apps/kube-state-metrics created serviceaccount/kube-state-metrics created service/kube-state-metrics created [root@k8s-master kube-state-metrics]# #create user [root@k8s-master kube-state-metrics]# kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=root clusterrolebinding.rbac