-
Notifications
You must be signed in to change notification settings - Fork 26
/
service.yaml
26 lines (26 loc) · 927 Bytes
/
service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apiVersion: v1
kind: Service
metadata:
name: {{ include "infinispan-helm-charts.name" . }}
annotations:
{{- include "infinispan-helm-charts.annotations" . | nindent 4 }}
labels:
app: infinispan-service
clusterName: {{ include "infinispan-helm-charts.name" . }}
{{- include "infinispan-helm-charts.labels" . | nindent 4 }}
{{- include "infinispan-helm-charts.svcLabels" . | nindent 4 }}
spec:
{{- if or (eq (.Values.deploy.expose.type) "LoadBalancer") (eq (.Values.deploy.expose.type) "NodePort") }}
type: {{ .Values.deploy.expose.type }}
{{- else }}
type: ClusterIP
{{- end }}
ports:
- port: 11222
protocol: TCP
name: infinispan
{{- if and (eq (.Values.deploy.expose.type) "NodePort") (.Values.deploy.expose.nodePort) }}
nodePort: {{ .Values.deploy.expose.nodePort }}
{{- end}}
selector:
{{- include "infinispan-helm-charts.selectorLabels" . | nindent 4 }}