zfs-localpv/e2e-tests/utils/applications/mysql/check_db_connection.yml

9 lines
322 B
YAML
Raw Permalink Normal View History

#Check if the database is ready for connection, upper bound wait time: 900s
- name: Check if db is ready for connections
shell: kubectl logs {{ pod_name.resources.0.metadata.name }} -n {{ app_ns }} | grep 'ready for connections' | wc -l
register: initcheck
until: initcheck.stdout == "2"
delay: 5
retries: 180