Merge pull request 'flux: define repos' (#8) from earl-warren/k8s-cluster:wip-infrastructure into main

Reviewed-on: https://code.forgejo.org/infrastructure/k8s-cluster/pulls/8
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
earl-warren 2024-10-23 14:40:32 +00:00
commit 9981b2f4ff
6 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infra-repos
namespace: flux-system
spec:
# for later usage
# decryption:
# provider: sops
# secretRef:
# name: sops-age
interval: 1h
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./flux/infrastructure/repos
prune: true
wait: true

View file

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: bitnami-charts
namespace: flux-system # needed for renovate
spec:
type: oci
url: oci://registry-1.docker.io/bitnamicharts

View file

@ -0,0 +1,9 @@
# https://fluxcd.io/flux/components/source/helmrepositories/#helm-oci-repository
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: forgejo
namespace: flux-system # needed for renovate
spec:
type: oci
url: oci://code.forgejo.org/forgejo-helm

View file

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- bitnami-charts.yaml
- metallb.yaml
- traefik-charts.yaml
- forgejo-charts.yaml

View file

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: metallb
namespace: flux-system # needed for renovate
spec:
interval: 3h # fetch index file every 3 hours
url: https://metallb.github.io/metallb

View file

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: traefik-charts
namespace: flux-system # needed for renovate
spec:
type: oci
url: oci://ghcr.io/traefik/helm