[root@k8s-masterhelm]# helm init --service-account tiller --skip-refresh Creating /root/.helm Creating /root/.helm/repository Creating /root/.helm/repository/cache Creating /root/.helm/repository/local Creating /root/.helm/plugins Creating /root/.helm/starters Creating /root/.helm/cache/archive Creating /root/.helm/repository/repositories.yaml Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com Adding local repo with URL: http://127.0.0.1:8879/charts $HELM_HOME has been configured at /root/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy. To prevent this, run `helm init` with the --tiller-tls-verify flag. For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation Happy Helming!
[root@k8s-masterhelm]# kubectl get pods -n kube-system -l app=helm NAME READY STATUS RESTARTS AGE tiller-deploy-58565b5464-57xjr0/1 ImagePullBackOff 072s
## 镜像下载失败,查看是哪个镜像 [root@k8s-masterhelm]# kubectl describe pod tiller-deploy-58565b5464-57xjr -n kube-system ... ...省略 ... Normal BackOff 72s (x6 over 3m37s) kubelet, k8s-node02 Back-off pulling image "gcr.io/kubernetes-helm/tiller:v2.13.1" Warning Failed 61s (x7 over 3m37s) kubelet, k8s-node02 Error: ImagePullBackOff
RESOURCES: ==> v1/Pod(related) NAME READY STATUS RESTARTS AGE hello-world-f75c8749b-kg78f0/1 ContainerCreating 00s hello-world-f75c8749b-vhgjc0/1 ContainerCreating 00s
==> v1/Service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE hello-world NodePort 10.106.106.148 <none> 80:32202/TCP 0s
==> v1beta1/Deployment NAME READY UP-TO-DATE AVAILABLE AGE hello-world0/2000s
# 列出已经部署的Release [root@k8s-masterhello-world]# helm ls NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE hoping-alpaca1 Thu Feb 601:00:062020 DEPLOYED hello-world-1.0.0 default
# 查询一个特定的Release的状态 [root@k8s-masterhello-world]# helm status hoping-alpaca LAST DEPLOYED: Thu Feb 601:00:062020 NAMESPACE: default STATUS: DEPLOYED
RESOURCES: ==> v1/Pod(related) NAME READY STATUS RESTARTS AGE hello-world-f75c8749b-kg78f1/1 Running 050s hello-world-f75c8749b-vhgjc1/1 Running 050s
==> v1/Service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE hello-world NodePort 10.106.106.148 <none> 80:32202/TCP 50s
==> v1beta1/Deployment NAME READY UP-TO-DATE AVAILABLE AGE hello-world2/22250s