Skip to content

Conversation

fgrzadkowski
Copy link
Contributor

Add two docker images:

I'll send a followup PR to build and release those images.

This has similar changes to #19069.

In the long term I'd like to use those images by default in most cluster deployments (ref #18287)

@dchen1107 @vishh @roberthbailey @mikedanese

Ref #4869

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 29, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 29, 2015

GCE e2e test build/test passed for commit 6ed3ae574ba237ff186cd9e013c97ee83a4973c3.

ifndef VERSION
$(error VERSION is undefined)
endif
cp ../../../_output/dockerized/bin/linux/${ARCH}/kubelet .
Copy link
Member

Choose a reason for hiding this comment

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

How about local builds? Could we figure out some way to use dockerized output sometimes and curl download for k8s users? Or is this image only going to be used for the release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why would you build your own image using released kubelet binary?

Copy link
Member

Choose a reason for hiding this comment

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

Never mind, I was just thinking of how it had been earlier, when the Makefile curled for hyperkube. However this is the way to go

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 30, 2015

max_seconds=10
container_id="${1}"
hostport="${2:-https://127.0.0.1:10250}"
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 the full URL, not just the host port.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@fgrzadkowski
Copy link
Contributor Author

@dchen1107 Can you please take a look or reassign for someone else in node team? @kubernetes/goog-node

@k8s-bot
Copy link

k8s-bot commented Jan 5, 2016

GCE e2e test build/test passed for commit 5dc7cbc7ecb20bef7ddfb52c24017ea5ab29a028.


if [ $# -lt 1 ] || [ $# -gt 2 ]; then
echo "Usage:"
echo " kubelet-checker.sh <kubelet_container_id> [<kubelet_host_port>]"
Copy link
Member

Choose a reason for hiding this comment

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

s/kubelet_host_port/kubelet_url/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@k8s-bot
Copy link

k8s-bot commented Jan 5, 2016

GCE e2e test build/test passed for commit 5dc7cbc7ecb20bef7ddfb52c24017ea5ab29a028.


COPY kubelet-runner.sh /kubelet-runner.sh
RUN chmod a+rx /kubelet-runner.sh

Copy link
Member

Choose a reason for hiding this comment

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

I would say that it's best to install the same packages as hyperkube has. https://github.com/kubernetes/kubernetes/blob/master/cluster/images/hyperkube/Dockerfile#L3
Otherwise, the risk is very high that some package (that we already solved in /hyperkube kubelet) is required to have, and another PR must fix that.

We should include the packages in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are other requirements for hyperkube, e.g. we generate certs there. I'll add those that I believe are really needed.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I know about the certs. That looks good.

@k8s-bot
Copy link

k8s-bot commented Jan 5, 2016

GCE e2e build/test failed for commit d002ec0dd01668ce510671341c4a9753b265806a.

@k8s-bot
Copy link

k8s-bot commented Jan 5, 2016

GCE e2e test build/test passed for commit 1987f51.

@@ -0,0 +1,5 @@
FROM alpine
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this reference a specific version? Otherwise it seems like it won't be possible to re-create an identical image (e.g. from a release tag).

Copy link
Member

Choose a reason for hiding this comment

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

3.3 is latest, maybe use that one?

@k8s-github-robot
Copy link

PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. 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.

8 participants