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

每天一个小技巧!

posted @ 2021-01-24 22:53  流雨声  阅读(1936)  评论(0编辑  收藏  举报