Skip to content

Commit

Permalink
Fix install awx-task init-database container args
Browse files Browse the repository at this point in the history
If the database setup is in some way wrong, the `wait-for-migrations` command inside the `init-database` container runs infinitely and can't be stopped by kubernetes.
The `wait-for-migrations` command needs to be started by `dump-init` command. The `dump-init` command is the default ENTRYPOINT of the used container image.
See: https://github.com/ansible/awx/blob/devel/tools/ansible/roles/dockerfile/templates/Dockerfile.j2#L321
  • Loading branch information
JoelKle authored Oct 30, 2024
1 parent d5683ad commit 1816f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/installer/templates/deployments/task.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ spec:
image: '{{ _image }}'
imagePullPolicy: '{{ image_pull_policy }}'
resources: {{ init_container_resource_requirements }}
command:
args:
- /bin/sh
- -c
- wait-for-migrations
Expand Down

0 comments on commit 1816f87

Please sign in to comment.