From b7fd3d36235d27b77f41e704ce0b0303f1d8a15e Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Thu, 20 Mar 2025 17:25:27 +0800 Subject: [PATCH] [+] helm --- README_k8s.md | 3 +++ init-helm.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 init-helm.sh diff --git a/README_k8s.md b/README_k8s.md index 7c415b5..6007911 100644 --- a/README_k8s.md +++ b/README_k8s.md @@ -8,6 +8,9 @@ export vip_ip=10.1.3.100 export vip=$vip_ip/16 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 + +# master 节点更新 helm 相关 +curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-helm.sh | bash ``` ### 其他说明 diff --git a/init-helm.sh b/init-helm.sh new file mode 100644 index 0000000..e42af7c --- /dev/null +++ b/init-helm.sh @@ -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 \ No newline at end of file