将kube-state-metrics安装到GCE上的现有集群中

时间:2019-04-03 19:54:54

标签: kubernetes google-cloud-platform google-kubernetes-engine kubectl

尝试遵循官方GitHub上的教程:https://github.com/kubernetes/kube-state-metrics

我设法制作了容器,但是在我想使用kubectl apply -f kubernetes进行申请后,收到以下错误消息:

ction refused
unable to recognize "kubernetes/kube-state-metrics-cluster-role.yaml": Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection re
fused
unable to recognize "kubernetes/kube-state-metrics-deployment.yaml": Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection refu
sed
unable to recognize "kubernetes/kube-state-metrics-role-binding.yaml": Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection re
fused
unable to recognize "kubernetes/kube-state-metrics-role.yaml": Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection refused
unable to recognize "kubernetes/kube-state-metrics-service-account.yaml": Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection
 refused

Anyone knows what this is about?
Clusters Master Version is 1.10.11-gke.1

0 个答案:

没有答案