diff --git a/infrastructures/metallb-conf/env/k3s-cluster/advertisement.yaml b/infrastructures/metallb-conf/env/k3s-cluster/advertisement.yaml index dcdd3b6..1a9fa24 100644 --- a/infrastructures/metallb-conf/env/k3s-cluster/advertisement.yaml +++ b/infrastructures/metallb-conf/env/k3s-cluster/advertisement.yaml @@ -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 \ No newline at end of file + - k3s-cluster-ips \ No newline at end of file diff --git a/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml b/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml index 9ba1ecf..6df617e 100644 --- a/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml +++ b/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml @@ -2,11 +2,8 @@ apiVersion: metallb.io/v1beta1 kind: IPAddressPool metadata: name: k3s-cluster-ips - namespace: metallb + namespace: metallb-system spec: addresses: - - 192.168.10.100/32 - - 192.168.10.101/32 - - 192.168.10.102/32 - - 192.168.10.103/32 - - 192.168.10.120/32 \ No newline at end of file + - 192.168.10.100-192.168.10.103 + - 192.168.10.120 \ No newline at end of file diff --git a/infrastructures/metallb-conf/env/k3s-cluster/config.json b/infrastructures/metallb-conf/env/k3s-cluster/config.json index df65c2a..af85c10 100644 --- a/infrastructures/metallb-conf/env/k3s-cluster/config.json +++ b/infrastructures/metallb-conf/env/k3s-cluster/config.json @@ -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", diff --git a/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml b/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml index 1672071..b70fdad 100644 --- a/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml +++ b/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml @@ -1,5 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ./advertisement.yaml - - ./cluster-ip.yaml \ No newline at end of file + - ./cluster-ip.yaml + - ./advertisement.yaml \ No newline at end of file diff --git a/infrastructures/metallb/env/k3s-cluster/config.json b/infrastructures/metallb/env/k3s-cluster/config.json index 1083b3b..d823736 100644 --- a/infrastructures/metallb/env/k3s-cluster/config.json +++ b/infrastructures/metallb/env/k3s-cluster/config.json @@ -1,8 +1,8 @@ { "appName": "metallb", "userGivenName": "metallb", - "namespace": "metallb", - "destNamespace": "metallb", + "namespace": "metallb-system", + "destNamespace": "metallb-system", "destServer": "https://kubernetes.default.svc", "srcPath": "infrastructures/metallb/env/k3s-cluster", "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git", diff --git a/infrastructures/metallb/env/k3s-cluster/kustomization.yaml b/infrastructures/metallb/env/k3s-cluster/kustomization.yaml index a75e522..655879a 100644 --- a/infrastructures/metallb/env/k3s-cluster/kustomization.yaml +++ b/infrastructures/metallb/env/k3s-cluster/kustomization.yaml @@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization helmCharts: - name: metallb - repo: oci://registry-1.docker.io/bitnamicharts - version: 6.3.10 - releaseName: metallb - valuesFile: values.yaml \ No newline at end of file + repo: https://metallb.github.io/metallb + version: 0.14.18 + releaseName: metallb \ No newline at end of file diff --git a/infrastructures/metallb/env/k3s-cluster/values.yaml b/infrastructures/metallb/env/k3s-cluster/values.yaml deleted file mode 100644 index 728094a..0000000 --- a/infrastructures/metallb/env/k3s-cluster/values.yaml +++ /dev/null @@ -1,7 +0,0 @@ -namespaceOverride: "metallb" -controller: - podSecurityContext: - fsGroup: 1000 - containerSecurityContext: - runAsUser: 1000 - runAsGroup: 1000 diff --git a/resources/namespaces/env/k3s-cluster/templates/metallb.yaml b/resources/namespaces/env/k3s-cluster/templates/metallb-system.yaml similarity index 86% rename from resources/namespaces/env/k3s-cluster/templates/metallb.yaml rename to resources/namespaces/env/k3s-cluster/templates/metallb-system.yaml index 917148c..b219659 100644 --- a/resources/namespaces/env/k3s-cluster/templates/metallb.yaml +++ b/resources/namespaces/env/k3s-cluster/templates/metallb-system.yaml @@ -4,6 +4,6 @@ metadata: annotations: argocd.argoproj.io/sync-options: Prune=false creationTimestamp: null - name: metallb + name: metallb-system spec: {} status: {}