From ca3dad863df66e79ac1f274463333ae42dd6cc2f Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 1 Nov 2023 14:45:22 -0500 Subject: [PATCH] Add redis-operator. --- kubernetes/apps/database/kustomization.yaml | 1 + .../redis-operator/app/helmrelease.yaml | 35 +++++++++++++++++++ .../redis-operator/app/kustomization.yaml | 7 ++++ .../apps/database/redis-operator/ks.yaml | 17 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 kubernetes/apps/database/redis-operator/app/helmrelease.yaml create mode 100644 kubernetes/apps/database/redis-operator/app/kustomization.yaml create mode 100644 kubernetes/apps/database/redis-operator/ks.yaml diff --git a/kubernetes/apps/database/kustomization.yaml b/kubernetes/apps/database/kustomization.yaml index 77faf48..8b62f87 100644 --- a/kubernetes/apps/database/kustomization.yaml +++ b/kubernetes/apps/database/kustomization.yaml @@ -7,3 +7,4 @@ resources: - ./namespace.yaml # Flux-Kustomizations - ./crunchy-postgres/ks.yaml + - ./redis-operator/ks.yaml diff --git a/kubernetes/apps/database/redis-operator/app/helmrelease.yaml b/kubernetes/apps/database/redis-operator/app/helmrelease.yaml new file mode 100644 index 0000000..6ae19da --- /dev/null +++ b/kubernetes/apps/database/redis-operator/app/helmrelease.yaml @@ -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 diff --git a/kubernetes/apps/database/redis-operator/app/kustomization.yaml b/kubernetes/apps/database/redis-operator/app/kustomization.yaml new file mode 100644 index 0000000..e6b86c5 --- /dev/null +++ b/kubernetes/apps/database/redis-operator/app/kustomization.yaml @@ -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 diff --git a/kubernetes/apps/database/redis-operator/ks.yaml b/kubernetes/apps/database/redis-operator/ks.yaml new file mode 100644 index 0000000..2f285ce --- /dev/null +++ b/kubernetes/apps/database/redis-operator/ks.yaml @@ -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