2024-07-27 00:15:41 +00:00
|
|
|
---
|
|
|
|
apiVersion: codemowers.cloud/v1beta1
|
|
|
|
kind: SecretClaim
|
|
|
|
metadata:
|
|
|
|
name: dragonfly-auth
|
|
|
|
namespace: passmower
|
|
|
|
spec:
|
|
|
|
size: 32
|
|
|
|
mapping:
|
|
|
|
- key: password
|
|
|
|
value: "%(plaintext)s"
|
|
|
|
- key: REDIS_URI
|
|
|
|
value: "redis://:%(plaintext)s@redis"
|
|
|
|
---
|
|
|
|
apiVersion: dragonflydb.io/v1alpha1
|
|
|
|
kind: Dragonfly
|
|
|
|
metadata:
|
|
|
|
name: redis
|
|
|
|
namespace: passmower
|
|
|
|
spec:
|
|
|
|
authentication:
|
|
|
|
passwordFromSecret:
|
|
|
|
key: password
|
|
|
|
name: dragonfly-auth
|
|
|
|
replicas: 3
|
2024-08-13 11:50:25 +00:00
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: topology.kubernetes.io/zone
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
2024-08-14 04:55:24 +00:00
|
|
|
app: app
|
2024-08-13 11:50:25 +00:00
|
|
|
app.kubernetes.io/part-of: dragonfly
|
2024-07-27 00:15:41 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 600m
|
|
|
|
memory: 750Mi
|
|
|
|
requests:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 500Mi
|