summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorWitold Duranek <contact@witalis.net>2023-03-09 14:54:07 +0100
committerGitHub <noreply@github.com>2023-03-09 15:54:07 +0200
commit9d8b40d18ac92897aedb0c90318c951c920e2fc2 (patch)
tree1fc0c788c8fbc6b879578fc70ab78b6731025486 /daemon
parent7385376d021dd97274797807e37d372c85303ecc (diff)
fix: detect the host os in k8s on non-docker cri (#14694)
Diffstat (limited to 'daemon')
-rwxr-xr-xdaemon/system-info.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh
index 72159de6da..c2660ca210 100755
--- a/daemon/system-info.sh
+++ b/daemon/system-info.sh
@@ -96,6 +96,11 @@ if [ "${CONTAINER}" = "unknown" ]; then
CONT_DETECTION="dockerenv"
fi
+ if [ -n "${KUBERNETES_SERVICE_HOST}" ]; then
+ CONTAINER="container"
+ CONT_DETECTION="kubernetes"
+ fi
+
fi
# -------------------------------------------------------------------------------------------------