Minor fixes

- DNS implementation
- Fixed missing mount in encrypted volumes
- Improved chronograph.sh
This commit is contained in:
2024-10-05 18:11:41 +02:00
parent 0fc8047831
commit f8ddb332e8
10 changed files with 193 additions and 13 deletions
+19 -1
View File
@@ -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