Add label to namespaces

This patch set adds label to "kube-system" and "default"
namespaces used for podSelector.

Change-Id: Ia67a0e4d9adf6f5575d74aebf77673aae3660c62
Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
Tin Lam 2018-01-17 09:46:03 -06:00
parent c1a8572584
commit f6347e7d28

@ -219,3 +219,11 @@
owner: "{{ vars.user.uid }}"
group: "{{ vars.user.gid }}"
mode: 0600
- name: add labels to namespace
delegate_to: 127.0.0.1
command: kubectl label --overwrite namespace {{ item }} name={{ item }}
with_items:
- default
- kube-system
ignore_errors: True