Questions tagged [kube-dns]

209 questions
5
votes
1 answer

Configure NFS server for PersistentVolume either via DNS or static ClusterIP

I have a kubernetes cluster running on google container engine that defines a Pod running a NFS-Server, which I want to access in other Pods via various PersistentVolumes. What is the best way to configure the NFS Service, if it is in the same…
DanielW
  • 109
  • 9
5
votes
2 answers

Error when deploying kube-dns: No configuration has been provided

I have just installed a basic kubernetes cluster the manual way, to better understand the components, and to later automate this installation. I followed this guide: https://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/ The…
Cinaed666
  • 79
  • 9
5
votes
1 answer

Create specific A record entry to Kubernetes local DNS

I have a Kubernetes v1.4 cluster running in AWS with auto-scaling nodes. I also have a Mongo Replica Set cluster with SSL-only connections (FQDN common-name) and public DNS entries: node1.mongo.example.com -> 1.1.1.1 node2.mongo.example.com ->…
Tim Jones
  • 53
  • 1
  • 4
4
votes
1 answer

Kubernetes, Automatic Service fallback to another namespace

I have multiple environments represented by multiple namespaces in my kubernetes. All application has its service endpoints defined in each namespace. And we have three environments, dev, alpha, and beta. (Which is equivalent of dev, test, and…
Ysak
  • 2,601
  • 6
  • 29
  • 53
4
votes
1 answer

kubernetes DNS pod name resolution

I am trying to get dns pod name resolution working on my EKS Kubernetes cluster v1.10.3. My understanding is that creating a headless service will create the necessary pod name records I need but I'm finding this is not true. Am I missing…
sebastian
  • 2,008
  • 4
  • 31
  • 49
4
votes
0 answers

How to resolve Kubernetes API from minikube?

I can't seem to be able to find the Kubernetes API IP address from within the minikube machine, using minikube ssh. nslookup kubernetes.default.svc.cluster.local 10.0.0.1 Server: 10.0.0.1 Address 1: 10.0.0.1 nslookup: can't resolve…
ttiurani
  • 405
  • 3
  • 14
4
votes
2 answers

kube-dns can not resolve 'kubernetes.default.svc.cluster.local'

After deploying the kubernetes cluster using kargo, I found out that kubedns pod is not working properly: $ kcsys get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE dnsmasq-alv8k 1/1 Running 2 1d…
mootez
  • 334
  • 1
  • 7
  • 23
4
votes
1 answer

Kubernetes PetSet DNS not working

I have a Kubernetes PetSet with name == elasticsearch and serviceName == es. It does create pods and, as expected, they have names like elasticsearch-0 and elasticsearch-1. However, DNS does not seem to be working. elasticsearch-0.es does not…
Oliver Dain
  • 9,617
  • 3
  • 35
  • 48
4
votes
1 answer

Kubernetes on docker creates containers with empty serviceaccount and no tokens leading to container crash and restarts

Still experiencing a similar issues 1.3.0 and upto 1.4.0-alpha.0 In my case (docker based set up), either trusty or kubedns would get unauthorized from api server. and strangely I see that the secrets are not there inside the instances, under the…
Santanu Dey
  • 2,900
  • 3
  • 24
  • 38
3
votes
0 answers

AKS - enable node local dns

I'm trying to enable nodelocaldns on AKS cluster, however i cannot find a confirmed working way of doing that. The things i found so far: Official docs on enabling it: https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/ the problem…
3
votes
0 answers

use ingress path for accessing a service from within the kubernetes cluster

I am getting my hands dirty with kubernetes and ingress and have seem to have hit bit of a hurdle. So I have a cluster set up and have my services deployed and exposed via service and they all are reachable from within the cluster using their names…
JayD
  • 748
  • 1
  • 13
  • 38
3
votes
0 answers

Unable to use curl using kubernetes service's dns address

I'm trying to perform curl to my pod from another pod in a Kubernetes cluster. $ kubectl version --short Client Version: v1.17.0 Server Version: v1.16.14 To do so, I tried the following commands: $ kubectl run curl-performer…
Masudur Rahman
  • 1,585
  • 8
  • 16
3
votes
2 answers

Openshift/Kubernates kube dns best practise (ndots = 5)

I have been using Openshift/Kubernates for some time and this has been the understanding. For service to service communication use DNS name of ${service-name} if they are under the same namespace use DNS name of…
bLaXjack
  • 780
  • 2
  • 11
  • 23
3
votes
2 answers

Can't resolve dns from inside k8s pod

In dnsutils pod exec ping stackoverflow.com / # ping stackoverflow.com ping: bad address 'stackoverflow.com' The /etc/resolve.conf file looks fine from inside the pod / # cat /etc/resolv.conf nameserver 10.96.0.10 search weika.svc.cluster.local…
Minato
  • 65
  • 1
  • 7
3
votes
0 answers

How to resolve dns problem in Kubernetes?

I've a very strange error in my kubernetes configuration. When I'm trying to connect to KubeDNS (I'm using minikube) I have the following error: { "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message":…
Alex
  • 59
  • 4
1 2
3
13 14