Skip to content

Commit

Permalink
base/metallb-system: switch to helm and update
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <[email protected]>
  • Loading branch information
paulfantom committed Oct 14, 2023
1 parent e82068a commit f82e969
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 1,840 deletions.
12 changes: 0 additions & 12 deletions base/metallb-system/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion base/metallb-system/VERSION

This file was deleted.

20 changes: 0 additions & 20 deletions base/metallb-system/config/podmonitor.yaml

This file was deleted.

File renamed without changes.
16 changes: 16 additions & 0 deletions base/metallb-system/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources:
- custom/ipaddresspool.yaml
- custom/l2advert.yaml
- custom/prometheusrule.yaml
- repository.yaml
- namespace.yaml
- release.yaml
configMapGenerator:
- name: values
files:
- values.yaml=values.yaml
configurations:
- kustomizeconfig.yaml
8 changes: 8 additions & 0 deletions base/metallb-system/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Kustomize config for enabling HelmRelease values from
# ConfigMaps and Secrets generated by Kustomize
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
1,807 changes: 0 additions & 1,807 deletions base/metallb-system/metallb.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions base/metallb-system/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
32 changes: 32 additions & 0 deletions base/metallb-system/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: metallb
spec:
chart:
spec:
chart: metallb
version: "0.13.11"
sourceRef:
kind: HelmRepository
name: metallb
namespace: metallb-system
interval: 5m
valuesFile: values.yaml
interval: 5m
timeout: 20m
install:
timeout: 20m
disableWait: false
crds: CreateReplace
createNamespace: true
remediation:
retries: 3
upgrade:
timeout: 20m
disableWait: false
crds: CreateReplace
valuesFrom:
- kind: ConfigMap
name: values
7 changes: 7 additions & 0 deletions base/metallb-system/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: metallb
spec:
interval: 5m
url: https://metallb.github.io/metallb
25 changes: 25 additions & 0 deletions base/metallb-system/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Config reference: https://github.com/metallb/metallb/blob/main/charts/metallb/values.yaml

prometheus:
podMonitor:
# enable support for Prometheus Operator
enabled: false
relabelings:
- action: replace
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: node

prometheusRule:
# disable rules as I ship my own ones.
# FIXME: compare current rules with upstream and consider unification
enabled: false

speaker:
priorityClassName: system-node-critical
nodeSelector:
kubernetes.io/os: linux
network.infra/type: fast

controller:
priorityClassName: system-cluster-critical

0 comments on commit f82e969

Please sign in to comment.