I have a running Kubernetes cluster setup and i want to configure a kube-state-metrics on the same. When i am going to create the kube-state-metrics on the cluster POD is not creating and it is failing with CrashLoopBackOff Error.
When I checked the logs of that kube-state-metrics POD I found below:
I0827 10:52:50.095813 1 main.go:87] Using default collectors
I0827 10:52:50.095927 1 main.go:99] Using all namespace
I0827 10:52:50.095949 1 main.go:140] metric white-blacklisting: blacklisting the following items:
W0827 10:52:50.095986 1 client_config.go:541] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0827 10:52:50.098367 1 main.go:185] Testing communication with server
I have running kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:23:26Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.1", GitCommit:"4485c6f18cee9a5d3c3b4e523bd27972b1b53892", GitTreeState:"clean", BuildDate:"2019-07-18T09:09:21Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
and using docker image from quay.io quay.io/coreos/kube-state-metrics:v1.7.2
I did follow the below steps to configure the kube-state-metrics
git clone https://github.com/kubernetes/kube-state-metrics.git
cd kube-state-metrics
kubectl create -f kubernetes/