Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying Init Containers #18

Merged
merged 6 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions kubernetes/lookit/base/patches_/wait-init-gcloud-sqlproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
path: /spec/template/spec/initContainers/-
value:
name: wait-init-gcloud-sqlproxy
image: bitnami/kubectl:latest
args: [
"rollout",
"status",
"deployment",
"-w",
"$(GCLOUD_SQLPROXY_DEPLOYMENT_NAME)"
]
image: postgres:9.6
command:
- bash
args:
- -c
- until pg_isready -h $(GCLOUD_SQLPROXY_SERVICE_NAME); do echo waiting for sqlproxy; sleep 5; done
11 changes: 3 additions & 8 deletions kubernetes/lookit/base/patches_/wait-init-rabbitmq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
path: /spec/template/spec/initContainers/-
value:
name: wait-init-rabbitmq
image: bitnami/kubectl:latest
args: [
"rollout",
"status",
"statefulset",
"-w",
"$(RABBITMQ_STATEFULSET_NAME)"
]
image: busybox
command: ["sh", "-c"]
args: ["until nc -vn $(RABBITMQ_SERVICE_NAME):5672; do echo waiting for rabbitmq; sleep 2; done"]