diff --git a/dev-upgrade/redis/redis-stack-release.yaml b/dev-upgrade/redis/redis-stack-release.yaml new file mode 100644 index 0000000..d9cd315 --- /dev/null +++ b/dev-upgrade/redis/redis-stack-release.yaml @@ -0,0 +1,71 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: redis-stack + labels: + app: redis-stack +spec: + replicas: 1 + selector: + matchLabels: + app: redis-stack + template: + metadata: + labels: + app: redis-stack + spec: + initContainers: + - name: init + image: busybox + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c", "sysctl -w net.core.somaxconn=1024"] + securityContext: + privileged: true + containers: + - name: redis-stack + image: redis/redis-stack-server:7.2.0-v0 + ports: + - protocol: TCP + containerPort: 8080 + env: + - name: "REDIS_ARGS" + value: "--requirepass beaconfire@123" + resources: + limits: + cpu: 1 + memory: 1Gi + requests: + cpu: 50m + memory: 128Mi + livenessProbe: + tcpSocket: + port: 6379 + initialDelaySeconds: 300 + timeoutSeconds: 1 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 3 + readinessProbe: + tcpSocket: + port: 6379 + initialDelaySeconds: 5 + timeoutSeconds: 1 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 3 + +--- +apiVersion: v1 +kind: Service +metadata: + name: redis-stack +spec: + ports: + - port: 6379 + protocol: TCP + targetPort: 6379 + nodePort: 30023 + selector: + app: redis-stack + type: NodePort