Skip to content
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

Merged
merged 2 commits into from
Aug 17, 2018

Conversation

xd007
Copy link

@xd007 xd007 commented Dec 21, 2017

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 21, 2017
@ant31
Copy link
Contributor

ant31 commented Dec 21, 2017

ci check this

@rsmitty
Copy link
Contributor

rsmitty commented Dec 21, 2017

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.

@xd007
Copy link
Author

xd007 commented Dec 22, 2017

@ant31 @rsmitty Updated. PTAL. Thanks.

@xd007
Copy link
Author

xd007 commented Jan 31, 2018

Rebased. ping @ant31 @rsmitty Updated. PTAL. Thanks.

@@ -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') }}"
Copy link
Contributor

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
Copy link
Contributor

@mattymo mattymo Apr 25, 2018

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.

@@ -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') }}"
Copy link
Contributor

@mattymo mattymo Apr 25, 2018

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
@xd007
Copy link
Author

xd007 commented Jun 5, 2018

@mattymo Updated. PTAL. Thanks.

@ant31
Copy link
Contributor

ant31 commented Aug 17, 2018

@xd007 Thank you !

@ant31 ant31 merged commit 2c587f9 into kubernetes-sigs:master Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants