added helm sources

This commit is contained in:
Brad Stein 2025-08-19 08:45:29 -05:00
parent 7f10d31b0a
commit 7d6fb8dc26
9 changed files with 68 additions and 21 deletions

View File

@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: helm
namespace: flux-system
spec:
interval: 30m
sourceRef:
kind: GitRepository
name: flux-system
namespace: flux-system
path: ./infrastructure/sources/helm
prune: true
wait: false
targetNamespace: flux-system

View File

@ -5,8 +5,13 @@ metadata:
namespace: flux-system
spec:
interval: 10m
path: ./services/vault
prune: true
sourceRef:
kind: GitRepository
name: flux-system
namespace: flux-system
path: ./services/vault
targetNamespace: vault
prune: true
wait: true
dependsOn:
- name: sources-helm

View File

@ -6,6 +6,7 @@ resources:
- gotk-sync.yaml
- kustomization-zot.yaml
- kustomization-core.yaml
- kustomization-helm.yaml
- kustomization-gitea.yaml
- kustomization-vault.yaml
- kustomization-crypto.yaml

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: grafana
namespace: flux-system
spec:
interval: 1h
url: https://grafana.github.io/helm-charts

View File

@ -1,8 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: hashicorp
namespace: vault
namespace: flux-system
spec:
interval: 1h
url: https://helm.releases.hashicorp.com

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: jetstack
namespace: flux-system
spec:
interval: 1h
url: https://charts.jetstack.io

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: prometheus
namespace: flux-system
spec:
interval: 1h
url: https://prometheus-community.github.io/helm-charts

View File

@ -1,39 +1,42 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: vault
namespace: flux-system
namespace: vault
spec:
interval: 15m
interval: 30m
chart:
spec:
chart: vault
version: "0.28.x"
version: 0.x.x
sourceRef:
kind: HelmRepository
name: hashicorp
namespace: flux-system
install:
remediation: { retries: 3 }
upgrade:
remediation: { retries: 3 }
values:
global:
injector:
enabled: true
resources:
requests: { cpu: "50m", memory: "64Mi" }
csi:
enabled: false
server:
ha:
enabled: true
replicas: 3
replicas: 1
raft:
enabled: true
dataStorage:
enabled: true
size: 5Gi
storageClassName: astreae
service:
type: ClusterIP
ingress:
enabled: false
size: 10Gi
storageClass: sc-astreae
resources:
requests: { cpu: "100m", memory: "256Mi" }
limits: { cpu: "500m", memory: "512Mi" }
injector:
enabled: true
csi:
service:
type: ClusterIP
ui:
enabled: true

View File

@ -3,5 +3,4 @@ kind: Kustomization
namespace: vault
resources:
- namespace.yaml
- helmrepo.yaml
- helmrelease.yaml