You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
704 B

3 years ago
# 安装metrics server
```bash
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
```
如果出现错误`unable to fully scrape metrics from node` 或 `x509: cannot validate certificate for 10.0.1.41 because it doesn't contain any IP SANs`, 在配置文件中添加启动参数`--kubelet-insecure-tls`
```yaml
spec:
containers:
- args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
- --kubelet-insecure-tls #这里是新增的
image: registry.bing89.com/kubernetes/metrics-server:v0.4.1
```