Skip to content

Commit

Permalink
wait for mongodb sa
Browse files Browse the repository at this point in the history
  • Loading branch information
malaskowski committed Apr 22, 2024
1 parent 075a5bb commit 9ebf46c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ set -x -e

# Install and expose MongoDB
kubectl create namespace mongo
# wait until mongo/default ServiceAccount exists
kubectl -n mongo wait --for=condition=ready sa default --timeout=300s

kubectl -n mongo run mongodb --image=mongo:7 \
--env MONGO_INITDB_ROOT_USERNAME=mongoadmin \
--env MONGO_INITDB_ROOT_PASSWORD=mongoadmin
Expand Down

0 comments on commit 9ebf46c

Please sign in to comment.