disable kubectl port forwarding and instead rely on a docker contaier for redis
This commit is contained in:
parent
9a164ddfdc
commit
68d88de464
1 changed files with 8 additions and 6 deletions
|
|
@ -14,13 +14,15 @@ pkill -f celery
|
||||||
pkill watchmedo
|
pkill watchmedo
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if command -v kubectl &> /dev/null; then
|
# use redis container instead to avoid overwriting prod
|
||||||
set +e
|
# if command -v kubectl &> /dev/null; then
|
||||||
pkill -f "kubectl port-forward"
|
# set +e
|
||||||
set -e
|
# pkill -f "kubectl port-forward"
|
||||||
|
# set -e
|
||||||
|
|
||||||
kubectl port-forward $(kubectl get pods -n redis -o json | jq '.items[0].metadata.name' | sed 's/"//g') --address 0.0.0.0 6379:6379 -n redis &
|
# # kubectl port-forward $(kubectl get pods -n redis -o json | jq '.items[0].metadata.name' | sed 's/"//g') --address 0.0.0.0 6379:6379 -n redis &
|
||||||
fi
|
|
||||||
|
# fi
|
||||||
|
|
||||||
# Ensure connection to broken is successful
|
# Ensure connection to broken is successful
|
||||||
python celery_app.py
|
python celery_app.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue