This commit is contained in:
parent
229da36283
commit
b7fd3d3623
@ -8,6 +8,9 @@ export vip_ip=10.1.3.100
|
|||||||
export vip=$vip_ip/16
|
export vip=$vip_ip/16
|
||||||
export masters=10.1.3.101,10.1.3.102,10.1.3.103
|
export masters=10.1.3.101,10.1.3.102,10.1.3.103
|
||||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-k8s.sh | bash
|
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-k8s.sh | bash
|
||||||
|
|
||||||
|
# master 节点更新 helm 相关
|
||||||
|
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-helm.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### 其他说明
|
### 其他说明
|
||||||
|
12
init-helm.sh
Normal file
12
init-helm.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 安装 helm
|
||||||
|
curl https://mirrors.martin98.com/repository/helm-apt/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://mirrors.martin98.com/repository/helm-apt/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install helm
|
||||||
|
|
||||||
|
# 添加 helm 镜像
|
||||||
|
helm repo remove stable
|
||||||
|
helm repo add stable https://mirrors.martin98.com/repository/helm-stable/stable
|
||||||
|
helm repo update
|
Loading…
x
Reference in New Issue
Block a user