diff options
author | Witold Duranek <contact@witalis.net> | 2023-03-09 14:54:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 15:54:07 +0200 |
commit | 9d8b40d18ac92897aedb0c90318c951c920e2fc2 (patch) | |
tree | 1fc0c788c8fbc6b879578fc70ab78b6731025486 /daemon | |
parent | 7385376d021dd97274797807e37d372c85303ecc (diff) |
fix: detect the host os in k8s on non-docker cri (#14694)
Diffstat (limited to 'daemon')
-rwxr-xr-x | daemon/system-info.sh | 5 |
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 # ------------------------------------------------------------------------------------------------- |