【发布时间】:2018-05-01 10:20:58
【问题描述】:
我已经按照link 在谷歌云 kubernetes 中安装 Grafana/Prometheus。我希望它部署成功请找到以下响应以供参考,
服务创建成功:
kubectl --namespace=monitoring get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
grafana NodePort 10.27.249.8 <none> 3000:32703/TCP 1h
prometheus NodePort 10.27.249.233 <none> 9090:31939/TCP 1h
命名空间创建成功:
kubectl get namespaces
NAME STATUS AGE
default Active 19h
kube-public Active 19h
kube-system Active 19h
monitoring Active 1h
PODS 响应:
kubectl --namespace=monitoring get pods
NAME READY STATUS RESTARTS AGE
grafana-1323121529-8614m 1/1 Running 0 1h
node-exporter-lw8cr 0/1 CrashLoopBackOff 17 1h
node-exporter-nv85s 0/1 CrashLoopBackOff 17 1h
node-exporter-r2rfl 0/1 CrashLoopBackOff 17 1h
prometheus-3259208887-x2zjc 1/1 Running 0 1h
现在我正在尝试为 Grafana 公开外部 Ip,但我无法继续收到以下异常“来自服务器的错误 (AlreadyExists):服务“prometheus”已经存在”
kubectl --namespace=monitoring expose deployment/prometheus --type=LoadBalancer
Error from server (AlreadyExists): services "prometheus" already exists
已编辑
kubectl -n monitoring edit service prometheus Edit cancelled, no changes made.
【问题讨论】:
标签: docker kubernetes google-cloud-platform grafana prometheus