Questions tagged [kube-dns]
209 questions
7
votes
1 answer
Kubernetes pod resolve external kafka hostname in coredns not as hostaliases inside pod
I am having spring boot app where in application.property we are specifying below properties. kafka is installed on remote machine with self-signed certificate (outside the kubernete…

user1184777
- 987
- 2
- 19
- 38
7
votes
3 answers
Kubernetes - How to edit CoreDNS corefile configmap?
I have a pretty standard installation of Kubernetes running as a single-node cluster on Ubuntu. I am trying to configure CoreDNS to resolve all internal services within my Kubernetes cluster and SOME external domain names. So far, I have just been…

A. Davidson
- 397
- 1
- 4
- 14
7
votes
2 answers
Unable to enter a kubernetes pod. Error from server: error dialing backend: dial tcp: lookup (node hostname) on 168.63.129.16:53: no such host
We have deployed a K8S cluster using ACS engine in an Azure public cloud.
We are able to create deployments and services but when we enter a pod using "kubectl exec -ti (pod name) (command)" we are receiving the below error,
Error from server:…

Leo Lazarus
- 107
- 1
- 7
7
votes
1 answer
Instructions to install addons with Kubernetes 1.6 on bare metal machine?
I have setup my kubernetes cluster from scratch following this doc: https://kubernetes.io/docs/getting-started-guides/scratch/
My kubernetes master and worker are working correctly, but I didn't find the instruction to deploy dns addons.

Xi Long Zheng
- 73
- 1
- 4
6
votes
4 answers
core_dns stuck in ContainerCreating status
I am trying to setup a basic k8s cluster
After doing a kubeadm init --pod-network-cidr=10.244.0.0/16, the coredns pods are stuck in ContainerCreating status
NAME READY STATUS RESTARTS …

Harish Gupta
- 141
- 1
- 7
6
votes
1 answer
Kubernetes DNS lookup issue and "invalid" in the /etc/resolv.conf file
I have deployed a Kubernetes cluster composed of a master and two workers using kubeadm and the Flannel network driver (So I passed the --pod-network-cidr=10.244.0.0/16 flag to kubeadm init).
Those nodes are communicating together using a VPN so…

ZedTuX
- 2,859
- 3
- 28
- 58
6
votes
1 answer
How to fix error 'Operation [get] for kind [pod] with name [spark-wordcount-driver] in namespace [non-default-namespace] failed
I am trying to run a simple wordcount application in Spark on Kubernetes. I am getting following issue.
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Operation: [get] for kind: [Pod] with name:…

hp2326
- 181
- 1
- 3
- 12
6
votes
2 answers
Kubernetes service discovery doesn't resolve service host on minikube
I'm trying to run two services with k8s running on minikube installation.
So I have the sevice Foo and Bar, so when I'm accessing the service Foo it must trigger service Bar to get the data.
Here is the deployment configuration for Foo…

Sergii Bishyr
- 8,331
- 6
- 40
- 69
6
votes
3 answers
Multi-broker Kafka on Kubernetes how to set KAFKA_ADVERTISED_HOST_NAME
My current Kafka deployment file with 3 Kafka brokers looks like this:
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: kafka
spec:
selector:
matchLabels:
app: kafka
serviceName: kafka-headless
replicas: 3
…

Dcompoze
- 853
- 1
- 11
- 19
6
votes
1 answer
Zookeeper: Hostname resolution fails
I am running Zookeeper in an OpenShift/Kubernetes environment. I have setup zookeeper as a StatefulSet in order to reliably persist config data.
I configured three servers in my zoo.cfg by hostname, but on startup, hostname resolution fails. I…

Franz Wimmer
- 1,477
- 3
- 20
- 38
5
votes
3 answers
Kubernetes: ERR_NAME_NOT_RESOLVED
I have deployed a mongo db, Spring Boot BE, Angular app within GKE. My FE service is a load balancer, it needs to connect with my BE to get data but I'm getting an console error in my browser: GET http://contactbe.default.svc.cluster.local/contacts…

user3380193
- 51
- 1
- 4
5
votes
4 answers
kubedns can not start with "Failed to list *v1.Endpoints: Unauthorized" and "Failed to list *v1.Service: Unauthorized"
I have a problem when I install the kube-dns add on.
My OS is CentOS Linux release 7.0.1406 (Core)
Kernel:Linux master 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
My api-server config:
###
# kubernetes…

frank
- 79
- 1
- 1
- 5
5
votes
2 answers
How does DNS resolution work on Kubernetes with multiple networks?
I have a 4 node Kubernetes cluster, 1 x controller and 3 x workers. The following shows how they are configured with the versions.
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE …

Russell Seymour
- 1,333
- 1
- 16
- 35
5
votes
1 answer
Scheduling kube-dns on dedicated node pool
I have a cluster running on GCP that currently consists entirely of preemtible nodes. We're experiencing issues where kube-dns becomes unavailable (presumably because a node has been preempted). We'd like to improve the resilience of DNS by moving…

Faun
- 614
- 6
- 17
5
votes
2 answers
kube-dns error: reply from unexpected source
I have a strange error with kube-dns.
Environment:
Cluster with a single master and a few nodes deployed on AWS with kops.
Kubernetes version 1.8.4.
Problem is that I have flakiness in DNS name resolution (both cluster-internal or external names) in…

whites11
- 12,008
- 3
- 36
- 53