老师,我使用helm2.13.1 执行helm install ./prometheus-operator/ --name imooc-prom --namespace monitoring 报错,通过学员说换成2.14.X就可以执行了。
我用的是2.14.3执行成功的。
然后就这两个起不来:
[root@master01 ~]# kubectl get all -n monitoring
NAME READY STATUS RESTARTS AGE
pod/alertmanager-imooc-prom-prometheus-oper-alertmanager-0 1/2 CrashLoopBackOff 8 21m
pod/imooc-prom-grafana-65cff8459b-ch7zg 2/2 Running 0 21m
pod/imooc-prom-kube-state-metrics-fc486547d-z7x9q 1/1 Running 0 21m
pod/imooc-prom-prometheus-node-exporter-ffdnp 1/1 Running 0 21m
pod/imooc-prom-prometheus-node-exporter-nq4x7 1/1 Running 0 21m
pod/imooc-prom-prometheus-oper-operator-59455df6f6-hvm4t 1/1 Running 0 21m
pod/prometheus-imooc-prom-prometheus-oper-prometheus-0 0/3 ContainerCreating 0 21m
查看了日志:
Events:
Type Reason Age From Message
Normal Scheduled 23m default-scheduler Successfully assigned monitoring/prometheus-imooc-prom-prometheus-oper-prometheus-0 to worker01
Warning FailedMount 56s (x10 over 21m) kubelet, worker01 Unable to mount volumes for pod “prometheus-imooc-prom-prometheus-oper-prometheus-0_monitoring(038dd5c4-3db8-11ea-be36-000c29b5a2df)”: timeout expired waiting for volumes to attach or mount for pod “monitoring”/“prometheus-imooc-prom-prometheus-oper-prometheus-0”. list of unmounted volumes=[secret-etcd-certs]. list of unattached volumes=[config config-out prometheus-imooc-prom-prometheus-oper-prometheus-rulefiles-0 secret-etcd-certs prometheus-imooc-prom-prometheus-oper-prometheus-db imooc-prom-prometheus-oper-prometheus-token-wvbgp]
Warning FailedMount 54s (x19 over 23m) kubelet, worker01 MountVolume.SetUp failed for volume “secret-etcd-certs” : secrets “etcd-certs” not found
在安装helm的时候使用:【请问/etc/kubernetes/ssl/tiller001.pem 这些怎么生成的?课程没有说明】
也不清楚是不是这个原因???
helm init --service-account tiller --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.13.1 --tiller-tls-cert /etc/kubernetes/ssl/tiller001.pem --tiller-tls-key /etc/kubernetes/ssl/tiller001-key.pem --tls-ca-cert /etc/kubernetes/ssl/ca.pem --tiller-namespace kube-system --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts