From 00e5fc8aa48e68af852081551f4bdbb1b89ea55c Mon Sep 17 00:00:00 2001 From: jwfang <54740235@qq.com> Date: Fri, 16 Jun 2017 20:08:19 +0800 Subject: [PATCH] add label for kube-dns sa --- .../templates/{kubedns-serviceaccount.yml => kubedns-sa.yml} | 2 ++ 1 file changed, 2 insertions(+) rename roles/kubernetes-apps/ansible/templates/{kubedns-serviceaccount.yml => kubedns-sa.yml} (65%) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-serviceaccount.yml b/roles/kubernetes-apps/ansible/templates/kubedns-sa.yml similarity index 65% rename from roles/kubernetes-apps/ansible/templates/kubedns-serviceaccount.yml rename to roles/kubernetes-apps/ansible/templates/kubedns-sa.yml index 8cf41ae23..e520ccbfc 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-serviceaccount.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-sa.yml @@ -3,3 +3,5 @@ kind: ServiceAccount metadata: name: kube-dns namespace: {{ system_namespace }} + labels: + kubernetes.io/cluster-service: "true"