尝试遵循官方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