[kubernetes] - is to install custom services with helm

Introduction: The simplest helm installation service.

install 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/

Solve the error 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

Guess you like

Origin blog.csdn.net/xujiamin0022016/article/details/124461433