diff --git a/helm/ph-ee-engine/connector-ams-mifos/templates/deployment.yaml b/helm/ph-ee-engine/connector-ams-mifos/templates/deployment.yaml index 1ee28c818..ea5487389 100644 --- a/helm/ph-ee-engine/connector-ams-mifos/templates/deployment.yaml +++ b/helm/ph-ee-engine/connector-ams-mifos/templates/deployment.yaml @@ -86,12 +86,17 @@ spec: # {{- end }} initContainers: - name: wait-db - image: jwilder/dockerize + image: busybox:1.35 imagePullPolicy: IfNotPresent + command: ['sh', '-c'] args: - - -timeout=120s - - -wait - - tcp://{{ .Values.operations_app.datasource.host }}:3306 + - | + echo "Waiting for database connection..." + until nc -z {{ .Values.operations_app.datasource.host }} 3306; do + echo "Database not ready, waiting..." + sleep 2 + done + echo "Database is ready!" volumes: - name: ph-ee-config configMap: diff --git a/helm/ph-ee-engine/connector-notifications/templates/deployment.yaml b/helm/ph-ee-engine/connector-notifications/templates/deployment.yaml index 76b471cb4..bdcf8511c 100644 --- a/helm/ph-ee-engine/connector-notifications/templates/deployment.yaml +++ b/helm/ph-ee-engine/connector-notifications/templates/deployment.yaml @@ -33,18 +33,18 @@ spec: {{- end }} ports: - containerPort: 5000 - livenessProbe: - httpGet: - path: {{ .Values.livenessProbe.path | default "/actuator/health/liveness" }} - port: {{ .Values.livenessProbe.port | default 8080 }} - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 20 }} - periodSeconds: {{ .Values.livenessProbe.periodSeconds | default 30 }} - readinessProbe: - httpGet: - path: {{ .Values.readinessProbe.path | default "/actuator/health/readiness" }} - port: {{ .Values.readinessProbe.port | default 8080 }} - initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 20 }} - periodSeconds: {{ .Values.readinessProbe.periodSeconds | default 30 }} + # livenessProbe: + # httpGet: + # path: {{ .Values.livenessProbe.path | default "/actuator/health/liveness" }} + # port: {{ .Values.livenessProbe.port | default 8080 }} + # initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 20 }} + # periodSeconds: {{ .Values.livenessProbe.periodSeconds | default 30 }} + # readinessProbe: + # httpGet: + # path: {{ .Values.readinessProbe.path | default "/actuator/health/readiness" }} + # port: {{ .Values.readinessProbe.port | default 8080 }} + # initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 20 }} + # periodSeconds: {{ .Values.readinessProbe.periodSeconds | default 30 }} env: - name: "SPRING_PROFILES_ACTIVE" value: "{{ .Values.springProfilesActive | default "" }}" diff --git a/helm/ph-ee-engine/operations-app/templates/deployment.yaml b/helm/ph-ee-engine/operations-app/templates/deployment.yaml index b5ecaccb6..2d7b58124 100644 --- a/helm/ph-ee-engine/operations-app/templates/deployment.yaml +++ b/helm/ph-ee-engine/operations-app/templates/deployment.yaml @@ -75,12 +75,17 @@ spec: mountPath: "/config" initContainers: - name: wait-db - image: jwilder/dockerize + image: busybox:1.35 imagePullPolicy: IfNotPresent + command: ['sh', '-c'] args: - - -timeout=120s - - -wait - - tcp://{{ .Values.secret.datasource.host }}:3306 + - | + echo "Waiting for database connection..." + until nc -z {{ .Values.secret.datasource.host }} 3306; do + echo "Database not ready, waiting..." + sleep 2 + done + echo "Database is ready!" volumes: - name: ph-ee-config configMap: diff --git a/helm/ph-ee-engine/values.yaml b/helm/ph-ee-engine/values.yaml index 98618cc1c..023c07e16 100644 --- a/helm/ph-ee-engine/values.yaml +++ b/helm/ph-ee-engine/values.yaml @@ -1841,7 +1841,7 @@ connector_bulk: # ph-ee-connector-bulk.yml: | ph_ee_connector_gsma: - enabled: true + enabled: false replicas: 1 image: docker.io/openmf/ph-ee-connector-gsma:v1.3.0-gazelle-1.1.0 imagePullPolicy: IfNotPresent