Questions tagged [kube-dns]

209 questions
18
votes
1 answer

How to expose kube-dns service for queries outside cluster?

I'm trying to expose the "kube-dns" service to be available to be queried outside of the Kubernetes cluster. In order to do this I edited the "Service" definition to change "type" from "ClusterIP" to "NodePort" which seemed to work fine. However,…
srkiNZ84
  • 3,558
  • 5
  • 30
  • 37
14
votes
2 answers

nslookup: can't resolve kubernetes.default

I am trying to learn DNS in kubernetes with https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/ I deployed the busybox kubectl get pods busybox -o wide NAME READY STATUS RESTARTS AGE IP …
talktolanka
  • 189
  • 1
  • 2
  • 4
14
votes
2 answers

Why dig does not resolve K8s service by dns name while nslookup has no problems with it?

Here are steps to reproduce: minikube start kubectl run nginx --image=nginx kubectl expose deployment nginx --port=80 --type=ClusterIP kubectl run -i --tty --rm alpine --image=alpine --restart=Never -- sh apk add --no-cache bind-tools Now let's…
Kirill
  • 6,762
  • 4
  • 51
  • 81
13
votes
6 answers

How to change the cluster.local default domain on kubernetes 1.9 deployed with kubeadm?

I would like to resolve the kube-dns names from outside of the Kubernetes cluster by adding a stub zone to my DNS servers. This requires changing the cluster.local domain to something that fits into my DNS namespace. The cluster DNS is working fine…
Marcus
  • 159
  • 1
  • 1
  • 7
12
votes
1 answer

KubeDNS error, server misbehaving

I have a problem trying exec'ing into a container: kubectl exec -it busybox-68654f944b-hj672 -- nslookup kubernetes Error from server: error dialing backend: dial tcp: lookup worker2 on 127.0.0.53:53: server misbehaving Or getting logs from a…
Richard87
  • 1,592
  • 3
  • 16
  • 29
12
votes
2 answers

kubernetes installation and kube-dns: open /run/flannel/subnet.env: no such file or directory

Overview kube-dns can't start (SetupNetworkError) after kubeadm init and network setup: Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-w4mpg_kube-system" with SetupNetworkError: "Failed to setup network for pod…
kolisko
  • 1,548
  • 3
  • 17
  • 22
11
votes
3 answers

Flush CoreDNS Cache on Kubernetes Cluster

How to flush CoreDNS Cache on kubernetes cluster? I know it can be done by deleting the CoreDNS pods, but is there a proper way to to the cache flush ?
Fauzan
  • 654
  • 1
  • 7
  • 15
11
votes
2 answers

How do I get individual pod hostnames in a Deployment registered and looked up in Kubernetes?

I need to know all the hostnames for all the pods in a Deployment in Kubernetes. Based on https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/, I tried: apiVersion: v1 kind: Service metadata: name: default-subdomain spec: …
Nsen
  • 281
  • 1
  • 3
  • 8
10
votes
1 answer

How to resolve pod hostnames from other pods?

I have 2 pods running on 2 nodes, each pod runs in different node. These nodes are on the same subnet and can TCP/UDP/ICMP themselves. These pods got some hostnames, ie: drill-staging-75cddd789-kbzsq drill-staging-75cddd789-amsrj From pod…
rudolfdobias
  • 1,778
  • 3
  • 17
  • 40
10
votes
2 answers

How to get kube-dns working in Vagrant cluster using kubeadm and Weave

I deployed a few VMs using Vagrant to test kubernetes: master: 4 CPUs, 4GB RAM node-1: 4 CPUs, 8GB RAM Base image: Centos/7. Networking: Bridged. Host OS: Centos 7.2 Deployed kubernetes using kubeadm by following kubeadm getting started guide.…
bach
  • 153
  • 2
  • 5
9
votes
1 answer

Kubernetes DNS intermittently failing with kube-dns service and CoreDNS pods seeming OK

We have a Kubernetes cluster with 1 master and 3 nodes managed by kops that we use for our application deployment. We have minimal pod-to-pod connectivity but like the autoscaling features in Kubernetes. We've been using this for the past few months…
Ruby
  • 528
  • 3
  • 14
9
votes
2 answers

How does one install the kube-dns addon for minikube?

Can someone please detail the steps necessary to install the kube-dns addon? I've downloaded the nearly 400MB git repo in the previous link and run make as instructed but get Nothing to be done for 'all'. The docs aren't clear what form add-ons…
l p
  • 528
  • 1
  • 7
  • 17
9
votes
2 answers

Can I add service name aliases in K8s DNS the same way links can have aliases in Docker?

In Docker a client container can refer to a server container by different names by using link aliasing: --link server-container:my_preferred_server A second client can use its own choice of names -- link server-container:server Can I achieve this…
lcfd
  • 1,326
  • 10
  • 12
8
votes
2 answers

How to configure kubernetes to pull container images from a registry hosted in the same cluster / inside itself

I am trying to make my kubernetes cluster pull from a container registry service running inside itself. I have kube dns setup, I have a registry deployment and service running. I can resolve the service internal name via host command on the node. I…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
8
votes
2 answers

kube-dns keeps restarting with kubenetes on coreos

I have Kubernetes installed on Container Linux by CoreOS alpha (1353.1.0) using hyperkube v1.5.5_coreos.0 using my fork of coreos-kubernetes install scripts at https://github.com/kfirufk/coreos-kubernetes. I have two ContainerOS…
ufk
  • 30,912
  • 70
  • 235
  • 386
1
2 3
13 14