++ valkey vk prod

This commit is contained in:
Kochetkov S 2026-10-20 11:47:40 +03:00
parent 57f3b8bee2
commit b684295b0d
4 changed files with 97 additions and 0 deletions

View File

@ -9,4 +9,5 @@ resources:
- ../../../infrastructure/kafka/vk-prod - ../../../infrastructure/kafka/vk-prod
- ../../../infrastructure/cert-manager/vk-prod - ../../../infrastructure/cert-manager/vk-prod
- ../../../infrastructure/istio-config/vk-prod - ../../../infrastructure/istio-config/vk-prod
- ../../../infrastructure/valkey/vk-prod
- ../../../infrastructure/camunda/vk-prod - ../../../infrastructure/camunda/vk-prod

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- valkey.yaml

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: valkey
labels:
istio-injection: disabled

View File

@ -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