argocd-test/authentik/base/authentik-redis-deployment.yaml

36 lines
783 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: authentik-redis-server
spec:
replicas: 1
selector:
matchLabels:
app: redis-server
template:
metadata:
labels:
app: redis-server
name: redis-server
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: redis-server
image: redis
args: ["--appendonly", "yes"]
ports:
- name: redis-server
containerPort: 6379
volumeMounts:
- name: redis-data
mountPath: /data
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: authentik-redis-pvc