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
|
||||
set -e
|
||||
|
||||
if command -v kubectl &> /dev/null; then
|
||||
set +e
|
||||
pkill -f "kubectl port-forward"
|
||||
set -e
|
||||
# use redis container instead to avoid overwriting prod
|
||||
# if command -v kubectl &> /dev/null; then
|
||||
# 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 &
|
||||
fi
|
||||
# # 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
|
||||
|
||||
# Ensure connection to broken is successful
|
||||
python celery_app.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue