[kubernetes]-是用helm安装自定义服务

导语:最简单的helm安装服务。

安装helm

wget https://get.helm.sh/helm-v3.3.3-linux-amd64.tar.gz
tar zxvf helm-v3.3.3-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/

解决报错dial tcp 127.0.0.1:8080: connect: connection refused

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> /etc/profile
source /etc/profile

Error: validation: chart.metadata is required

# 报上面的错的话 需要指定一个名称
# 创建一个helm文件夹
helm  create deepwise
# 把template下的文件全部删除,并放入自己的yaml即可
# 修改完template中的文件后打包
helm package deepwise
# 验证yaml文件 这里最好一个个拉上去看下
helm install deepwise --set image.version=1.0 --dry-run  deepwise-0.1.0.tgz

helm install deepwise --set image.version=1.0  deepwise-0.1.0.tgz
# 删除
helm  delete deepwise

猜你喜欢

转载自blog.csdn.net/xujiamin0022016/article/details/124461433