k8s安装prometheus-operator

 参考

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




 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值