renovate-ci / validate-renovate (push) Skipped
ci / lint-compose (push) Successful in 13s
ci / lint-actionlint (push) Successful in 9s
ci / lint-shellcheck (push) Successful in 14s
ci / lint-prettier (push) Successful in 16s
ci / lint-ruff (push) Successful in 5s
ci / lint-yaml (push) Successful in 8s
ci / lint-dockerfiles (push) Successful in 5s
ci / validate (push) Successful in 7s
ci / build (push) Skipped
ci / lint-compose (pull_request) Successful in 13s
ci / lint-actionlint (pull_request) Successful in 4s
ci / lint-shellcheck (pull_request) Successful in 12s
ci / lint-prettier (pull_request) Successful in 18s
ci / lint-ruff (pull_request) Successful in 8s
ci / lint-yaml (pull_request) Successful in 13s
ci / lint-dockerfiles (pull_request) Successful in 8s
ci / validate (pull_request) Successful in 7s
ci / build (pull_request) Skipped
renovate-ci / validate-renovate (pull_request) Successful in 9s
87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: immich-valkey
|
|
namespace: immich
|
|
labels:
|
|
app: immich-valkey
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
app: immich-valkey
|
|
ports:
|
|
- name: valkey
|
|
port: 6379
|
|
targetPort: valkey
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
name: immich-valkey
|
|
namespace: immich
|
|
labels:
|
|
app: immich-valkey
|
|
spec:
|
|
serviceName: immich-valkey
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: immich-valkey
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: immich-valkey
|
|
spec:
|
|
containers:
|
|
- name: valkey
|
|
image: docker.io/valkey/valkey:9.1.2-alpine
|
|
command:
|
|
- sh
|
|
- -c
|
|
- valkey-server --appendonly yes --save 30 1 --loglevel warning --requirepass "$REDIS_PASSWORD"
|
|
envFrom:
|
|
- secretRef:
|
|
name: immich-secrets
|
|
ports:
|
|
- name: valkey
|
|
containerPort: 6379
|
|
volumeMounts:
|
|
- name: valkey-data
|
|
mountPath: /data
|
|
# Same reasoning as postgres: 1s probe timeouts flap on a loaded
|
|
# single node with rotational storage.
|
|
startupProbe:
|
|
exec:
|
|
command: ["sh", "-c", 'valkey-cli --pass "$REDIS_PASSWORD" ping | grep -q PONG']
|
|
failureThreshold: 20
|
|
periodSeconds: 5
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
exec:
|
|
command: ["sh", "-c", 'valkey-cli --pass "$REDIS_PASSWORD" ping | grep -q PONG']
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
livenessProbe:
|
|
exec:
|
|
command: ["sh", "-c", 'valkey-cli --pass "$REDIS_PASSWORD" ping | grep -q PONG']
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|
|
timeoutSeconds: 5
|
|
resources:
|
|
requests:
|
|
cpu: "25m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "256Mi"
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: valkey-data
|
|
spec:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|