kube/wildduck/session-storage.yaml

43 lines
909 B
YAML
Raw Normal View History

2024-08-15 06:49:48 +00:00
---
apiVersion: codemowers.cloud/v1beta1
kind: SecretClaim
metadata:
name: session-storage
spec:
size: 32
mapping:
- key: password
value: "%(plaintext)s"
- key: REDIS_WILDDUCK_URI
value: "redis://:%(plaintext)s@session-storage/1"
- key: REDIS_WEBMAIL_URI
value: "redis://:%(plaintext)s@session-storage/2"
- key: REDIS_WILDFLOCK_URI
value: "redis://:%(plaintext)s@session-storage/2"
---
apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: session-storage
spec:
authentication:
passwordFromSecret:
key: password
name: session-storage
replicas: 3
resources:
limits:
memory: 1Gi
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: session-storage
spec:
selector:
matchLabels:
app: session-storage
app.kubernetes.io/part-of: dragonfly
podMetricsEndpoints:
- port: admin