2023-01-04 08:32:01 +00:00
|
|
|
{{- if .Values.apiserver.enabled }}
|
2021-07-07 07:04:15 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2023-01-04 08:32:01 +00:00
|
|
|
name: {{ include "apiserver.referenceName" . }}
|
2021-07-07 07:04:15 +00:00
|
|
|
labels:
|
|
|
|
{{- include "clearml.labels" . | nindent 4 }}
|
2023-03-16 07:42:27 +00:00
|
|
|
{{- with .Values.apiserver.service.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-07-07 07:04:15 +00:00
|
|
|
spec:
|
|
|
|
type: {{ .Values.apiserver.service.type }}
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.apiserver.service.port }}
|
|
|
|
targetPort: {{ .Values.apiserver.service.port }}
|
2023-01-04 08:32:01 +00:00
|
|
|
{{- if eq .Values.apiserver.service.type "NodePort" }}
|
2021-11-08 13:23:10 +00:00
|
|
|
nodePort: {{ .Values.apiserver.service.nodePort }}
|
2023-01-04 08:32:01 +00:00
|
|
|
{{- end }}
|
2021-07-07 07:04:15 +00:00
|
|
|
protocol: TCP
|
|
|
|
selector:
|
2023-01-04 08:32:01 +00:00
|
|
|
{{- include "apiserver.selectorLabels" . | nindent 4 }}
|
|
|
|
{{- end }}
|