38 lines
798 B
YAML
38 lines
798 B
YAML
---
|
|
apiVersion: secretgenerator.mittwald.de/v1alpha1
|
|
kind: StringSecret
|
|
metadata:
|
|
name: {{ .Release.Name }}-redis
|
|
spec:
|
|
fields:
|
|
- fieldName: redis-password
|
|
length: "32"
|
|
encoding: hex
|
|
---
|
|
apiVersion: dragonflydb.io/v1alpha1
|
|
kind: Dragonfly
|
|
metadata:
|
|
name: {{ .Release.Name }}-redis
|
|
spec:
|
|
affinity:
|
|
podAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
app: memelord
|
|
topologyKey: topology.kubernetes.io/zone
|
|
authentication:
|
|
passwordFromSecret:
|
|
name: {{ .Release.Name }}-redis
|
|
key: redis-password
|
|
replicas: 2
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 500Mi
|
|
limits:
|
|
cpu: 600m
|
|
memory: 750Mi
|