From d285565475959f2d68f9c1b4e7af6195b63c722b Mon Sep 17 00:00:00 2001 From: Mathieu Herbert Date: Tue, 7 Aug 2018 20:53:36 +0200 Subject: [PATCH] Add tags for coredns and kubedns --- roles/kubernetes-apps/ansible/tasks/kubedns.yml | 2 ++ roles/kubernetes-apps/ansible/tasks/main.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/roles/kubernetes-apps/ansible/tasks/kubedns.yml b/roles/kubernetes-apps/ansible/tasks/kubedns.yml index c4c34ecf8..b2199d446 100644 --- a/roles/kubernetes-apps/ansible/tasks/kubedns.yml +++ b/roles/kubernetes-apps/ansible/tasks/kubedns.yml @@ -19,6 +19,7 @@ - rbac_enabled or item.type not in rbac_resources tags: - dnsmasq + - kubedns # see https://github.com/kubernetes/kubernetes/issues/45084, only needed for "old" kube-dns - name: Kubernetes Apps | Patch system:kube-dns ClusterRole @@ -39,3 +40,4 @@ - rbac_enabled and kubedns_version|version_compare("1.11.0", "<", strict=True) tags: - dnsmasq + - kubedns diff --git a/roles/kubernetes-apps/ansible/tasks/main.yml b/roles/kubernetes-apps/ansible/tasks/main.yml index ceb667f69..62169d27d 100644 --- a/roles/kubernetes-apps/ansible/tasks/main.yml +++ b/roles/kubernetes-apps/ansible/tasks/main.yml @@ -17,6 +17,9 @@ - inventory_hostname == groups['kube-master'][0] tags: - upgrade + - dnsmasq + - coredns + - kubedns - name: Kubernetes Apps | CoreDNS import_tasks: "tasks/coredns.yml" @@ -56,6 +59,8 @@ delay: 5 tags: - dnsmasq + - coredns + - kubedns - name: Kubernetes Apps | Netchecker import_tasks: tasks/netchecker.yml