Skip to content

Commit

Permalink
Merge pull request kubernetes#4624 from thockin/dnslabels
Browse files Browse the repository at this point in the history
Add cluster-service label to DNS
  • Loading branch information
satnam6502 committed Feb 19, 2015
2 parents adc10d9 + fcfe420 commit e2c97e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 7 additions & 5 deletions cluster/addons/dns/skydns-rc.yaml.in
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
kind: ReplicationController
apiVersion: v1beta1
id: skydns
id: kube-dns
namespace: default
labels:
k8s-app: skydns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
desiredState:
replicas: {{ pillar['dns_replicas'] }}
replicaSelector:
k8s-app: skydns
k8s-app: kube-dns
podTemplate:
labels:
k8s-app: skydns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
desiredState:
manifest:
version: v1beta2
id: skydns
id: kube-dns
dnsPolicy: "Default" # Don't use cluster DNS.
containers:
- name: etcd
Expand Down
7 changes: 4 additions & 3 deletions cluster/addons/dns/skydns-svc.yaml.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
kind: Service
apiVersion: v1beta1
id: skydns
id: kube-dns
namespace: default
protocol: UDP
port: 53
portalIP: {{ pillar['dns_server'] }}
containerPort: 53
labels:
k8s-app: skydns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
selector:
k8s-app: skydns
k8s-app: kube-dns

0 comments on commit e2c97e0

Please sign in to comment.