# helm init --service-account tiller # Users in China: You will need to specify a specific tiller-image in order to initialize tiller. # The list of tiller image tags are available here: https://dev.aliyun.com/detail.html?spm=5176.1972343.2.18.ErFNgC&repoId=62085. # When initializing tiller, you'll need to pass in --tiller-image
# helm install ./hello-helm NAME: kindled-numbat LAST DEPLOYED: Sat Oct 1206:11:512019 NAMESPACE: default STATUS: DEPLOYED
RESOURCES: ==> v1/Deployment NAME READY UP-TO-DATE AVAILABLE AGE kindled-numbat-hello-helm 0/1001s
==> v1/Pod(related) NAME READY STATUS RESTARTS AGE kindled-numbat-hello-helm-6566985869-lmh2l 0/1 ContainerCreating 00s
==> v1/Service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kindled-numbat-hello-helm NodePort 10.103.185.205 <none> 80:30062/TCP 2s
NOTES: 1. Get the application URL by running these commands: export NODE_PORT=$(kubectl get --namespacedefault -o jsonpath="{.spec.ports[0].nodePort}" services kindled-numbat-hello-helm) export NODE_IP=$(kubectl get nodes --namespacedefault -o jsonpath="{.items[0].status.addresses[0].address}") echo http://$NODE_IP:$NODE_PORT
# kubectl get pod -l app.kubernetes.io/name=hello-helm NAME READY STATUS RESTARTS AGE kindled-numbat-hello-helm-6566985869-lmh2l 1/1 Running 04m3s
# kubectl get svc -l app.kubernetes.io/name=hello-helm NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kindled-numbat-hello-helm NodePort 10.103.185.205 <none> 80:30062/TCP 5m4s
#访问 curl 192.168.10.80:30062
# helm list NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE kindled-numbat 1 Sat Oct 1206:11:512019 DEPLOYED hello-helm-0.1.01.0default # helm package hello-helm Successfully packaged chart and saved it to: /root/hello-helm-0.1.0.tgz