blog/kubernetes/installation/metrics.md

704 B

安装metrics server

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

如果出现错误unable to fully scrape metrics from nodex509: cannot validate certificate for 10.0.1.41 because it doesn't contain any IP SANs, 在配置文件中添加启动参数--kubelet-insecure-tls

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