metrics-server
metrics server
설치
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/
helm repo update metrics-server \
&& helm search repo metrics-server/metrics-server -l | head -n 10
helm pull metrics-server/metrics-server --version 3.12.0
helm show values metrics-server-3.12.0.tgz \
> metrics-server-3.12.0.yaml
metrics-server-values.yaml
commonLabels: {}
args:
[]
# - --kubelet-insecure-tls
# - --v=2
resources:
requests:
cpu: 100m
memory: 200Mi
tolerations:
- operator: Exists
info
로그에 "Failed to scrape node" err="Get \"https://xxx:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for xxx because it doesn't contain any IP SANs" node="xxx"
와 같은 에러가 발생하는 경우 --kubelet-insecure-tls
를 추가해주세요.
helm template metrics-server metrics-server-3.12.0.tgz \
-n kube-system \
-f metrics-server-values.yaml \
> metrics-server.yaml
helm upgrade metrics-server metrics-server-3.12.0.tgz \
--install \
--history-max 5 \
-n kube-system \
-f metrics-server-values.yaml
삭제
helm uninstall metrics-server -n kube-system
Troubleshooting
kubectl describe apiservices v1beta1.metrics.k8s.io