mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 09:06:48 +00:00
a69530d07a
* Changed: update dependency charts * Changed: update values for dependencies * Added: major release update instructions * Changed: version update * Added: dep repos * Changed: improved securityContexts * Added: security context for enterprise apps * Changed: agent split securityContexts * Added: custom start scripts for apps * Fixed: missing description * Changed: updated images * Added: non-privileged/non-root configs * Fixed: title level * CHanged: changelog update * Added: global registry setting * Added: services annotations * Fixed: non-root enterprise reference
24 lines
699 B
YAML
24 lines
699 B
YAML
{{- if .Values.apiserver.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "apiserver.referenceName" . }}
|
|
labels:
|
|
{{- include "clearml.labels" . | nindent 4 }}
|
|
{{- with .Values.apiserver.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.apiserver.service.type }}
|
|
ports:
|
|
- port: {{ .Values.apiserver.service.port }}
|
|
targetPort: {{ .Values.apiserver.service.port }}
|
|
{{- if eq .Values.apiserver.service.type "NodePort" }}
|
|
nodePort: {{ .Values.apiserver.service.nodePort }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
selector:
|
|
{{- include "apiserver.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|