First Commit
This commit is contained in:
24
templates/service.yaml
Normal file
24
templates/service.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
{{/* Any node is a valid startup node. Cluster-aware clients fetch the slot map
|
||||
and then connect directly to the stable per-member hostnames Redis advertises. */}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "redis-cluster.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "redis-cluster.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
{{- include "redis-cluster.selectorLabels" . | nindent 4 }}
|
||||
ports:
|
||||
- name: tcp-redis
|
||||
port: {{ .Values.redis.port }}
|
||||
targetPort: tcp-redis
|
||||
appProtocol: redis
|
||||
{{- if .Values.metrics.enabled }}
|
||||
- name: http-metrics
|
||||
port: {{ .Values.metrics.port }}
|
||||
targetPort: http-metrics
|
||||
appProtocol: http
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user