refactor for metallb

This commit is contained in:
2024-08-26 13:20:07 +10:00
parent 1db752520e
commit 9ecf48108d
5 changed files with 8 additions and 14 deletions

View File

@@ -2,13 +2,7 @@ apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2-advertisement
namespace: metallb
namespace: metallb-system
spec:
ipAddressPools:
- k3s-cluster-ips
nodeSelectors:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux

View File

@@ -2,7 +2,7 @@ apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: k3s-cluster-ips
namespace: metallb
namespace: metallb-system
spec:
addresses:
- 192.168.10.100/32

View File

@@ -1,8 +1,8 @@
{
"appName": "metallb-conf",
"userGivenName": "metallb-conf",
"namespace": "metallb",
"destNamespace": "metallb",
"namespace": "metallb-system",
"destNamespace": "metallb-system",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/metallb-conf/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",

View File

@@ -1,5 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./advertisement.yaml
- ./cluster-ip.yaml
- ./advertisement.yaml

View File

@@ -4,6 +4,6 @@ metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: metallb
name: metallb-system
spec: {}
status: {}