1、安裝
step1、下載二進制包
wget https://get.helm.sh/helm-v3.10.3-linux-amd64.tar.gz
step2、解壓
tar -zxvf helm-v3.10.3-linux-amd64.tar.gz
step3、移動執行文件
mv linux-amd64/helm /usr/local/bin/helm
2、安裝應用
本例以安裝sonarqubeServer爲例
helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube --kubeconfig=./kubesphere/config
默認情況下,應用無法對外訪問,所以需要配置外部訪問,操作間下圖:
配置成功後會有一個對外端口,通過這個端口訪問sonarQube Server服務
默認用戶名密碼:admin|admin
3、常用命令
3-1、查看命名空間chart信息
helm list -n fxm-test --kubeconfig=./kubesphere/config
$ helm list NAME REVISION UPDATED STATUS CHART NAMESPACE kindly-newt 1 Mon Oct 2 15:05:44 2017 DEPLOYED sonarqube-0.1.0 sonarqube $ helm delete kindly-newt
3-2、查看chart sonarqube/sonarqube的values.yaml的配置信息
helm show values sonarqube/sonarqube -n fxm-test --kubeconfig=./kubesphere/config