Fix: change bootstrapping CoreDNS Pod labels

Exclude the host bootstrapping coredns pod from the Kubernetes DNS
Service, so that no traffic is routed to it until the node is joined.

Change-Id: Ic0ac97d343b08f49ef6034fa186766fe17ab1738
This commit is contained in:
Mark Burnett 2017-12-12 16:02:11 -06:00
parent 4a41bab364
commit 7b250b5cc4
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ metadata:
name: coredns
namespace: kube-system
labels:
coredns-service: enabled
# NOTE(mark-burnett): This is a host initialization Pod and should not be
# included in the Kubernetes DNS service, so ensure it does not get
# selected.
coredns-service: disabled
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec: