Moved from using Kubernetes' internal Cron scheduler to a pod based one due to unforeseen hangups. Also added a check if the MySQL server is available before continuing

This commit is contained in:
florian committed 2026-09-30 13:20:38 +00:00
1 parent 5f131c3bd9
commit 7674a9c64b
10 files changed
+237

No files matched your search

@@ -16,6 +16,23 @@ spec:
imagePullSecrets:
- name: ghcr-secret
initContainers:
- name: wait-for-mysql
image: busybox
command:
- sh
- -c
- |
until nslookup mysql.app-notifications.svc.cluster.local; do
echo "Waiting for MySQL DNS..."
sleep 2
done
until nc -z mysql.app-notifications.svc.cluster.local 3306; do
echo "Waiting for MySQL..."
sleep 2
done
echo "MySQL is available"
- name: copy-secrets
image: busybox
command:
@@ -44,6 +61,8 @@ spec:
value: "mysql.app-notifications.svc.cluster.local"
- name: BACKEND_API_URL
value: "http://backend-api-internal.app-notifications.svc.cluster.local:8101/internal/receive-notifications"
- name: LOG_LEVEL
value: "INFO"
volumeMounts:
- name: writable-secrets
mountPath: /etc/secrets