Initial commit.
This commit is contained in:
21
infrastructure_setup/metallb/metallb-config.yaml
Normal file
21
infrastructure_setup/metallb/metallb-config.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# Define IP address pool for MetalLB
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: production
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- ${CLUSTER_LOAD_BALANCER_RANGE}
|
||||
|
||||
---
|
||||
# Define Layer 2 advertisement for the IP pool
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: l2-advertisement
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
ipAddressPools:
|
||||
- production
|
16
infrastructure_setup/metallb/metallb-helm-config.yaml
Normal file
16
infrastructure_setup/metallb/metallb-helm-config.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: metallb
|
||||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
# The new configuration format for MetalLB v0.13.0+
|
||||
apiVersion: v1
|
||||
# We'll use IPAddressPool and L2Advertisement CRs instead of the deprecated configInline
|
||||
# Need to install the CRDs separately
|
||||
crds:
|
||||
enabled: true
|
||||
# Disable controller.configInline since it's deprecated
|
||||
controller:
|
||||
configInline: null
|
21
infrastructure_setup/metallb/metallb-pool.yaml
Normal file
21
infrastructure_setup/metallb/metallb-pool.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# Define IP address pool for MetalLB using the new format
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: production
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- 192.168.8.240-192.168.8.250
|
||||
|
||||
---
|
||||
# Define Layer 2 advertisement for the IP pool using the new format
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: l2-advertisement
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
ipAddressPools:
|
||||
- production
|
Reference in New Issue
Block a user