added helm sources
This commit is contained in:
parent
7f10d31b0a
commit
7d6fb8dc26
15
infrastructure/flux-system/kustomization-helm.yaml
Normal file
15
infrastructure/flux-system/kustomization-helm.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
8
infrastructure/sources/helm/grafana.yaml
Normal file
8
infrastructure/sources/helm/grafana.yaml
Normal 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
|
||||
@ -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
|
||||
8
infrastructure/sources/helm/jetstack.yaml
Normal file
8
infrastructure/sources/helm/jetstack.yaml
Normal 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
|
||||
8
infrastructure/sources/helm/prometheus.yaml
Normal file
8
infrastructure/sources/helm/prometheus.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
@ -3,5 +3,4 @@ kind: Kustomization
|
||||
namespace: vault
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- helmrepo.yaml
|
||||
- helmrelease.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user