2016-08-16 2 views
1

클러스터 (Centos 7)를 만들고 kube-dns와 함께 rc를 배포했습니다. 클러스터 잘 작동하지만 kube-dns 로그에 오류를 인쇄합니다.kube-dns가 작동하지 않습니다.

I0817 12:40:01.589924  1 dns.go:299] could not find service for endpoint "kubernetes" in namespace "default" 
I0817 12:40:01.591584  1 dns.go:299] could not find service for endpoint "kube-scheduler" in namespace "kube-system" 
I0817 12:40:01.591608  1 dns.go:299] could not find service for endpoint "kube-controller-manager" in namespace "kube-system" 
I0817 12:40:01.591620  1 dns.go:299] could not find service for endpoint "kube-dns" in namespace "kube-system" 

apiserver : ### #의는 Kubernetes 시스템 설정 # 값은 다음과 #에게 KUBE-apiserver에게

# The address on the local server to listen to. 
KUBE_API_ADDRESS="--address=0.0.0.0" 

# The port on the local server to listen on. 
KUBE_API_PORT="--port=8080" 

# Port minions listen on 
KUBELET_PORT="--kubelet-port=10250" 

# Comma separated list of nodes in the etcd cluster 
KUBE_ETCD_SERVERS="--etcd-servers=http://127.0.0.1:2379" 

# Address range to use for services 
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.10.150.0/19" 

# default admission control policies 
KUBE_ADMISSION_CONTROL="NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota" 
# Add your own! 

마스터 구성 파일을 구성하는 데 사용됩니다 # :

KUBE_LOGTOSTDERR="--logtostderr=true" 

ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}" 
DNS_SERVER_IP="10.10.150.250" 
DNS_DOMAIN="cluster.local" 
DNS_REPLICAS=1 

# journal message level, 0 is debug 
KUBE_LOG_LEVEL="--v=0" 

# Should this cluster be allowed to run privileged docker containers 
KUBE_ALLOW_PRIV="--allow-privileged=false" 

# How the controller-manager, scheduler, and proxy find the apiserver 
KUBE_MASTER="--master=http://127.0.0.1:8080" 

아무도 모르게됩니까?)

DNS가 작동하려면

답변

0

내 SELinux에 문제가있었습니다 ... 비활성화했을 때 모든 것이 작동합니다.

+0

Downvoted를 사용하면이 제안이 작동하지 않을뿐만 아니라 보안 관점에서 위험합니다. –

0

https://github.com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh#L352

KUBE_ENABLE_CLUSTER_DNS 사실이어야한다. --cluster-dns = 10.10.150.250 --cluster_domain = cluster.local

+0

구성에 다음 줄이 있습니다. 마지막으로이 티켓에 적용했습니다. 또한 내 etcd 클러스터를 청소하고 모든 마스터와 모드를 다시 시작했습니다. 그리고 비슷한 문제가 생겼지 만 kube-controller-manager와 kube-scheduler –

관련 문제