Remove podinfo, add metallb

This commit is contained in:
SeanOMik 2023-04-02 15:25:25 -04:00
parent f076e6ff00
commit ae1f53b4bc
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 28 additions and 10 deletions

View File

@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./traefik - ./traefik
- ./podinfo - ./metallb

View File

@ -1,25 +1,27 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2 apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: podinfo name: metallb-charts
namespace: flux-system namespace: flux-system
spec: spec:
interval: 1m interval: 1m
url: https://stefanprodan.github.io/podinfo url: https://metallb.github.io/metallb
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: podinfo name: metallb
namespace: default namespace: metallb-system
spec: spec:
interval: 5m interval: 5m
chart: chart:
spec: spec:
chart: podinfo chart: metallb
version: '4.0.x' version: 0.13.x
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: podinfo name: metallb-charts
namespace: flux-system namespace: flux-system
interval: 1m values:
crds:
enabled: false

View File

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./helm.yaml - ./helm-release.yaml
- ./metallb-static-ips.yaml

View File

@ -0,0 +1,15 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: static-ip-range
namespace: metallb-system
spec:
addresses:
- 192.168.87.10-192.168.87.28
autoAssign: true
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: default
namespace: metallb-system