coredns pods use wrong format (x86) on ARM64 server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CDK Addons |
Fix Released
|
High
|
George Kraft |
Bug Description
After deploy the charmed kubernetes v1.15 bundle from (https:/
which us this "charm: cs:~containers/
The pods status would show below "CrashLoopBackoff" and "exec format error" of log. This was cuased by use x86 docker image instead of arm64 version.
ubuntu@maas3:~$ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
...
kube-system coredns-
kube-system coredns-
1 ubuntu@maas3:~$ kubectl logs pod/coredns-
standard_
ubuntu@maas3:~$
ubuntu@
REPOSITORY TAG IMAGE ID CREATED SIZE
image-registry.
Changed in charm-kubernetes-master: | |
status: | New → Triaged |
assignee: | nobody → George Kraft (cynerva) |
milestone: | none → 1.16 |
importance: | Undecided → High |
Changed in charm-kubernetes-master: | |
status: | Triaged → In Progress |
Changed in cdk-addons: | |
importance: | Undecided → High |
assignee: | nobody → George Kraft (cynerva) |
milestone: | none → 1.16 |
status: | New → In Progress |
Changed in cdk-addons: | |
status: | Fix Committed → Fix Released |
There is already coredns-arm64 docker image from Canonical private registry as:
ubuntu@ infra2- vm02:~$ docker image list canonical. com:5000/ cdk/coredns/ coredns- arm64 1.5.1 eccb4755e655 2 months ago 39.1MB
REPOSITORY TAG IMAGE ID CREATED SIZE
image-registry.
If pod configure was modified to use this arm64 image, the pods would become working.
ubuntu@maas3:~$ kubectl describe pods/coredns- 75dc589b9b- mhr2j -n kube-system |grep -i image-registry canonical. com:5000/ cdk/coredns/ coredns- arm64:1. 5.1 pullable: //image- registry. canonical. com:5000/ cdk/coredns/ coredns- arm64@sha256: ad065eb4f03b7e4 108007947f92843 4f7de3f0ffa0f2e d729198d5f49329 c56e
Image: image-registry.
Image ID: docker-
ubuntu@maas3:~$
1 ubuntu@maas3:~$ kubectl get pods -A 75dc589b9b- mhr2j 1/1 Running 874 6d6h 75dc589b9b- xwpdq 1/1 Running 873 6d6h
NAMESPACE NAME READY STATUS RESTARTS AGE
...
kube-system coredns-
kube-system coredns-
...