参考
https://blog.csdn.net/lanwp5302/article/details/87161873
https://blog.csdn.net/ygqygq2/article/details/83655552
Prometheus
https://googlebaba.io/k8s/monitor/prometheus.html
git clone https://github.com/coreos/prometheus-operator.git
#切换到0.29分支
git checkout -b release-0.29 origin/release-0.29
kubectl apply -f bundle.yaml
没有成功更换image地址为本地harbor地址镜像
+ - --config-reloader-image=test.com/promethues/configmap-reload:v0.0.1
+ - --prometheus-config-reloader=test.com/promethues/prometheus-config-reloader:v0.29.0
+ image: test.com/promethues/prometheus-operator:v0.29.0
kubectl delete -f bundle.yaml
kubectl apply -f bundle.yaml
kubectl get pods
cd contrib/kube-prometheus
#执行安装脚本
./hack/example-service-monitoring/deploy
kubectl -n default get pod
ot@master prometheus-operator]# kubectl -n default get pod
NAME READY STATUS RESTARTS AGE
example-app-56b6967766-6dhtf 0/1 ContainerCreating 0 65s
example-app-56b6967766-fn5fg 0/1 ContainerCreating 0 65s
example-app-56b6967766-h2ptm 0/1 ImagePullBackOff 0 65s
example-app-56b6967766-z7r59 0/1 ContainerCreating 0 65s
nfs-client-provisioner-7bdc895cd4-t7kcr 1/1 Running 2 30h
nginx-dbddb74b8-7lmkv 1/1 Running 2 4d4h
nginx-dbddb74b8-fnjn5 1/1 Running 2 4d4h
nginx-dbddb74b8-s5n7c 1/1 Running 2 4d4h
nginx-deployment-78666767b-65l87 1/1 Running 2 30h
nginx-deployment-78666767b-cdf9q 1/1 Running 2 30h
nginx-deployment-78666767b-x7tl2 1/1 Running 2 30h
prometheus-frontend-0 2/3 ImagePullBackOff 0 11m
prometheus-operator-6b7777cb95-c6dtv 1/1 Running 0 46m
[root@master prometheus-oper
kubectl describe pod prometheus-frontend-0
发现报错
"
Warning Failed 9m31s (x2 over 10m) kubelet, 10.0.3.243 Failed to pull image "quay.io/prometheus/prometheus:v1.7.1": rpc error: code = Unknown desc = Error response from daemon: Get https://quay.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
"
docker pull quay.io/prometheus/prometheus:v1.7.1失败
改成
docker pull prom/prometheus:v1.7.1