From b684295b0d2170f1e078ac2fe6ae12735c6de4bf Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Tue, 20 Oct 2026 11:47:40 +0300 Subject: [PATCH] ++ valkey vk prod --- .../vk-prod/infrastructure/kustomization.yaml | 1 + .../valkey/vk-prod/kustomization.yaml | 5 ++ infrastructure/valkey/vk-prod/namespace.yaml | 6 ++ infrastructure/valkey/vk-prod/valkey.yaml | 85 +++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 infrastructure/valkey/vk-prod/kustomization.yaml create mode 100644 infrastructure/valkey/vk-prod/namespace.yaml create mode 100644 infrastructure/valkey/vk-prod/valkey.yaml diff --git a/clusters/vk-prod/infrastructure/kustomization.yaml b/clusters/vk-prod/infrastructure/kustomization.yaml index 6a749ed..4fa299e 100644 --- a/clusters/vk-prod/infrastructure/kustomization.yaml +++ b/clusters/vk-prod/infrastructure/kustomization.yaml @@ -9,4 +9,5 @@ resources: - ../../../infrastructure/kafka/vk-prod - ../../../infrastructure/cert-manager/vk-prod - ../../../infrastructure/istio-config/vk-prod + - ../../../infrastructure/valkey/vk-prod - ../../../infrastructure/camunda/vk-prod diff --git a/infrastructure/valkey/vk-prod/kustomization.yaml b/infrastructure/valkey/vk-prod/kustomization.yaml new file mode 100644 index 0000000..f25bd5c --- /dev/null +++ b/infrastructure/valkey/vk-prod/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - valkey.yaml diff --git a/infrastructure/valkey/vk-prod/namespace.yaml b/infrastructure/valkey/vk-prod/namespace.yaml new file mode 100644 index 0000000..ca0449f --- /dev/null +++ b/infrastructure/valkey/vk-prod/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: valkey + labels: + istio-injection: disabled diff --git a/infrastructure/valkey/vk-prod/valkey.yaml b/infrastructure/valkey/vk-prod/valkey.yaml new file mode 100644 index 0000000..74d37b6 --- /dev/null +++ b/infrastructure/valkey/vk-prod/valkey.yaml @@ -0,0 +1,85 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: valkey + namespace: valkey +spec: + interval: 5m + timeout: 15m + chart: + spec: + chart: valkey + version: "0.1.0" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 0 + remediateLastFailure: false + values: + fullnameOverride: valkey + global: + imagePullSecrets: + - regcred + security: + allowInsecureImages: true + architecture: replication + auth: + enabled: true + sentinel: true + commonConfiguration: |- + appendonly yes + save "" + maxmemory 6gb + serviceAccount: + create: true + automountServiceAccountToken: true + rbac: + create: true + sentinel: + enabled: true + primarySet: mymaster + quorum: 2 + downAfterMilliseconds: 10000 + failoverTimeout: 60000 + automateClusterRecovery: true + service: + createPrimary: true + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + memory: 256Mi + replica: + replicaCount: 3 + automountServiceAccountToken: true + podAntiAffinityPreset: hard + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: topology.kubernetes.io/zone + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app.kubernetes.io/name: valkey + app.kubernetes.io/instance: valkey + app.kubernetes.io/component: node + resources: + requests: + cpu: "2" + memory: 8Gi + limits: + cpu: "2" + memory: 8Gi + persistence: + enabled: true + size: 32Gi + storageClass: csi-ceph-ssd-retain + metrics: + enabled: false