kubespray 2.24 추가
This commit is contained in:
19
roles/kubernetes-apps/metallb/templates/layer2.yaml.j2
Normal file
19
roles/kubernetes-apps/metallb/templates/layer2.yaml.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
||||
# yamllint disable-file
|
||||
---
|
||||
|
||||
# Create layer2 configuration
|
||||
{% for entry in metallb_config.layer2 %}
|
||||
|
||||
---
|
||||
# L2 Configuration
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: "{{ entry }}"
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
ipAddressPools:
|
||||
- "{{ entry }}"
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user