mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-26 20:20:56 +00:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
{{- 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 }}
|