mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 09:06:48 +00:00
5b31ea8599
* Removed: unsupported values * Changed: version bump * Changed: removed not needed value * Changed: helm-docs * Removed: unsupported values
31 lines
836 B
YAML
31 lines
836 B
YAML
{{- if .Values.sessions.portModeEnabled }}
|
|
{{- range untilStep 1 ( ( add .Values.sessions.maxServices 1 ) | int ) 1 }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: clearml-session-{{ . }}
|
|
labels:
|
|
{{- include "clearmlAgent.labels" $ | nindent 4 }}
|
|
{{- with $.Values.sessions.svcAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ $.Values.sessions.svcType }}
|
|
ports:
|
|
- targetPort: 10022
|
|
{{- if eq $.Values.sessions.svcType "NodePort" }}
|
|
port: 10022
|
|
{{- else }}
|
|
port: {{ add $.Values.sessions.startingPort . }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
{{- if eq $.Values.sessions.svcType "NodePort" }}
|
|
nodePort: {{ add $.Values.sessions.startingPort . }}
|
|
{{- end }}
|
|
selector:
|
|
ai.allegro.agent.serial: pod-{{ . }}
|
|
{{- end }}
|
|
{{- end }}
|