1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| var_base=/root/helm
var_app=$var_base/metrics-server
var_version=3.8.2
mkdir -p $var_app
cd $var_app
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/
helm repo update
helm pull metrics-server/metrics-server --version $var_version
tar xf metrics-server-$var_version.tgz
helm upgrade --install --dry-run --debug \
--set args[0]="--kubelet-insecure-tls" \
--set image.repository='registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server' \
--set image.tag="v0.6.1" \
metrics-server ./metrics-server
helm upgrade --install \
--set args[0]="--kubelet-insecure-tls" \
--set image.repository='registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server' \
--set image.tag="v0.6.1" \
metrics-server ./metrics-server
# 查看状态
helm list
helm status metrics-server
# 卸载
helm uninstall metrics-server
|