Skip to content

Commit

Permalink
Merge pull request #18 from jtrouth/init-containers
Browse files Browse the repository at this point in the history
Modifying Init Containers
  • Loading branch information
Kim Scott authored Mar 15, 2021
2 parents 472ad33 + f128af6 commit fca50aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
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"]

0 comments on commit fca50aa

Please sign in to comment.