-
Notifications
You must be signed in to change notification settings - Fork 440
Expand file tree
/
Copy pathweb-service.yaml
More file actions
32 lines (32 loc) · 1.05 KB
/
web-service.yaml
File metadata and controls
32 lines (32 loc) · 1.05 KB
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
27
28
29
30
31
32
{{- if .Values.web.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "temporal.componentname" (list $ "web") }}
labels:
{{- include "temporal.resourceLabels" (list $ "web" "") | nindent 4 }}
{{- if .Values.web.service.annotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.web.service.annotations "context" $) | nindent 4 }}
{{- end }}
spec:
{{- with .Values.web.service.loadBalancerIP }}
loadBalancerIP: {{.}}
{{- end }}
type: {{ .Values.web.service.type }}
{{- with .Values.web.service.clusterIP }}
clusterIP: {{.}}
{{- end }}
ports:
- port: {{ .Values.web.service.port }}
targetPort: http
protocol: TCP
appProtocol: {{ .Values.web.service.appProtocol }}
name: http
{{- if hasKey .Values.web.service "nodePort" }}
nodePort: {{ .Values.web.service.nodePort }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "temporal.name" $ }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: web
{{- end }}