caktus / ansible-role-django-k8s

Ansible role with sane defaults to deploy a Django app to Kubernetes.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Migrate jobs cannot proceed when secrets have not been inserted #28

Closed JeremyGibson closed 3 years ago

JeremyGibson commented 4 years ago

During the initial creation of the migration job, the job's pod fails to start when k8s_migrations_enabled is set to true (which it is by default) because app-secrets have yet to be generated.

A workaround is to temporarily set k8s_migrations_enabled to false for the first deploy, and then re-enable for subsequent deploys.