Fix enterprise apps deployment (#137)

* Fixed: apps deployment

* Changed: version bump
This commit is contained in:
Valeriano Manassero 2023-01-24 13:24:15 +01:00 committed by GitHub
parent 7c3ed7eb72
commit e2d60312d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 8 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: clearml name: clearml
description: MLOps platform description: MLOps platform
type: application type: application
version: "5.4.0" version: "5.4.1"
appVersion: "1.9.2" appVersion: "1.9.2"
kubeVersion: ">= 1.21.0-0 < 1.26.0-0" kubeVersion: ">= 1.21.0-0 < 1.26.0-0"
home: https://clear.ml home: https://clear.ml
@ -32,5 +32,5 @@ dependencies:
condition: elasticsearch.enabled condition: elasticsearch.enabled
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: changed - kind: fixed
description: external mongodb improved connection string description: enterprise apps deployment not working

View File

@ -1,6 +1,6 @@
# ClearML Ecosystem for Kubernetes # ClearML Ecosystem for Kubernetes
![Version: 5.4.0](https://img.shields.io/badge/Version-5.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.2](https://img.shields.io/badge/AppVersion-1.9.2-informational?style=flat-square) ![Version: 5.4.1](https://img.shields.io/badge/Version-5.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.2](https://img.shields.io/badge/AppVersion-1.9.2-informational?style=flat-square)
MLOps platform MLOps platform

View File

@ -0,0 +1,32 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "clearml.name" . }}-apps-pt
data:
template.yaml: |
apps_queue:
apiVersion: v1
metadata:
namespace: {{ $.Release.Namespace }}
spec:
{{- if $.Values.imageCredentials.enabled }}
imagePullSecrets:
{{- if $.Values.imageCredentials.existingSecret }}
- name: $.Values.imageCredentials.existingSecret
{{- else }}
- name: clearml-registry-key
{{- end }}
{{- end }}
serviceAccountName: "clearml-apps-sa"
containers:
- resources:
ports:
- containerPort: 10022
volumeMounts:
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 }}"

View File

@ -28,8 +28,11 @@ spec:
- name: clearml-registry-key - name: clearml-registry-key
{{- end }} {{- end }}
{{- end }} {{- end }}
volumes:
- name: {{ include "clearml.name" . }}-apps-pt
configMap:
name: {{ include "clearml.name" . }}-apps-pt
{{- if .Values.enterpriseFeatures.clearmlApplications.additionalConfigs }} {{- if .Values.enterpriseFeatures.clearmlApplications.additionalConfigs }}
volumes:
- name: apps-config - name: apps-config
configMap: configMap:
name: "{{ include "clearmlApplications.referenceName" . }}-configmap" name: "{{ include "clearmlApplications.referenceName" . }}-configmap"
@ -68,8 +71,9 @@ spec:
value: "apps-agent-1" value: "apps-agent-1"
- name: CLEARML_NO_DEFAULT_SERVER - name: CLEARML_NO_DEFAULT_SERVER
value: "true" value: "true"
- name: CLEARML_AGENT_DAEMON_OPTIONS - name: K8S_GLUE_EXTRA_ARGS
value: "--foreground --create-queue --use-owner-token --child-report-tags application --services-mode=5" value: "--namespace {{ .Release.Namespace }} --template-yaml /root/template/template.yaml \
--child-report-tags application --max-pods 5 --use-owner-token"
- name: K8S_GLUE_QUEUE - name: K8S_GLUE_QUEUE
value: "apps_queue" value: "apps_queue"
- name: CLEARML_AGENT_DISABLE_SSH_MOUNT - name: CLEARML_AGENT_DISABLE_SSH_MOUNT
@ -97,8 +101,10 @@ spec:
{{- if .Values.enterpriseFeatures.clearmlApplications.extraEnvs }} {{- if .Values.enterpriseFeatures.clearmlApplications.extraEnvs }}
{{ toYaml .Values.enterpriseFeatures.clearmlApplications.extraEnvs | nindent 10 }} {{ toYaml .Values.enterpriseFeatures.clearmlApplications.extraEnvs | nindent 10 }}
{{- end }} {{- end }}
volumeMounts:
- name: {{ include "clearml.name" . }}-apps-pt
mountPath: /root/template
{{- if .Values.enterpriseFeatures.clearmlApplications.additionalConfigs }} {{- if .Values.enterpriseFeatures.clearmlApplications.additionalConfigs }}
volumeMounts:
- name: apps-config - name: apps-config
mountPath: /opt/clearml/config/default mountPath: /opt/clearml/config/default
{{- end }} {{- end }}