Kubernetes Kubectl Can't Find Server

Posted on
Kubernetes Kubectl Can't Find Server Rating: 3,8/5 5911 reviews

ERROR: logging before flag.Parse: W0802 17:26 1 server.go:64 Error getting metrics from dnsmasq: read udp 127.0.0.1:59054-127.0.0.1:53: read: connection refused This means that the health container is getting no response from dnsmasq container - which is all via local addresses in the same pod - so shouldn't be a k8s level networking issue. It implies something broken with the dnsmasq container. Edit: Actually - looking at the time stamps on the logs, its not clear, all the connection refusal messages were before dnsmasq was listening. So those messages are expected. Presumably they stopped after 17:53:35? Ok - version 1.28.4 solves it, works like a charm, thank you, I think we can close this issue.` $ kubectl -n default exec -ti busybox - nslookup kubernetes.default Server: 10.96.0.10 Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local Name: kubernetes.default Address 1: 10.96.0.1 kubernetes.default.svc.cluster.local Btw. Do you know why it can't resolve svc.cluster.local?

Kubectl -n default exec -ti busybox - nslookup svc.cluster.local Server: 10.96.0.10 Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local nslookup: can't resolve 'svc.cluster.local' command terminated with exit code 1.

Kubectl

ENV: centos7x8664 Linux master 3.10.0-862.9.1.el7.x8664 k8s v1.11.1 metrics-server 0.2.x When I run the command of README, some error messages print. # Kubernetes 1.8 $ kubectl create -f deploy/1.8+/ #error pod logs I0810 06:80 1 heapster.go:71 /metrics-server I0810 06:33 1 heapster.go:72 Metrics Server version v0.2.1 F0810 06:40 1 heapster.go:79 Failed to get kubernetes address: No kubernetes source found.

Kubernetes Kubectl Can't Find Server Ip

#deployment status metrics-server Back-off restarting failed container #container metrics-server-f5bc46bd7-hx8dc Back-off restarting failed container Maybe it can’t find the api-server addr,or the authorization is forbidden? The kube-apiserve is running on 6443 port. Are there have any docs i can read? It seems because deploy/1.8+/metrics-server-deployment.yaml doesn't have any options. I've started metrics-server by adding 'source' option referenced from b/deploy/1.8+/metrics-server-deployment.yaml @@ -31,6 +31,9 @@ spec: - name: metrics-server image: gcr.io/googlecontainers/metrics-server-amd64:v0.2.1 imagePullPolicy: Always + command: + - /metrics-server + - -source=kubernetes:volumeMounts: - name: tmp-dir mountPath: /tmp maybe metrics-server needs any other options too, please make sure what kind of options have to be added. ADDITION: this problem happens after the commit., would you check this problem?

At the beginning, my problem is the same as yours. According to your method, I have made such an error. I0817 06:60 1 heapster.go:71 /metrics-server -source=kubernetes: I0817 06:29 1 heapster.go:72 Metrics Server version v0.2.1 I0817 06:58 1 configs.go:61 Using Kubernetes client with master ' and version I0817 06:80 1 configs.go:62 Using kubelet port 10255 I0817 06:31 1 heapster.go:128 Starting with Metric Sink I0817 06:36 1 serving.go:308 Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key) F0817 06:45 1 heapster.go:97 Could not create the API server: cluster doesn't provide requestheader-client-ca-file.