k8gb-io/k8gb

deploy-full-local-setup: external-dns pod `exec format error` with Docker Desktop > 4.26.1

Closed this issue · 0 comments

Encountered the issue with local externdal dns pod failing to start with Docker Desktop 4.30.0 on MacOS Sonoma 14.5 (23F79) M1 Max chip

 k -n k8gb get pod
NAME                            READY   STATUS    RESTARTS      AGE
k8gb-76855c65d5-fjmz7           1/1     Running   0             26s
k8gb-coredns-59cdccf54f-4bb77   0/1     Running   0             26s
external-dns-7cbb88fccc-zdb6x   0/1     Error     2 (24s ago)   26s
 k -n k8gb logs external-dns-7cbb88fccc-zdb6x
exec /bin/external-dns: exec format error

Following docker/for-mac#7168 I downgraded to Docker Desktop 4.26.1 and everything became normal:

 k get pod -A
NAMESPACE     NAME                                           READY   STATUS    RESTARTS   AGE
kube-system   coredns-576bfc4dc7-lnd77                       1/1     Running   0          5m37s
k8gb          k8gb-dd8db8f77-qbdg6                           1/1     Running   0          5m1s
k8gb          external-dns-7f89cbdb45-r94gd                  1/1     Running   0          5m1s
test-gslb     frontend-podinfo-6fdcf95467-n22sr              1/1     Running   0          4m52s
k8gb          nginx-ingress-ingress-nginx-controller-hmt96   1/1     Running   0          4m53s
k8gb          nginx-ingress-ingress-nginx-controller-wpqwj   1/1     Running   0          4m53s
k8gb          k8gb-coredns-59cdccf54f-h7hpl                  1/1     Running   0          5m1s

Possible solution: build multiarch image at https://github.com/k8gb-io/external-dns/pkgs/container/external-dns as remediation