mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 17:16:47 +00:00
24 lines
666 B
YAML
24 lines
666 B
YAML
{{- if .Values.webserver.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "webserver.referenceName" . }}
|
|
labels:
|
|
{{- include "clearml.labels" . | nindent 4 }}
|
|
{{- with .Values.webserver.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.webserver.service.type }}
|
|
ports:
|
|
- port: {{ .Values.webserver.service.port }}
|
|
targetPort: 80
|
|
{{- if eq .Values.webserver.service.type "NodePort" }}
|
|
nodePort: {{ .Values.webserver.service.nodePort }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
selector:
|
|
{{- include "webserver.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|