fix: make Valkey service headless for StatefulSet DNS

Sentinel requires individual pod DNS names to work correctly.
Making the valkey service headless enables DNS resolution for:
- valkey-0.valkey.towerops.svc.cluster.local
- valkey-1.valkey.towerops.svc.cluster.local
- valkey-2.valkey.towerops.svc.cluster.local

This fixes CrashLoopBackOff in valkey-sentinel pods.
This commit is contained in:
Graham McIntire 2026-01-24 14:06:03 -06:00
parent 5ee241fc16
commit 3156eb19ac
No known key found for this signature in database

View file

@ -6,6 +6,7 @@ metadata:
namespace: towerops
spec:
type: ClusterIP
clusterIP: None # Headless service for StatefulSet DNS
selector:
app: valkey
ports: