Open mahmud2011 opened 6 months ago
Thank you for sharing this @mahmud2011.
I think this issue would only impact those not running on amd64
architectures. I'm running microk8s on a Raspberry Pi 5, and the nigelpoulton/k8sbook:1.0
image comes in both amd64
and arm64
architectures.
@nigelpoulton - not sure if the best course of action to resolve the issue for arm64
folks would be to update the initpod.yml
to reference k8sbook:1.0
, or to re-publish the web-app:1.0
image as multiarch?
I ran into a similar issue on a Pi 5 with k8s.gcr.io/git-sync:v3.1.6
- updating to k8s.gcr.io/git-sync/git-sync:v3.6.5
resolved the issue.
Logs from v3.1.6:
$ microk8s kubectl logs -f git-sync --container ctr-sync
INFO: detected pid 1, running init handler
I0914 21:11:27.223483 12 main.go:321] "level"=0 "msg"="starting up" "args"=["/git-sync"] "pid"=12
I0914 21:11:27.223556 12 main.go:574] "level"=0 "msg"="cloning repo" "origin"="https://github.com/jlyons210/ps-sidecar.git" "path"="/tmp/git"
E0914 21:11:27.226792 12 main.go:347] "msg"="failed to sync repo, aborting" "error"="error running command: fork/exec /usr/bin/git: exec format error: { stdout: \"\", stderr: \"\" }"
Output:
Output:
Output:
Works: Changing the image to
nigelpoulton/k8sbook:1.0
.