-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image_arch in flannel image tag #7560
Conversation
Hi @muzi502. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Nice, shouldn't this also have image arch 🤔
|
Sorry i forgot canal 😅 should remove
kubespray/roles/download/defaults/main.yml Line 404 in 0feec14
Other images set image arch in it's image_repo or image_tag, such as kubespray/roles/download/defaults/main.yml Line 459 in 0feec14
kubespray/roles/download/defaults/main.yml Line 406 in 0feec14
find roles -type f -name "*.j2" | xargs grep '_tag }}' | grep arch
roles/network_plugin/flannel/templates/cni-flannel.yml.j2: image: {{ flannel_image_repo }}:{{ flannel_image_tag }}-{{ arch }}
roles/network_plugin/flannel/templates/cni-flannel.yml.j2: image: {{ flannel_image_repo }}:{{ flannel_image_tag }}-{{ arch }} |
/cc @floryut
flannel's task will create five daemonset with different arch, should keep [root@kube-control-1 ~]# kubectl get daemonset -n kube-system
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/kube-flannel 4 4 4 0 4 <none> 73m
daemonset.apps/kube-flannel-ds-arm 0 0 0 0 0 <none> 73m
daemonset.apps/kube-flannel-ds-arm64 0 0 0 0 0 <none> 73m
daemonset.apps/kube-flannel-ds-ppc64le 0 0 0 0 0 <none> 73m
daemonset.apps/kube-flannel-ds-s390x 0 0 0 0 0 <none> 73m This will keep download flannel image tag and real used image tag consistent |
/kind bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
@@ -66,7 +66,7 @@ spec: | |||
serviceAccountName: flannel | |||
containers: | |||
- name: kube-flannel | |||
image: {{ flannel_image_repo }}:{{ flannel_image_tag }}-{{ arch }} | |||
image: {{ flannel_image_repo }}:{{ flannel_image_tag | regex_replace(image_arch,'') }}-{{ arch }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering why we need to remove and add similar string here, but that seems the same as the existing code https://github.com/kubernetes-sigs/kubespray/blob/10083fa47e579b49f7cd9736556bd9390e1ecb92/roles/network_plugin/flannel/templates/cni-flannel.yml.j2#L69
So it is fine to do that.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, muzi502 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
* Add image_arch variable when download flannel image * Fix flannel image tag typo with image arch
* Add image_arch variable when download flannel image * Fix flannel image tag typo with image arch
What type of PR is this?
/kind bug
What this PR does / why we need it:
#6166 enabled multi-CPU architecture in Flannel CNI
For flannel image, in download image task flannel image tag is
flannel_version
, such asquay.io/coreos/flannel:v0.13.0
but inroles/network_plugin/flannel/templates/cni-flannel.yml.j2
file, real image tag is{{ flannel_image_tag }}-{{ arch }}
, such asquay.io/coreos/flannel:v0.13.0-amd64
.This will result in the real image tag is inconsistent with the downloaded image tag especially for offline deploy.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: