2 min read | by Jordi Prats
A Pod can fail to run with the following error:
standard_init_linux.go:178: exec user process caused "exec format error"
Might be confusing at first sight, but what it is trying to tell us is that there's a problem executing the code. If it is a binary, the issue usually is that you are trying to execute a binary that was built for a different architecture (some mismatch)
So it could be that you are trying to run a x86_64 binary on ARM64 or the other way around. In case the problem is that you are running Kubernetes nodes with mixed architecture you have several options:
apiVersion: v1 kind: Pod metadata: name: demo spec: nodeSelector: kubernetes.io/arch: arm containers: - name: demo image: busybox command: ["sleep"] args: ["1h"]
Posted on 24/11/2022