一、安装最新Helm3
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
echo "deb https://baltocdn.com/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
二、添加repo
推荐几个持续更新的:
helm repo add stable http://mirror.azure.cn/kubernetes/charts #微软的很全推荐
helm repo add bitnami https://charts.bitnami.com/bitnami #大部分都有
helm repo add harbor https://helm.goharbor.io #harbor的
helm repo add gpu-helm-charts https://nvidia.github.io/gpu-monitoring-tools/helm-charts #NVIDIA DCGM的
helm repo add elastic https://helm.elastic.co #elastic的 elasticsearch
helm repo add stablecharts https://charts.helm.sh/stable #不更新了还是有些东西的
helm update
三、搜索下载
例子:
helm search repo postgresql
NAME CHART VERSION APP VERSION DESCRIPTION
bitnami/postgresql 10.13.14 11.14.0 Chart for PostgreSQL, an object-relational data...
bitnami/postgresql-ha 8.1.2 11.14.0 Chart for PostgreSQL with HA architecture (usin...
helm pull bitnami/postgresql-ha --version 8.1.2
tar -zxvf postgresql-ha-8.1.2.tgz
四、安装
1.解压后编辑values.yaml安装
kubectl create namespace pgsql
helm install -f values.yaml pgsql bitnami/postgresql-ha --version 8.1.2 -n pgsql
2.不需要配置变量,直接安装
helm install pgsql bitnami/postgresql-ha --version 8.1.2 -n pgsql