K3s 集群如何使用helm


安裝K3s集群

參考部署地址: https://www.cnblogs.com/vpc123/articles/14021390.html

集群使用helm

wget https://get.helm.sh/helm-v3.5.0-linux-amd64.tar.gz
tar -zxvf helm-v3.5.0-linux-amd64.tar.gz
chmod 755 linux-amd64/helm
cp linux-amd64/helm /usr/bin/
cp linux-amd64/helm /usr/local/bin/
  • 配置參數
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

把上面的命令加入到~/.bashrc里,然后再執行命令source ~/.bashrc

helm version

  • 更新安裝源
導入國外源
helm repo add stable https://charts.helm.sh/stable
helm repo update

導入阿里源
helm repo remove stable
helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm repo update
helm list

  • 命令測試
helm search hub wordpress
helm search hub mysql
helm install happy-panda stable/mariadb
helm status happy-panda
helm show values stable/mariadb

每天一個小技巧!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM