Skip to content

Commit

Permalink
♻️ Refactor Flux kustomizations for apps
Browse files Browse the repository at this point in the history
Move apps from the central Flux kustomization to dedicated resources.
  • Loading branch information
nomaster committed Feb 24, 2024
1 parent 0a4561d commit 9edbdb8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 23 deletions.
37 changes: 37 additions & 0 deletions clusters/k3s1/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,40 @@ spec:
name: flux-system
path: ./base/metallb
prune: false
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dendrite
namespace: flux-system
spec:
interval: 1h
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./base/dendrite
prune: false
patches:
- patch: |-
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: dendrite
namespace: dendrite
spec:
values:
dendrite_config:
global:
server_name: freifunk-duesseldorf.de
well_known_server_name: dendrite.ffddorf.net
well_known_client_name: dendrite.ffddorf.net
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hostName: dendrite.ffddorf.net
tls:
- hosts: [ dendrite.ffddorf.net ]
secretName: dendrite-tls
21 changes: 0 additions & 21 deletions clusters/k3s1/dendrite-helm-release.yaml

This file was deleted.

1 change: 0 additions & 1 deletion clusters/k3s1/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ resources:
- traefik-config.yaml
- apps.yaml
patchesStrategicMerge:
- dendrite-helm-release.yaml
- grafana-helm-release.yaml
1 change: 0 additions & 1 deletion environments/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Kustomization
resources:
- ../../base/cert-manager
- ../../base/cryptpad
- ../../base/dendrite
- ../../base/external-dns
- ../../base/grafana
- ../../base/prometheus

0 comments on commit 9edbdb8

Please sign in to comment.