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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user