部分内容参考 https://blog.csdn.net/bbwangj/article/details/81087911
迅雷下载helm
https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz
上传至 centos 虚拟机 解压
mv helm-v2.14.1-linux-amd64.tar.gz
移动至bin目录
mv linux-amd64/helm /usr/local/bin/helm
helm 命令可用
换helm镜像到阿里云
helm init --client-only --stable-repo-url https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts/
helm repo add incubator https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts-incubator/
helm repo update
安装Tiller
helm init
查看
kubectl get pods -n kube-system|grep tiller
卸载使用 helm reset
查询 charts
helm search
更换仓库
# 先移除原先的仓库
helm repo remove stable
# 添加新的仓库地址
helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
# 更新仓库
helm repo update
helm init --client-only --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm repo add incubator https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts-incubator/
helm repo update
使用下面的命令提醒不接受参数
# 创建服务端
helm init --service-account tiller --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.1 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
准备使用docker直接安装的时候再次尝试了一下, 去掉了 --upgrade, 居然安装成功
helm init --service-account tiller -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.1 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
安装 nginx 注意 true后面的逗号不能写错
helm install stable/nginx-ingress --set controller.hostNetwork=true,rbac.create=true
nginx-ingress-controller 一直处理pending状态 但是不影响使用
curl http://192.168.220.129:32526/healthz 获取200的响应, 其它请求获取 404
这说明安装成功了
安装 monocular
helm repo add monocular https://helm.github.io/monocular
helm install --name monocular monocular/monocular
[root@node0 html]# helm install --name monocular monocular/monocular
NAME: monocular
LAST DEPLOYED: Mon Jun 24 16:33:04 2019
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/ConfigMap
NAME DATA AGE
monocular-monocular-ui-config 2 0s
monocular-monocular-ui-vhost 1 0s
==> v1/Job
NAME COMPLETIONS DURATION AGE
monocular-monocular-sync-initial-incubator-s39qj 0/1 0s 0s
monocular-monocular-sync-initial-stable-j4vxr 0/1 0s 0s
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
monocular-mongodb-74f7cdc89-q7tnz 0/1 ContainerCreating 0 0s
monocular-monocular-chartsvc-7d9898b444-p8wh8 0/1 ContainerCreating 0 0s
monocular-monocular-chartsvc-7d9898b444-pnqjj 0/1 Pending 0 0s
monocular-monocular-chartsvc-7d9898b444-qmltl 0/1 ContainerCreating 0 0s
monocular-monocular-prerender-59f864d595-dw2t6 0/1 Pending 0 0s
monocular-monocular-sync-initial-incubator-s39qj-ksphd 0/1 Pending 0 0s
monocular-monocular-sync-initial-stable-j4vxr-qcm9f 0/1 Pending 0 0s
monocular-monocular-ui-5ddc8578fb-d9nhq 0/1 Pending 0 0s
monocular-monocular-ui-5ddc8578fb-xp47k 0/1 Pending 0 0s
==> v1/Secret
NAME TYPE DATA AGE
monocular-mongodb Opaque 1 0s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
monocular-mongodb ClusterIP 10.1.14.92 <none> 27017/TCP 0s
monocular-monocular-chartsvc ClusterIP 10.1.49.242 <none> 8080/TCP 0s
monocular-monocular-prerender NodePort 10.1.29.23 <none> 80:32398/TCP 0s
monocular-monocular-ui NodePort 10.1.239.226 <none> 80:31353/TCP 0s
==> v1beta1/CronJob
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
monocular-monocular-sync-scheduled-incubator 0 * * * * False 0 <none> 0s
monocular-monocular-sync-scheduled-stable 0 * * * * False 0 <none> 0s
==> v1beta1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
monocular-mongodb 0/1 1 0 0s
monocular-monocular-prerender 0/1 1 0 0s
monocular-monocular-ui 0/2 2 0 0s
==> v1beta1/Ingress
NAME HOSTS ADDRESS PORTS AGE
monocular-monocular * 80 0s
==> v1beta2/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
monocular-monocular-chartsvc 0/3 3 0 0s
NOTES:
The Monocular chart sets up an Ingress to serve the API and UI on the same
domain. You can get the address to access Monocular from this Ingress endpoint:
$ kubectl --namespace default get ingress monocular-monocular
Point your Ingress hosts to the address from the output of the above command:
- null
Visit https://github.com/helm/monocular for more information.