Skip to content

Commit 1816f87

Browse files
authored
Fix install awx-task init-database container args
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
1 parent d5683ad commit 1816f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/installer/templates/deployments/task.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ spec:
9797
image: '{{ _image }}'
9898
imagePullPolicy: '{{ image_pull_policy }}'
9999
resources: {{ init_container_resource_requirements }}
100-
command:
100+
args:
101101
- /bin/sh
102102
- -c
103103
- wait-for-migrations

0 commit comments

Comments
 (0)