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:
parent
5ee241fc16
commit
3156eb19ac
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ metadata:
|
|||
namespace: towerops
|
||||
spec:
|
||||
type: ClusterIP
|
||||
clusterIP: None # Headless service for StatefulSet DNS
|
||||
selector:
|
||||
app: valkey
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue