Search code examples
kubernetescontainerd

Kubernetes Cannot Exec Pod


Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "0acebb686c1b464e7219419ce1e15439e28aaaa2ef84392f73ffb077a9cc3c8b": OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "cmd": executable file not found in $PATH: unknown

enter image description here


Solution

  • Unfortunately, I don't think kubernetes-metrics-scraper pod has a shell.

    It's expected behaviour so it doesn't indicate that there is an issue with it from info that you've provided (if you are accessing to solve something).

    You can get more details by checking if pod is in Running state, its logs in dashboard or describing a pod.

    Some pods can be accessed by passing these commands: sh, /bin/sh, bash or /bin/bash, but it's not the case specifically for kubernetes-metrics-scraper.