2023-01-24 12:24:15 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2023-03-20 08:19:43 +00:00
|
|
|
name: {{ include "clearml.fullname" . }}-apps-pt
|
2023-01-24 12:24:15 +00:00
|
|
|
data:
|
|
|
|
template.yaml: |
|
|
|
|
apps_queue:
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
namespace: {{ $.Release.Namespace }}
|
|
|
|
spec:
|
|
|
|
{{- if $.Values.imageCredentials.enabled }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- if $.Values.imageCredentials.existingSecret }}
|
2023-02-09 09:11:03 +00:00
|
|
|
- name: {{ $.Values.imageCredentials.existingSecret }}
|
2023-01-24 12:24:15 +00:00
|
|
|
{{- else }}
|
|
|
|
- name: clearml-registry-key
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
serviceAccountName: "clearml-apps-sa"
|
2023-03-16 07:42:27 +00:00
|
|
|
securityContext:
|
|
|
|
{{ toYaml .Values.enterpriseFeatures.clearmlApplications.podSecurityContext | nindent 10 }}
|
2023-03-06 13:23:50 +00:00
|
|
|
volumes:
|
|
|
|
{{- if .Values.enterpriseFeatures.clearmlApplications.fileMounts }}
|
|
|
|
- name: filemounts
|
|
|
|
secret:
|
2023-03-20 08:19:43 +00:00
|
|
|
secretName: {{ include "clearml.fullname" . }}-apps-fm
|
2023-03-06 13:23:50 +00:00
|
|
|
{{- end }}
|
2023-01-24 12:24:15 +00:00
|
|
|
containers:
|
|
|
|
- resources:
|
|
|
|
ports:
|
|
|
|
- containerPort: 10022
|
|
|
|
volumeMounts:
|
2023-03-06 13:23:50 +00:00
|
|
|
{{- range .Values.enterpriseFeatures.clearmlApplications.fileMounts }}
|
|
|
|
- name: filemounts
|
|
|
|
mountPath: "{{ .folderPath }}/{{ .name }}"
|
|
|
|
subPath: "{{ .name }}"
|
|
|
|
readOnly: true
|
|
|
|
{{- end }}
|
2023-01-24 12:24:15 +00:00
|
|
|
env:
|
|
|
|
- name: CLEARML_API_HOST
|
|
|
|
value: "http://{{ include "apiserver.referenceName" . }}:{{ .Values.apiserver.service.port }}"
|
|
|
|
- name: CLEARML_FILES_HOST
|
|
|
|
value: "http://{{ include "fileserver.referenceName" . }}:{{ .Values.fileserver.service.port }}"
|
|
|
|
- name: CLEARML_WEB_HOST
|
|
|
|
value: "http://{{ include "webserver.referenceName" . }}:{{ .Values.webserver.service.port }}"
|
2023-03-06 13:23:50 +00:00
|
|
|
{{- if .Values.enterpriseFeatures.clearmlApplications.extraEnvs }}
|
|
|
|
{{ toYaml .Values.enterpriseFeatures.clearmlApplications.extraEnvs | nindent 10 }}
|
|
|
|
{{- end }}
|
2023-03-16 07:42:27 +00:00
|
|
|
securityContext:
|
|
|
|
{{ toYaml .Values.enterpriseFeatures.clearmlApplications.containerSecurityContext | nindent 12 }}
|