1. Helm installation:
1. Download the required version (the system is centos7.9, taking helm-v3.2.4 as an example):
# curl -L -o helm-v3.2.4-linux-amd64.tar.gz https://file.choerodon.com.cn/kubernetes-helm/v3.2.4/helm-v3.2.4-linux-amd64.tar.gz
2. Unzip:
# tar -zxvf helm-v3.2.4-linux-amd64.tar.gz
3. Move the file to the PATH directory (taking linux-amd64 as an example):
# mv linux-amd64/helm /usr/local/bin/helm
4. Check the version:
# helm version
2. Add the Helm repository:
1. Syntax format: helm repo add repo-name (custom) repo-url (warehouse address)
Add Microsoft's helm repository:
# helm repo add stable http://mirror.azure.cn/kubernetes/charts
Add Alibaba's helm warehouse:
# helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
2. Update the repository address:
# helm repo update
3. View the configured repository:
# helm repo list
# helm search repo stable
# helm search repo aliyun
4. Delete the repository:
For example, to delete the Alibaba Cloud helm warehouse:
# helm repo remove aliyun
3. Use helm to quickly deploy applications (use existing applications in the added Helm warehouse):
1. Use the command to search for applications
Format: # helm search repo application name
# helm search repo weave
2. Select installation based on search content
Format: helm install application name after name search after installation
# helm install xk-ui stable/weave-scope
3. Check the status after installation:
# helm list
# helm status Name after installation:
# helm status xk-ui
4. After the application is deployed, you can view the corresponding pod, deployment, and service
# kubectl get pod
# kubectl get deployment
# kuctl get service