Files
a13labs.infra/scripts/chronograf.sh
T
alexandre.pires f8ddb332e8 Minor fixes
- DNS implementation
- Fixed missing mount in encrypted volumes
- Improved chronograph.sh
2024-10-05 18:11:41 +02:00

21 lines
466 B
Bash
Executable File

#!/bin/bash
REDIRECT_OUTPUT=true
while getopts "q" opt; do
case $opt in
q)
REDIRECT_OUTPUT=false
;;
*)
;;
esac
done
if $REDIRECT_OUTPUT; then
REDIRECT="1>/dev/null 2>&1"
else
REDIRECT=""
fi
POD_NAME=$(kubectl get pods -n monitoring -l app=chronograf -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --address 127.0.0.1 --request-timeout=0 -n monitoring $POD_NAME 8888:8888 $REDIRECT