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 kind: L2Advertisement
metadata: metadata:
name: l2-advertisement name: l2-advertisement
namespace: metallb namespace: metallb-system
spec: spec:
ipAddressPools: ipAddressPools:
- k3s-cluster-ips - 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 kind: IPAddressPool
metadata: metadata:
name: k3s-cluster-ips name: k3s-cluster-ips
namespace: metallb namespace: metallb-system
spec: spec:
addresses: addresses:
- 192.168.10.100/32 - 192.168.10.100/32

View File

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

View File

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

View File

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