Add hostname templating
This commit is contained in:
37
templates/redis.yaml
Normal file
37
templates/redis.yaml
Normal 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
|
||||
Reference in New Issue
Block a user