k8s-1.22安装metrics-server
启用API聚合层 enable-aggregator-routing
修改configmap kubeadm-config
内容如下
修改 kubeadm-init.yaml ,增加
备份 /etc/kubernetes
根据kubeadm-init.yaml 刷新 /etc/kubernetes/manifests/kube-apiserver.yaml
Helm安装 metrics-server
添加 helm repo , 并下载chart
创建values.yaml
执行安装
验证
参考
https://github.com/kubernetes-sigs/metrics-server
https://kubernetes.io/zh-cn/docs/tasks/extend-kubernetes/configure-aggregation-layer/
https://kubernetes.io/zh-cn/docs/reference/access-authn-authz/kubelet-authn-authz/
https://kubernetes.io/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale/
Last updated