MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

Kubernetes metrics-server Error – Readiness probe failed: HTTP probe failed with statuscode

Uncategorized
$  kubectl get pods --all-namespaces
NAMESPACE     NAME                                      READY   STATUS    RESTARTS   AGE
kube-system   coredns-558bd4d5db-h4968                  1/1     Running   0          18m
kube-system   coredns-558bd4d5db-klb5t                  1/1     Running   0          18m
kube-system   etcd-ip-172-31-12-77                      1/1     Running   0          18m
kube-system   kube-apiserver-ip-172-31-12-77            1/1     Running   0          18m
kube-system   kube-controller-manager-ip-172-31-12-77   1/1     Running   0          18m
kube-system   kube-proxy-5p7gr                          1/1     Running   0          18m
kube-system   kube-scheduler-ip-172-31-12-77            1/1     Running   0          18m
kube-system   metrics-server-6dfddc5fb8-vllgm           0/1     Running   0          17m
kube-system   weave-net-gqrtg                           2/2     Running   0          18m
root@ip-172-31-12-77:/home/ubuntu#
$ kubectl describe pod metrics-server-6dfddc5fb8-vllgm -n=kube-system
  Normal   Created           16m                 kubelet            Created container metrics-server
  Normal   Started           16m                 kubelet            Started container metrics-server
  Warning  Unhealthy         62s (x89 over 15m)  kubelet            Readiness probe failed: HTTP probe failed with statuscode: 500


$ kubectl logs deployment/metrics-server -n kube-system

E0713 16:52:04.774647       1 scraper.go:139] "Failed to scrape node" err="Get \"https://172.31.12.77:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 172.31.12.77 because it doesn't contain any IP SANs" node="ip-172-31-12-77"
172.31.12.77

Solution:

- Download https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
- Modify and add "- --kubelet-insecure-tls" in deployment.spec.template.spec.containers.args
- kubectl apply -f components.yaml
- kubectl top nodes
- kubectl top  pod kube-proxy-5p7gr -n=kube-system

Reference

  • https://stackoverflow.com/questions/64767239/kubernetes-metrics-server-not-running
5 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x