$ wget https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# 修改配置
# 1. 对于镜像无法访问外网仓库,选用国内镜像库
# 2. 对于ssl验证,选择跳过
$ vim components.yaml
Deployment: metrics-server
spec:
template:
spec:
containers:
- args:
- --kubelet-insecure-tls
image: registry.aliyuncs.com/google_containers/metrics-server:v0.5.1
$ kubectl apply -f components.yaml
metrics-server安装
最新推荐文章于 2024-06-24 17:53:03 发布