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:
Valeriano Manassero 2023-03-07 08:19:22 +01:00 committed by GitHub
parent dd4d8bf086
commit a6db8b4262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 5 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.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

View File

@ -1,6 +1,6 @@
# ClearML Ecosystem for Kubernetes # ClearML Ecosystem for Kubernetes
![Version: 5.8.0](https://img.shields.io/badge/Version-5.8.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.8.1](https://img.shields.io/badge/Version-5.8.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

@ -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
*/}} */}}

View File

@ -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 ;