mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Fix service url generation (#21)
* service url generation functions * use generation functions * bump up version
This commit is contained in:
parent
3f215d2d90
commit
618a269c97
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: clearml
|
name: clearml
|
||||||
description: MLOps platform
|
description: MLOps platform
|
||||||
type: application
|
type: application
|
||||||
version: "2.2.1"
|
version: "2.2.2"
|
||||||
appVersion: "1.1.1"
|
appVersion: "1.1.1"
|
||||||
home: https://clear.ml
|
home: https://clear.ml
|
||||||
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg
|
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# ClearML Ecosystem for Kubernetes
|
# ClearML Ecosystem for Kubernetes
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
MLOps platform
|
MLOps platform
|
||||||
|
|
||||||
|
@ -95,3 +95,48 @@ Create the name of the service account to use
|
|||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the App service to use
|
||||||
|
*/}}
|
||||||
|
{{- define "clearml.serviceApp" -}}
|
||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
|
{{- if .Values.ingress.tls.secretName }}
|
||||||
|
{{- printf "%s%s%s" "https://" .Values.ingress.hostPrefixApp .Values.ingress.host }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s" "http://" .Values.ingress.hostPrefixApp .Values.ingress.host }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s%s" "http://" (include "clearml.fullname" .) "-webserver:" (.Values.webserver.service.port | quote) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the Api service to use
|
||||||
|
*/}}
|
||||||
|
{{- define "clearml.serviceApi" -}}
|
||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
|
{{- if .Values.ingress.tls.secretName }}
|
||||||
|
{{- printf "%s%s%s" "https://" .Values.ingress.hostPrefixApi .Values.ingress.host }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s" "http://" .Values.ingress.hostPrefixApi .Values.ingress.host }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s%s" "http://" (include "clearml.fullname" .) "-apiserver:" (.Values.apiserver.service.port | quote) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the Files service to use
|
||||||
|
*/}}
|
||||||
|
{{- define "clearml.serviceFiles" -}}
|
||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
|
{{- if .Values.ingress.tls.secretName }}
|
||||||
|
{{- printf "%s%s%s" "https://" .Values.ingress.hostPrefixFiles .Values.ingress.host }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s" "http://" .Values.ingress.hostPrefixFiles .Values.ingress.host }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s%s%s%s" "http://" (include "clearml.fullname" .) "-fileserver:" (.Values.fileserver.service.port | quote) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@ -40,7 +40,7 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- >
|
- >
|
||||||
set -x;
|
set -x;
|
||||||
while [ $(curl -sw '%{http_code}' "http://{{ include "clearml.fullname" $ }}-apiserver:{{ $.Values.apiserver.service.port }}/debug.ping" -o /dev/null) -ne 200 ] ; do
|
while [ $(curl -sw '%{http_code}' "{{ include "clearml.serviceApi" $ }}/debug.ping" -o /dev/null) -ne 200 ] ; do
|
||||||
echo "waiting for apiserver" ;
|
echo "waiting for apiserver" ;
|
||||||
sleep 5 ;
|
sleep 5 ;
|
||||||
done
|
done
|
||||||
@ -56,11 +56,11 @@ spec:
|
|||||||
{{ .nvidiaGpusPerAgent }}
|
{{ .nvidiaGpusPerAgent }}
|
||||||
env:
|
env:
|
||||||
- name: CLEARML_API_HOST
|
- name: CLEARML_API_HOST
|
||||||
value: 'http://{{ include "clearml.fullname" $ }}-apiserver:{{ $.Values.apiserver.service.port }}'
|
value: {{ include "clearml.serviceApi" $ }}
|
||||||
- name: CLEARML_WEB_HOST
|
- name: CLEARML_WEB_HOST
|
||||||
value: 'http://{{ include "clearml.fullname" $ }}-webserver:{{ $.Values.webserver.service.port }}'
|
value: {{ include "clearml.serviceApp" $ }}
|
||||||
- name: CLEARML_FILES_HOST
|
- name: CLEARML_FILES_HOST
|
||||||
value: 'http://{{ include "clearml.fullname" $ }}-fileserver:{{ $.Values.fileserver.service.port }}'
|
value: {{ include "clearml.serviceFiles" $ }}
|
||||||
- name: CLEARML_AGENT_GIT_USER
|
- name: CLEARML_AGENT_GIT_USER
|
||||||
value: {{ .clearmlGitUser}}
|
value: {{ .clearmlGitUser}}
|
||||||
- name: CLEARML_AGENT_GIT_PASS
|
- name: CLEARML_AGENT_GIT_PASS
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- >
|
- >
|
||||||
set -x;
|
set -x;
|
||||||
while [ $(curl -sw '%{http_code}' "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}/debug.ping" -o /dev/null) -ne 200 ] ; do
|
while [ $(curl -sw '%{http_code}' "{{ include "clearml.serviceApi" $ }}/debug.ping" -o /dev/null) -ne 200 ] ; do
|
||||||
echo "waiting for apiserver" ;
|
echo "waiting for apiserver" ;
|
||||||
sleep 5 ;
|
sleep 5 ;
|
||||||
done
|
done
|
||||||
@ -42,7 +42,7 @@ spec:
|
|||||||
- name: CLEARML_HOST_IP
|
- name: CLEARML_HOST_IP
|
||||||
value: {{ .Values.agentservices.clearmlHostIp }}
|
value: {{ .Values.agentservices.clearmlHostIp }}
|
||||||
- name: CLEARML_API_HOST
|
- name: CLEARML_API_HOST
|
||||||
value: "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}"
|
value: {{ include "clearml.serviceApi" $ }}
|
||||||
- name: CLEARML_WEB_HOST
|
- name: CLEARML_WEB_HOST
|
||||||
value: {{ .Values.agentservices.clearmlWebHost }}
|
value: {{ .Values.agentservices.clearmlWebHost }}
|
||||||
- name: CLEARML_FILES_HOST
|
- name: CLEARML_FILES_HOST
|
||||||
|
Loading…
Reference in New Issue
Block a user