mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
[metallb] Add variable for the metallb namespace (#11136)
This commit is contained in:
committed by
GitHub
parent
a01d0c047a
commit
966a8b95de
@@ -33,7 +33,7 @@
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
|
||||
- name: Kubernetes Apps | Wait for MetalLB controller to be running
|
||||
command: "{{ bin_dir }}/kubectl rollout status -n metallb-system deployment -l app=metallb,component=controller --timeout=2m"
|
||||
command: "{{ bin_dir }}/kubectl rollout status -n {{ metallb_namespace }} deployment -l app=metallb,component=controller --timeout=2m"
|
||||
become: true
|
||||
when:
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
@@ -104,5 +104,5 @@
|
||||
name: config
|
||||
kubectl: "{{ bin_dir }}/kubectl"
|
||||
resource: ConfigMap
|
||||
namespace: metallb-system
|
||||
namespace: "{{ metallb_namespace }}"
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user