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:
commit
9981b2f4ff
21
flux/clusters/infrastructure.yaml
Normal file
21
flux/clusters/infrastructure.yaml
Normal 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
|
8
flux/infrastructure/repos/bitnami-charts.yaml
Normal file
8
flux/infrastructure/repos/bitnami-charts.yaml
Normal 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
|
9
flux/infrastructure/repos/forgejo-charts.yaml
Normal file
9
flux/infrastructure/repos/forgejo-charts.yaml
Normal 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
|
10
flux/infrastructure/repos/kustomization.yaml
Normal file
10
flux/infrastructure/repos/kustomization.yaml
Normal 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
|
8
flux/infrastructure/repos/metallb.yaml
Normal file
8
flux/infrastructure/repos/metallb.yaml
Normal 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
|
8
flux/infrastructure/repos/traefik-charts.yaml
Normal file
8
flux/infrastructure/repos/traefik-charts.yaml
Normal 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
|
Loading…
Reference in a new issue