kube-state-metrics pod not running

8/27/2019

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

  1. git clone https://github.com/kubernetes/kube-state-metrics.git

  2. cd kube-state-metrics

  3. kubectl create -f kubernetes/

-- sri05
centos7
docker
kube-state-metrics
kubernetes

0 Answers