Think before you speak, read before you think.

helm

helm 2

版本

helm version

安装或升级

helm upgrade gitlab-runner gitlab/gitlab-runner --namespace tools -f deploy/gitlab-runner-values.yaml --install --wait

查看

helm status gitlab-runner

Init

helm init --client-only

Dry run, upgrade, deployment pods will rolling update

helm upgrade --dry-run --debug -f values.yaml gitlab-runner .

istio

helm upgrade --dry-run --debug -f values.yaml istio .

清理

helm delete gitlab-runner --purge

查看,更新 repo

helm repo list
helm repo update

查看 repo 下的所有版本

helm2 search -l gitlab/gitlab-runner
helm2 search -l stable/nginx-ingress

安装具体 chart 版本

helm upgrade --debug gitlab-runner gitlab/gitlab-runner --version "1.8.1" --namespace infra gitlab-runner-values.yaml --install --wait
helm --kube-context prod list

切换 helm 版本

brew unlink kubernetes-helm
brew switch helm 3.4.0

查看一个 helm 所有资源

helm2 get service1
helm3 get all service1 -n dev

查看 values

helm3.6.1 get values gitlab-runner  -n infra

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *