Questions tagged [kube-dns]

209 questions
0
votes
1 answer

Pass IP of kube-dns as env to container

Is there a way to pass the kube-dns server IP to the container so that services inside the container can resolve the names properly? I am trying to run nginx and it needs a resolver directive to be specified to resolve names against a DNS server. I…
krish7919
  • 892
  • 2
  • 13
  • 30
0
votes
3 answers

Kubernetes service communication isse - Kubedns

I have two pods mapped to two services up and running using virtual box vm's in my laptop. I have kube dns working. One pod is a webservice and the other is a mongodb. The spec of webapp pod is below spec: containers: - resources: …
Vikram
  • 543
  • 7
  • 20
0
votes
1 answer

Kubernetes Master incorrectly reports "kubelet does not have ClusterDNS IP configured"

I have installed a kubernetes cluster manually according to this guide: https://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/ I have installed the kubedns and kubernetes-dashboard addons, but when trying to spin up a…
Cinaed666
  • 79
  • 9
0
votes
1 answer

How does service discovery work for pods with hostNetwork=true

If the hostNetwork is set to true in pod spec, it receives the same IP address as host. While the pod can be reached at with this ip, I am not able to reach the pod through a service. If I set the clusterIP to None in service, the dns lookup doesn't…
hobgoblin
  • 865
  • 1
  • 10
  • 18
0
votes
1 answer

Is it possible to run kubernetes in a shared AWS VPC private network, without dns hostnames enabled?

I trying to setup Kubernetes cluster using kops, having all of my nodes and master running on a private shabnets on my existing AWS VPC, when passing the vpcid and network cidr to the create command, i'm enforced to have the…
Ofer Velich
  • 1,959
  • 4
  • 19
  • 24
0
votes
1 answer

kube-dns pod and service still up for a while and suddenly dies

I tried to setup a kubernetes dns addon based on ansible repo: https://github.com/kubernetes/contrib/tree/master/ansible/roles/kubernetes-addons After running the playbook, i can't find out neither dns pod nor service.!! After doing some lecture,…
mootez
  • 334
  • 1
  • 7
  • 23
0
votes
1 answer

Set SKYDNS_NAMESERVERS without writing RC

I would like to add additional name servers to kube-dns in the kube-system namespace (solution provided here: https://stackoverflow.com/a/34085756/2461761), however doing this in an automated manner. So I know I can create my own dns addon via…
Tony
  • 1,128
  • 12
  • 23
0
votes
3 answers

How can one set up Kubernetes DNS using an IP address that is not host specific to the Kubernetes API?

I am having a difficult time finding out how one would get Kubernetes DNS (skydns, now called kube-dns) such that the kube-dns container/pod knows how to connect to the API server using an IP address or host that will work regardless if a master…
0
votes
1 answer

endpoints flapping in kubernetes

The services in my kubernetes cluster are not reachable. When I checked the endpoints are not available for services. On checking further I found that the endpoint keep changing between some value and null. As suggested in other posts I checked the…
Akilesh
  • 1,252
  • 1
  • 9
  • 16
0
votes
1 answer

DNS Addon Kubernetes CentOS 7 Cluster

I have been struggling getting the DNS addon working on a CentOS 7.2 cluster. I installed the cluster using the directions here: http://severalnines.com/blog/installing-kubernetes-cluster-minions-centos7-manage-pods-services In this configuration…
onedsc
  • 1
  • 2
0
votes
1 answer

kubedns container creating failed with the skydns-rc.yaml.base template file

I use the skydns-rc.yaml.base(/kubernetes-release-1.3/cluster/addons/dns/sky..) file to create the k8s dns service. but the kubedns container is always failed to created. the edited element info showed bellow: namespace : kube-system …
jeffchan
  • 1
  • 4
0
votes
2 answers

kubedns container failed to be created with the skydns-rc.yaml.base file

I use the skydns-rc.yaml.base(/kubernetes-release-1.3/cluster/addons/dns/sky..) file to create the k8s dns service. but the kubedns container is always failed to created. The following substitutions have been made: namespace: kube-system replaced…
jeffchan
  • 1
  • 4
-1
votes
1 answer

Kubernetes kube-dns restarts on master node

I have Kubernetes cluster on Ubuntu 16.04 servers, deployed using Kubespray. Kube-dns pod is restarting continuously on master node. It has restarted 3454 times. Can anyone let me know how to troubleshoot and solve this issue? Starting logs of…
Ankita
  • 1
  • 2
-2
votes
2 answers

How to best utilize Kubernetes/minikube DNS for local development

We are switching to using Kubernetes. It is simple to access other deployed services within a k8s deployment via the built in dns. So if I have pod/service named app1 and a pod/service named app2 and app1 needs to call app2, it can just use "app2"…
Dan
  • 181
  • 12
1 2 3
13
14