Application version
0.6.1
Chart version
获取chart包
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/
helm fetch metrics-server/metrics-server --version 3.8.2
#或者curl -LO https://github.com/kubernetes-sigs/metrics-server/releases/download/metrics-server-helm-chart-3.8.2/metrics-server-3.8.2.tgz
#或者curl -LO https://storage.corpintra.plus/kubernetes/charts/metrics-server-3.8.2.tgz
自定义安装
helm upgrade metrics-server \
--namespace kube-system \
--create-namespace \
--debug \
--wait \
--install \
--atomic \
--set image.repository="registry.cn-hangzhou.aliyuncs.com/kubecr/metrics-server" \
--set image.tag="v0.6.1" \
--set hostNetwork.enabled="false" \
--set podDisruptionBudget.enabled="true" \
--set podDisruptionBudget.minAvailable="1" \
--set podDisruptionBudget.maxUnavailable="0" \
./metrics-server-3.8.2.tgz
注意如下参数
hostNetwork.enabled //如果k8s集群`apiserver`无法直接请求`metrics-server`的`service ip`(常见与二进制安装的集群,并且`master`节点不能请求`pod ip`、`service ip`), 这里需要`--set hostNetwork.enabled="true"`
标签:set,--,server,metrics,helm,3.8
From: https://www.cnblogs.com/zhaojli/p/16645684.html