Skip to content

Commit

Permalink
background consul get
Browse files Browse the repository at this point in the history
  • Loading branch information
erulabs committed Jun 18, 2024
1 parent 1db927b commit 80e9dce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion k8s/prod/buckit-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ wait_for_consul_leader
mkdir -p /secrets

echo "---" > /secrets/config.yaml
consul_get config/buckit/config.yaml >> /secrets/config.yaml

while true; do {
echo "Getting config from consul"
echo "---" > /secrets/config.yaml
consul_get config/buckit/config.yaml >> /secrets/config.yaml &
sleep 10
}; done &

buckit --config /secrets/config.yaml

0 comments on commit 80e9dce

Please sign in to comment.