apache / apache/cloudstack

Kubernetes Metric API is not available

Đang mở
#7,493 5 bình luận 3 reaction 1 người được giao Được @harikrishna-patnala nhận Xem trên GitHub
long-term-plan type:enhancement
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

##### ISSUE TYPE

* Improvement Request

##### COMPONENT NAME

Kubernetes

##### CLOUDSTACK VERSION

4.18

##### CONFIGURATION

advanced networking used

##### OS / ENVIRONMENT

All servers on ubuntu 22.04

##### SUMMARY

When a kubernetes cluster is spinned up metric API is not available. We will have to configure metric API manually. Without metric API horizontal pod auto scale will not work and also kubernetes admin won't able to know the utilisation each pod and node is accuring.

There are different way to enable metric API but I feel more easy on below steps.

Step 1 : Check metric API
kubectl top nodes
(it will show metric API not available error)

Step2: Install metric API from kubernetes git
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

Step 3: Check metric pod is running
Kubectl -n kube-system get pods

Step 4: Edit metric server deployement and below line
kubectl -n kube-system edit deploy metrics-server

command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP

Step 5: Check metric API
kubectl top nodes

##### STEPS TO REPRODUCE

Just bring up a cluster and type kubectl top nodes command will get metric API unavailable message

##### EXPECTED RESULTS

If a user bring up a kubernetes cluster they should get maximum componenets on cluster so that they don't want to go around for each. If any changes on this can be done please do the needful so it can help users using kubernetes on cloudstack

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.