2021-07-07 07:04:15 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ include "clearml.fullname" . }}-apiserver
|
|
|
|
labels:
|
|
|
|
{{- include "clearml.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
type: {{ .Values.apiserver.service.type }}
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.apiserver.service.port }}
|
|
|
|
targetPort: {{ .Values.apiserver.service.port }}
|
2021-11-08 13:23:10 +00:00
|
|
|
{{- if eq .Values.apiserver.service.type "NodePort" }}
|
|
|
|
nodePort: {{ .Values.apiserver.service.nodePort }}
|
|
|
|
{{- end }}
|
2021-07-07 07:04:15 +00:00
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
{{- include "clearml.selectorLabelsApiServer" . | nindent 4 }}
|