Minor fixes
- DNS implementation - Fixed missing mount in encrypted volumes - Improved chronograph.sh
This commit is contained in:
+19
-1
@@ -1,3 +1,21 @@
|
||||
#!/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 1>/dev/null 2>&1 &
|
||||
kubectl port-forward --address 127.0.0.1 --request-timeout=0 -n monitoring $POD_NAME 8888:8888 $REDIRECT
|
||||
Reference in New Issue
Block a user