[metallb] Add variable for the metallb namespace (#11136)

pull/11165/head
Vladimir Shaikovskii 2024-05-06 12:11:02 +03:00 committed by GitHub
parent a01d0c047a
commit 966a8b95de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 40 additions and 39 deletions

View File

@ -171,6 +171,7 @@ cert_manager_enabled: false
# MetalLB deployment # MetalLB deployment
metallb_enabled: false metallb_enabled: false
metallb_speaker_enabled: "{{ metallb_enabled }}" metallb_speaker_enabled: "{{ metallb_enabled }}"
metallb_namespace: "metallb-system"
# metallb_version: v0.13.9 # metallb_version: v0.13.9
# metallb_protocol: "layer2" # metallb_protocol: "layer2"
# metallb_port: "7472" # metallb_port: "7472"

View File

@ -33,7 +33,7 @@
- inventory_hostname == groups['kube_control_plane'][0] - inventory_hostname == groups['kube_control_plane'][0]
- name: Kubernetes Apps | Wait for MetalLB controller to be running - 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 become: true
when: when:
- inventory_hostname == groups['kube_control_plane'][0] - inventory_hostname == groups['kube_control_plane'][0]
@ -104,5 +104,5 @@
name: config name: config
kubectl: "{{ bin_dir }}/kubectl" kubectl: "{{ bin_dir }}/kubectl"
resource: ConfigMap resource: ConfigMap
namespace: metallb-system namespace: "{{ metallb_namespace }}"
state: absent state: absent

View File

@ -11,7 +11,7 @@ apiVersion: metallb.io/v1beta1
kind: L2Advertisement kind: L2Advertisement
metadata: metadata:
name: "{{ entry }}" name: "{{ entry }}"
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
ipAddressPools: ipAddressPools:
- "{{ entry }}" - "{{ entry }}"

View File

@ -9,7 +9,7 @@ apiVersion: metallb.io/v1beta1
kind: Community kind: Community
metadata: metadata:
name: "{{ community_name }}" name: "{{ community_name }}"
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
communities: communities:
- name: "{{ community_name }}" - name: "{{ community_name }}"
@ -21,7 +21,7 @@ apiVersion: metallb.io/v1beta1
kind: Community kind: Community
metadata: metadata:
name: well-known name: well-known
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
communities: communities:
- name: no-export - name: no-export
@ -51,7 +51,7 @@ apiVersion: metallb.io/v1beta1
kind: BGPAdvertisement kind: BGPAdvertisement
metadata: metadata:
name: "{{ peer_name }}-local" name: "{{ peer_name }}-local"
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
aggregationLength: 32 aggregationLength: 32
aggregationLengthV6: 128 aggregationLengthV6: 128
@ -70,7 +70,7 @@ apiVersion: metallb.io/v1beta1
kind: BGPAdvertisement kind: BGPAdvertisement
metadata: metadata:
name: "{{ peer_name }}-external" name: "{{ peer_name }}-external"
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
{% if peer.aggregation_length is defined and peer.aggregation_length <= 30 %} {% if peer.aggregation_length is defined and peer.aggregation_length <= 30 %}
aggregationLength: {{ peer.aggregation_length }} aggregationLength: {{ peer.aggregation_length }}
@ -93,7 +93,7 @@ apiVersion: metallb.io/v1beta2
kind: BGPPeer kind: BGPPeer
metadata: metadata:
name: "{{ peer_name }}" name: "{{ peer_name }}"
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
myASN: {{ peer.my_asn }} myASN: {{ peer.my_asn }}
peerASN: {{ peer.peer_asn }} peerASN: {{ peer.peer_asn }}

View File

@ -6,7 +6,7 @@ metadata:
pod-security.kubernetes.io/audit: privileged pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/enforce: privileged pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/warn: privileged pod-security.kubernetes.io/warn: privileged
name: metallb-system name: {{ metallb_namespace }}
--- ---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
@ -23,7 +23,7 @@ spec:
caBundle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allb-system namespace: "{{ metallb_namespace }}"
path: /convert path: /convert
conversionReviewVersions: conversionReviewVersions:
- v1alpha1 - v1alpha1
@ -544,7 +544,7 @@ spec:
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlGWlRDQ0EwMmdBd0lCQWdJVU5GRW1XcTM3MVpKdGkrMmlSQzk1WmpBV1MxZ3dEUVlKS29aSWh2Y05BUUVMDQpCUUF3UWpFTE1Ba0dBMVVFQmhNQ1dGZ3hGVEFUQmdOVkJBY01ERVJsWm1GMWJIUWdRMmwwZVRFY01Cb0dBMVVFDQpDZ3dUUkdWbVlYVnNkQ0JEYjIxd1lXNTVJRXgwWkRBZUZ3MHlNakEzTVRrd09UTXlNek5hRncweU1qQTRNVGd3DQpPVE15TXpOYU1FSXhDekFKQmdOVkJBWVRBbGhZTVJVd0V3WURWUVFIREF4RVpXWmhkV3gwSUVOcGRIa3hIREFhDQpCZ05WQkFvTUUwUmxabUYxYkhRZ1EyOXRjR0Z1ZVNCTWRHUXdnZ0lpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElDDQpEd0F3Z2dJS0FvSUNBUUNxVFpxMWZRcC9vYkdlenhES0o3OVB3Ny94azJwellualNzMlkzb1ZYSm5sRmM4YjVlDQpma2ZZQnY2bndscW1keW5PL2phWFBaQmRQSS82aFdOUDBkdVhadEtWU0NCUUpyZzEyOGNXb3F0MGNTN3pLb1VpDQpvcU1tQ0QvRXVBeFFNZjhRZDF2c1gvVllkZ0poVTZBRXJLZEpIaXpFOUJtUkNkTDBGMW1OVW55Rk82UnRtWFZUDQpidkxsTDVYeTc2R0FaQVBLOFB4aVlDa0NtbDdxN0VnTWNiOXlLWldCYmlxQ3VkTXE5TGJLNmdKNzF6YkZnSXV4DQo1L1pXK2JraTB2RlplWk9ZODUxb1psckFUNzJvMDI4NHNTWW9uN0pHZVZkY3NoUnh5R1VpSFpSTzdkaXZVTDVTDQpmM2JmSDFYbWY1ZDQzT0NWTWRuUUV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XpsdTBmaUdpTm1OUEM4ckJLRmhBPQ0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /convert path: /convert
conversionReviewVersions: conversionReviewVersions:
- v1beta1 - v1beta1
@ -1291,7 +1291,7 @@ metadata:
pod-security.kubernetes.io/enforce: privileged pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/warn: privileged pod-security.kubernetes.io/warn: privileged
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
{% if metallb_speaker_enabled %} {% if metallb_speaker_enabled %}
--- ---
@ -1301,7 +1301,7 @@ metadata:
labels: labels:
app: metallb app: metallb
name: speaker name: speaker
namespace: metallb-system namespace: "{{ metallb_namespace }}"
{% endif %} {% endif %}
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
@ -1310,7 +1310,7 @@ metadata:
labels: labels:
app: metallb app: metallb
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -1402,7 +1402,7 @@ metadata:
labels: labels:
app: metallb app: metallb
name: pod-lister name: pod-lister
namespace: metallb-system namespace: "{{ metallb_namespace }}"
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -1480,7 +1480,7 @@ kind: ClusterRole
metadata: metadata:
labels: labels:
app: metallb app: metallb
name: metallb-system:controller name: {{ metallb_namespace }}:controller
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -1561,7 +1561,7 @@ kind: ClusterRole
metadata: metadata:
labels: labels:
app: metallb app: metallb
name: metallb-system:speaker name: {{ metallb_namespace }}:speaker
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -1598,7 +1598,7 @@ metadata:
labels: labels:
app: metallb app: metallb
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
@ -1606,7 +1606,7 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
@ -1615,7 +1615,7 @@ metadata:
labels: labels:
app: metallb app: metallb
name: pod-lister name: pod-lister
namespace: metallb-system namespace: "{{ metallb_namespace }}"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
@ -1623,7 +1623,7 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: speaker name: speaker
namespace: metallb-system namespace: "{{ metallb_namespace }}"
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
@ -1631,15 +1631,15 @@ kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
app: metallb app: metallb
name: metallb-system:controller name: {{ metallb_namespace }}:controller
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
name: metallb-system:controller name: {{ metallb_namespace }}:controller
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
{% if metallb_speaker_enabled %} {% if metallb_speaker_enabled %}
--- ---
@ -1648,15 +1648,15 @@ kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
app: metallb app: metallb
name: metallb-system:speaker name: {{ metallb_namespace }}:speaker
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
name: metallb-system:speaker name: {{ metallb_namespace }}:speaker
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: speaker name: speaker
namespace: metallb-system namespace: "{{ metallb_namespace }}"
{% endif %} {% endif %}
--- ---
@ -1664,14 +1664,14 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: webhook-server-cert name: webhook-server-cert
namespace: metallb-system namespace: "{{ metallb_namespace }}"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
ports: ports:
- port: 443 - port: 443
@ -1687,7 +1687,7 @@ metadata:
app: metallb app: metallb
component: controller component: controller
name: controller name: controller
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
revisionHistoryLimit: 3 revisionHistoryLimit: 3
selector: selector:
@ -1782,7 +1782,7 @@ metadata:
app: metallb app: metallb
component: speaker component: speaker
name: speaker name: speaker
namespace: metallb-system namespace: "{{ metallb_namespace }}"
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -1888,7 +1888,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta2-bgppeer path: /validate-metallb-io-v1beta2-bgppeer
failurePolicy: Fail failurePolicy: Fail
name: bgppeersvalidationwebhook.metallb.io name: bgppeersvalidationwebhook.metallb.io
@ -1908,7 +1908,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-addresspool path: /validate-metallb-io-v1beta1-addresspool
failurePolicy: Fail failurePolicy: Fail
name: addresspoolvalidationwebhook.metallb.io name: addresspoolvalidationwebhook.metallb.io
@ -1928,7 +1928,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-bfdprofile path: /validate-metallb-io-v1beta1-bfdprofile
failurePolicy: Fail failurePolicy: Fail
name: bfdprofilevalidationwebhook.metallb.io name: bfdprofilevalidationwebhook.metallb.io
@ -1948,7 +1948,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-bgpadvertisement path: /validate-metallb-io-v1beta1-bgpadvertisement
failurePolicy: Fail failurePolicy: Fail
name: bgpadvertisementvalidationwebhook.metallb.io name: bgpadvertisementvalidationwebhook.metallb.io
@ -1968,7 +1968,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-community path: /validate-metallb-io-v1beta1-community
failurePolicy: Fail failurePolicy: Fail
name: communityvalidationwebhook.metallb.io name: communityvalidationwebhook.metallb.io
@ -1988,7 +1988,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-ipaddresspool path: /validate-metallb-io-v1beta1-ipaddresspool
failurePolicy: Fail failurePolicy: Fail
name: ipaddresspoolvalidationwebhook.metallb.io name: ipaddresspoolvalidationwebhook.metallb.io
@ -2008,7 +2008,7 @@ webhooks:
clientConfig: clientConfig:
service: service:
name: webhook-service name: webhook-service
namespace: metallb-system namespace: "{{ metallb_namespace }}"
path: /validate-metallb-io-v1beta1-l2advertisement path: /validate-metallb-io-v1beta1-l2advertisement
failurePolicy: Fail failurePolicy: Fail
name: l2advertisementvalidationwebhook.metallb.io name: l2advertisementvalidationwebhook.metallb.io

View File

@ -9,7 +9,7 @@
apiVersion: metallb.io/v1beta1 apiVersion: metallb.io/v1beta1
kind: IPAddressPool kind: IPAddressPool
metadata: metadata:
namespace: metallb-system namespace: "{{ metallb_namespace }}"
name: "{{ pool_name }}" name: "{{ pool_name }}"
spec: spec:
addresses: addresses: