mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Fix init container waits forever pinging a mongodb in production config (#178)
* Fixed: hostname healthcheck for mongodb * Changed: bump up version
This commit is contained in:
parent
dd4d8bf086
commit
a6db8b4262
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: clearml
|
name: clearml
|
||||||
description: MLOps platform
|
description: MLOps platform
|
||||||
type: application
|
type: application
|
||||||
version: "5.8.0"
|
version: "5.8.1"
|
||||||
appVersion: "1.9.2"
|
appVersion: "1.9.2"
|
||||||
kubeVersion: ">= 1.21.0-0 < 1.27.0-0"
|
kubeVersion: ">= 1.21.0-0 < 1.27.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: added
|
- kind: fixed
|
||||||
description: filemount support for apps agent
|
description: mongodb healthcheck for production config
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# ClearML Ecosystem for Kubernetes
|
# ClearML Ecosystem for Kubernetes
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
MLOps platform
|
MLOps platform
|
||||||
|
|
||||||
|
@ -177,6 +177,17 @@ MongoDB Comnnection string
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
MongoDB hotname
|
||||||
|
*/}}
|
||||||
|
{{- define "mongodb.hostname" -}}
|
||||||
|
{{- if eq .Values.mongodb.architecture "standalone" }}
|
||||||
|
{{- printf "%s" "mongodb" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" "mongodb-headless" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Redis Service name
|
Redis Service name
|
||||||
*/}}
|
*/}}
|
||||||
|
@ -61,7 +61,7 @@ spec:
|
|||||||
done ;
|
done ;
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mongodb.enabled }}
|
{{- if .Values.mongodb.enabled }}
|
||||||
while [ $(curl --telnet-option BOGUS --connect-timeout 2 -s "telnet://{{ .Release.Name }}-mongodb:27017" -o /dev/null; echo $?) -ne 49 ] ; do
|
while [ $(curl --telnet-option BOGUS --connect-timeout 2 -s "telnet://{{ .Release.Name }}-{{ include "mongodb.hostname" . }}:27017" -o /dev/null; echo $?) -ne 49 ] ; do
|
||||||
echo "waiting for mongodb" ;
|
echo "waiting for mongodb" ;
|
||||||
sleep 5 ;
|
sleep 5 ;
|
||||||
done ;
|
done ;
|
||||||
|
Loading…
Reference in New Issue
Block a user