First Commit
This commit is contained in:
22
templates/service-headless.yaml
Normal file
22
templates/service-headless.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "redis-cluster.fullname" . }}-headless
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "redis-cluster.labels" . | nindent 4 }}
|
||||
spec:
|
||||
clusterIP: None
|
||||
# Pods must resolve each other during bootstrap, before they are Ready.
|
||||
publishNotReadyAddresses: true
|
||||
selector:
|
||||
{{- include "redis-cluster.selectorLabels" . | nindent 4 }}
|
||||
ports:
|
||||
- name: tcp-redis
|
||||
port: {{ .Values.redis.port }}
|
||||
targetPort: tcp-redis
|
||||
appProtocol: redis
|
||||
- name: tcp-cluster
|
||||
port: {{ .Values.cluster.busPort }}
|
||||
targetPort: tcp-cluster
|
||||
appProtocol: redis
|
||||
Reference in New Issue
Block a user