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:
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:
|
||||
|
||||
Reference in new issue
Block a user