This commit is contained in:
Eugenio Marzo
2022-12-29 16:50:58 +01:00
parent fe87847e23
commit 06d7c64268
8 changed files with 13 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -32,7 +32,7 @@
@font-face {
font-family: pixel;
src: url('./fonts/DotGothic16-Regular.ttf');
src: url('./fonts/pixel.otf');
font-size-adjust: inherit;
}
@@ -320,7 +320,7 @@ experiments:
<div id="logTailRegexInput" style="display: block;">
<div class="row" style="margin-top: 2%;">
<input type="text" style="font-family: Courier New, Courier, monospace;" id="logTailRegex" value='{"pod":".*", "namespace":".*", "labels":".*", "annotations":".*", "containers": ".*"}'/>
<input type="text" style="font-family: Courier New, Courier, monospace;" id="logTailRegex" value='{"pod":".*", "namespace":"namespace1", "labels":".*", "annotations":".*", "containers": ".*"}'/>
</div>
<div class="row" style="margin-top: 1%;">
<div class="col text-center">
+1 -1
View File
@@ -84,7 +84,7 @@ else:
if os.environ.get("DEV"):
logging.info("Setting env var for dev...")
r.set("log_pod_regex", '{"pod":".*", "namespace":".*", "labels":".*", "annotations":".*", "containers": ".*"}')
r.set("log_pod_regex", '{"pod":".*", "namespace":"namespace1", "labels":".*", "annotations":".*", "containers": ".*"}')
r.set("logs_enabled:aaaa", 1)
r.set("programming_mode", 0)
logging.info(r.get("log_pod_regex:aaaa"))
+10 -1
View File
@@ -8,4 +8,13 @@ else
export TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
fi
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
python3 /opt/logs_loop/start.py https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}
python3 /opt/logs_loop/start.py https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS} &
# WORK AROUND...
while true
do
( ps -ef | grep start.py | grep logs_loop | grep -v grep ) || ( python3 /opt/logs_loop/start.py https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS} & )
echo "[WORK AROUND] Chefking if logs_loop is still alive..."
sleep 2
done