apiVersion: apps/v1 kind: Deployment metadata: name: redis-cluster-operator spec: replicas: 1 selector: matchLabels: name: redis-cluster-operator template: metadata: labels: name: redis-cluster-operator spec: serviceAccountName: redis-cluster-operator containers: - name: redis-cluster-operator image: fishu/redis-cluster-operator:latest command: - redis-cluster-operator args: - --zap-level=4 - --zap-time-encoding=iso8601 - --ctr-maxconcurrent=10 - --rename-command-path=/etc/redisconf - --rename-command-file=redis.conf imagePullPolicy: Always resources: limits: cpu: "2" memory: 2000Mi requests: cpu: 500m memory: 500Mi env: - name: WATCH_NAMESPACE value: "" - name: ENABLE_WEBHOOKS value: "true" - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: OPERATOR_NAME value: "redis-cluster-operator" volumeMounts: - name: redisconf mountPath: /etc/redisconf - name: webhook-certs mountPath: /etc/webhook/certs readOnly: true volumes: - name: redisconf configMap: name: redis-admin - name: webhook-certs secret: secretName: drc-webhook-cert --- apiVersion: v1 kind: ConfigMap metadata: name: redis-admin data: redis.conf: |- rename-command CONFIG lni07z1p rename-command BGSAVE pp14qluk rename-command DEBUG 8a4insyv rename-command SAVE 6on30p6z rename-command SHUTDOWN dvui0opr rename-command SLAVEOF xwxvcw36 rename-command BGREWRITEAOF www07fko rename-command FLUSHDB dfqw3rsf rename-command FLUSHALL zvsdf2ff