Prometheus cluster integration: helm installation failure
I followed the instructions here to integrate Prometheus with K8S cluster. Once the helm chart installed, the pod prometheus-prometheus-server still in Pending status with the event warning:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 9s (x20 over 20m) default-scheduler 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.
Below all resources created:
% kubectl -n gitlab-managed-apps get all,pv,pvc
NAME READY STATUS RESTARTS AGE
pod/prometheus-kube-state-metrics-5b8f9bdbbd-tx9j5 1/1 Running 0 22m
pod/prometheus-prometheus-server-778454cd5b-vx8lk 0/2 Pending 0 22m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/prometheus-kube-state-metrics ClusterIP 10.43.29.206 <none> 8080/TCP 22m
service/prometheus-prometheus-server ClusterIP 10.43.141.230 <none> 80/TCP 22m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/prometheus-kube-state-metrics 1/1 1 1 22m
deployment.apps/prometheus-prometheus-server 0/1 1 0 22m
NAME DESIRED CURRENT READY AGE
replicaset.apps/prometheus-kube-state-metrics-5b8f9bdbbd 1 1 1 22m
replicaset.apps/prometheus-prometheus-server-778454cd5b 1 1 0 22m
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/prometheus-prometheus-server Pending 22m
% kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:03:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
I'm connected to an existing cluster not managed by EKS or GKE but by myself.