Add hostname templating

This commit is contained in:
2026-02-16 15:42:34 +02:00
parent 3a68514880
commit ddcec86b9c
8 changed files with 200 additions and 5 deletions

37
templates/redis.yaml Normal file
View File

@@ -0,0 +1,37 @@
---
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:
name: memelord-laurivosandi-redis
spec:
fields:
- fieldName: redis-password
length: "32"
encoding: hex
---
apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: memelord-laurivosandi-redis
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: memelord
topologyKey: topology.kubernetes.io/zone
authentication:
passwordFromSecret:
name: memelord-laurivosandi-redis
key: redis-password
replicas: 2
resources:
requests:
cpu: 500m
memory: 500Mi
limits:
cpu: 600m
memory: 750Mi