diff --git a/infrastructures/redis/base/kustomization.yaml b/infrastructures/redis/base/kustomization.yaml new file mode 100644 index 0000000..419dcad --- /dev/null +++ b/infrastructures/redis/base/kustomization.yaml @@ -0,0 +1,3 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: [] \ No newline at end of file diff --git a/infrastructures/redis/env/k3s-cluster/config.json b/infrastructures/redis/env/k3s-cluster/config.json new file mode 100644 index 0000000..dc1ebfd --- /dev/null +++ b/infrastructures/redis/env/k3s-cluster/config.json @@ -0,0 +1,12 @@ +{ + "appName": "XXX", + "userGivenName": "XXX", + "namespace": "XXX", + "destNamespace": "XXX", + "destServer": "https://kubernetes.default.svc", + "srcPath": "XXX/XXX/env/k3s-cluster", + "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git", + "srcTargetRevision": "", + "labels": null, + "annotations": null +} \ No newline at end of file diff --git a/infrastructures/redis/env/k3s-cluster/kustomization.yaml b/infrastructures/redis/env/k3s-cluster/kustomization.yaml new file mode 100644 index 0000000..160e534 --- /dev/null +++ b/infrastructures/redis/env/k3s-cluster/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +helmCharts: + - name: redis + repo: oci://registry-1.docker.io/bitnamicharts + version: 19.6.2 + releaseName: redis + valuesFile: values.yaml \ No newline at end of file diff --git a/infrastructures/redis/env/k3s-cluster/values.yaml b/infrastructures/redis/env/k3s-cluster/values.yaml new file mode 100644 index 0000000..65596b2 --- /dev/null +++ b/infrastructures/redis/env/k3s-cluster/values.yaml @@ -0,0 +1,23 @@ +namespaceOverride: "redis" +auth: + existingSecret: "redis-secrets" + existingSecretPasswordKey: "password" +master: + persistence: + storageClass: local-path + existingClaim: redis-master-pvc + selector: + matchLabels: + name: redis-master-pvc + persistentVolumeClaimRetentionPolicy: + enabled: true +replica: + replicaCount: 1 + persistence: + storageClass: local-path + existingClaim: redis-replica-pvc + selector: + matchLabels: + name: redis-replica-pvc + persistentVolumeClaimRetentionPolicy: + enabled: true \ No newline at end of file