-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 support for non-amd64 arch gcr.io images #2104
Conversation
ci check this |
This is very interesting. Thx for the PR. I was just thinking about ARM devices the other day! Looks like yamllint failed. If you'll get it fixed up, I'll re-kick CI. |
5012c8e
to
950373e
Compare
950373e
to
66020ed
Compare
66020ed
to
5d6f66b
Compare
roles/dnsmasq/defaults/main.yml
Outdated
@@ -33,3 +33,6 @@ dnsmasq_min_replicas: 1 | |||
|
|||
# Custom name servers | |||
dnsmasq_upstream_dns_servers: [] | |||
|
|||
# Arch of Docker images and needed packages | |||
image_arch: "{{ image_arch | default('amd64') }}" |
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.
This is not how defaults works. Just put it like this:
# Arch of Docker images and needed packages
image_arch: amd64
There's no need to quote if it starts with a letter.
@@ -23,6 +23,9 @@ download_always_pull: False | |||
# Use the first kube-master if download_localhost is not set | |||
download_delegate: "{% if download_localhost %}localhost{% else %}{{groups['kube-master'][0]}}{% endif %}" | |||
|
|||
# Arch of Docker images and needed packages |
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.
This is not how defaults works. Just put it like this:
# Arch of Docker images and needed packages
image_arch: amd64
There's no need to quote if it starts with a letter.
roles/vault/defaults/main.yml
Outdated
@@ -18,12 +18,15 @@ vault_roles_dir: "{{ vault_base_dir }}/roles" | |||
vault_secrets_dir: "{{ vault_base_dir }}/secrets" | |||
vault_log_dir: "/var/log/vault" | |||
|
|||
# Arch of Docker images and needed packages | |||
image_arch: "{{ image_arch | default('amd64') }}" |
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.
This is not how defaults works. Just put it like this:
# Arch of Docker images and needed packages
image_arch: amd64
```
There's no need to quote if it starts with a letter.
Currently all the gcr.io images used in kubespray can only run on x86. Also gcr.io has not fully support multi-arch docker images. Add extra var "image_arch" (default is amd64) to support running other platforms, like arm64. Change-Id: I8e1c9af533c021cb96ade291a1ce58773b40e271
@mattymo Updated. PTAL. Thanks. |
@xd007 Thank you ! |
Currently all the gcr.io images used in kubespray can only run on x86.
Also gcr.io has not fully support multi-arch docker images.
Add extra var "image_arch" (default is amd64) to support running other
platforms, like arm64.
Change-Id: I8e1c9af533c021cb96ade291a1ce58773b40e271