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
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 10m
|
interval: 10m
|
||||||
path: ./services/vault
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: flux-system
|
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
|
- gotk-sync.yaml
|
||||||
- kustomization-zot.yaml
|
- kustomization-zot.yaml
|
||||||
- kustomization-core.yaml
|
- kustomization-core.yaml
|
||||||
|
- kustomization-helm.yaml
|
||||||
- kustomization-gitea.yaml
|
- kustomization-gitea.yaml
|
||||||
- kustomization-vault.yaml
|
- kustomization-vault.yaml
|
||||||
- kustomization-crypto.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
|
kind: HelmRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: hashicorp
|
name: hashicorp
|
||||||
namespace: vault
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1h
|
interval: 1h
|
||||||
url: https://helm.releases.hashicorp.com
|
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
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: vault
|
name: vault
|
||||||
namespace: flux-system
|
namespace: vault
|
||||||
spec:
|
spec:
|
||||||
interval: 15m
|
interval: 30m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: vault
|
chart: vault
|
||||||
version: "0.28.x"
|
version: 0.x.x
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: hashicorp
|
name: hashicorp
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
remediation: { retries: 3 }
|
||||||
|
upgrade:
|
||||||
|
remediation: { retries: 3 }
|
||||||
values:
|
values:
|
||||||
global:
|
injector:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
resources:
|
||||||
|
requests: { cpu: "50m", memory: "64Mi" }
|
||||||
|
csi:
|
||||||
|
enabled: false
|
||||||
server:
|
server:
|
||||||
ha:
|
ha:
|
||||||
enabled: true
|
enabled: true
|
||||||
replicas: 3
|
replicas: 1
|
||||||
raft:
|
raft:
|
||||||
enabled: true
|
enabled: true
|
||||||
dataStorage:
|
dataStorage:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 5Gi
|
size: 10Gi
|
||||||
storageClassName: astreae
|
storageClass: sc-astreae
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
resources:
|
resources:
|
||||||
requests: { cpu: "100m", memory: "256Mi" }
|
requests: { cpu: "100m", memory: "256Mi" }
|
||||||
limits: { cpu: "500m", memory: "512Mi" }
|
service:
|
||||||
injector:
|
type: ClusterIP
|
||||||
enabled: true
|
ui:
|
||||||
csi:
|
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@ -3,5 +3,4 @@ kind: Kustomization
|
|||||||
namespace: vault
|
namespace: vault
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- helmrepo.yaml
|
|
||||||
- helmrelease.yaml
|
- helmrelease.yaml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user