Add redis-operator.

This commit is contained in:
Joseph Hanson 2023-11-01 14:45:22 -05:00
parent c87a32da74
commit ca3dad863d
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 60 additions and 0 deletions

View file

@ -7,3 +7,4 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./crunchy-postgres/ks.yaml
- ./redis-operator/ks.yaml

View file

@ -0,0 +1,35 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: redis-operator
namespace: database
spec:
interval: 30m
chart:
spec:
chart: redis-operator
version: 3.3.0
sourceRef:
kind: HelmRepository
name: redis-operator
namespace: flux-system
maxHistory: 2
install:
crds: CreateReplace
remediation:
retries: 3
upgrade:
cleanupOnFail: true
crds: CreateReplace
remediation:
retries: 3
uninstall:
keepHistory: false
values:
monitoring:
enabled: true
serviceMonitor: true
prometheus:
name: default

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: database
resources:
- ./helmrelease.yaml

View file

@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-redis-operator
namespace: flux-system
spec:
path: ./kubernetes/apps/database/redis-operator/app
prune: true
sourceRef:
kind: GitRepository
name: valinor
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m