Solved it.
Thank you for everything.
The problem was this :
- Unfortunately I use Apple M1 Pro .
- Figured that the kubectl client is on Platform:“darwin/arm64” and the server on : Platform:“linux/amd64” and ofc at first i’ve build the image by default on arm64, thus the error : “standard_init_linux.go:228: exec user process caused: exec format error”
And in most cases, apparently the error occurs when : trying to run a binary that was compiled for a different operating system or arch - Solution : build the image with --platform linux/amd64.
hope this helps going forward.
I would change the title of the topic as well