peridot/infrastructure/dev-helm/temporal/templates/web-service.yaml

36 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-07-07 20:11:50 +00:00
{{- if .Values.web.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "temporal.componentname" (list . "web") }}
labels:
app.kubernetes.io/name: {{ include "temporal.name" . }}
helm.sh/chart: {{ include "temporal.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Chart.Name }}
{{- with .Values.web.service.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- with .Values.web.service.loadBalancerIP }}
loadBalancerIP: {{.}}
{{- end }}
type: {{ .Values.web.service.type }}
ports:
- port: {{ .Values.web.service.port }}
targetPort: http
protocol: TCP
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 }}