Remove redis-operator and added bitnami redis.

This commit is contained in:
Joseph Hanson 2023-11-01 15:12:21 -05:00
parent 3ec1bbb1ce
commit f4696ff0bb
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 58 additions and 40 deletions

View file

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

View file

@ -1,35 +0,0 @@
---
# 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.2.7
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,51 @@
---
# 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
namespace: database
spec:
interval: 30m
timeout: 15m
chart:
spec:
chart: redis
version: 18.2.0
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
auth:
enabled: false
sentinel: false
master:
persistence:
enabled: false
replica:
persistence:
enabled: false
sentinel:
enabled: true
masterSet: redis-master
getMasterTimeout: 10
startupProbe:
failureThreshold: 2
persistence:
enabled: false
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 1m

View file

@ -3,15 +3,17 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: cluster-apps-redis-operator name: cluster-apps-redis
namespace: flux-system namespace: flux-system
spec: spec:
path: ./kubernetes/apps/database/redis-operator/app dependsOn:
- name: cluster-apps-external-secrets-stores
path: ./kubernetes/apps/database/redis/app
prune: true prune: true
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: valinor name: valinor
wait: true wait: false
interval: 30m interval: 30m
retryInterval: 1m retryInterval: 1m
timeout: 5m timeout: 15m