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

Base image updates #1366

Merged
merged 4 commits into from
Feb 27, 2020
Merged

Conversation

BenTheElder
Copy link
Member

this is much slower and problematic to locally test (the manifest list cannot be exported to local, so you need to do a quick build and test that) but, it is feasible. starting with just amd64 and arm64.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 27, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 27, 2020
@BenTheElder BenTheElder mentioned this pull request Feb 27, 2020
@BenTheElder BenTheElder requested review from amwat and aojea and removed request for munnerz and krzyzacy February 27, 2020 02:25
@@ -42,7 +42,7 @@ import (
const DefaultImage = "kindest/node:latest"

// DefaultBaseImage is the default base image used
const DefaultBaseImage = "kindest/base:v20200221-f3727da0@sha256:a9da2114e7ea293d9ac544a0c5b58d63e5ee44b4e76891bf35671fb1f5ffc611"
const DefaultBaseImage = "kindest/base:v20200226-6d5ec59c@sha256:7fbe0890dab2dfb170fef3bf8ca8dda9bae40c66e6124a59ce2fd2debd18e818"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you cannot browse the digest on docker hub, but the tag is browsable, so we include both.
this is the digest of a manifest list for linux/amd64 + linux/arm64

@BenTheElder
Copy link
Member Author

BenTheElder commented Feb 27, 2020 via email

IMAGE?=kindest/base:$(TAG)

# build with buildx
PLATFORMS?=linux/amd64,linux/arm64
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll probably want to expand this, however I'm trying to wrap this up and make sure the base image works at all, my main priority was the containerd update, this change is more of a diversion due to #1347 #166

@amwat
Copy link
Contributor

amwat commented Feb 27, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2020
@k8s-ci-robot k8s-ci-robot merged commit 034a290 into kubernetes-sigs:master Feb 27, 2020
@BenTheElder BenTheElder deleted the base-update branch February 27, 2020 05:37
@aojea
Copy link
Contributor

aojea commented Feb 27, 2020

Cool

@BenTheElder
Copy link
Member Author

FYI @neolit123

@neolit123
Copy link
Member

ack, thanks for the heads up.

@BenTheElder
Copy link
Member Author

shouldn't affect anything I think, BUT it is a manifest list image instead now, and it does mean some movement towards arm being a thing.

I'm guessing kinder users are all amd64 but I wouldn't be too surprised if someone was trying to use another architecture 😅

@BenTheElder
Copy link
Member Author

(and the image build is changing, we really need to remove kind build base-image which is outdated and have people leverage the makefile / not need to build it themselves since we'll have pre-cross-built-it for them)

@neolit123
Copy link
Member

we have quite a few amd64 jobs for kinder right now and the amd64 assumptions are hardcoded.

i'm hoping that one day we will be able to run at least one arm64 job too.

since we don't have a way to provision arm64 with prow today (AFAIK), i was wondering if its possible to try it in github actions, by requesting a non-amd64 VM in the workflow job and running kind/kinder there with k8s non-amd64 artifacts.

but this has been in the backlog, due to other priorities.

@BenTheElder
Copy link
Member Author

BenTheElder commented Feb 27, 2020 via email

@BenTheElder
Copy link
Member Author

Looks like that action is just a qemu wrapper, the performance will probably be too bad.

Travis has ACTUAL arm IIRC but getting it in k8s may be hard.

@neolit123
Copy link
Member

Looks like that action is just a qemu wrapper, the performance will probably be too bad.

i didn't know it is using emulation. this might be quite slow, indeed.

@BenTheElder
Copy link
Member Author

locally using qemu to build the image is pretty slow, and I'm betting the actions workers are much smaller machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants