-
Notifications
You must be signed in to change notification settings - Fork 40k
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
docker: add cluster bootstrap and doc #1716
Conversation
32676c0
to
6c04a9b
Compare
closer and closer to inception. |
@bketelsen I tried to start a kubelet in a pod with
So went for starting the kubelet as a bare docker container, so it doesn't try to manage itself. |
I was following along last night as you live blogged on IRC. 👍 |
I'm happy to review but I probably won't be able to get to this until Tuesday. I'm going to be in promo committee all day Monday. |
local sub_context_dir="${build_context_base}-$b" | ||
mkdir -p "${sub_context_dir}" | ||
cp -R build/run-images/$b/* "${sub_context_dir}/" | ||
cp -a build/run-images/$b/* "${sub_context_dir}/" |
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.
What extended attributes do we need to copy here?
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 think I needed -p
, will double check and add a comment.
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.
Removed.
Thanks for your comments @jbeda, will ping you once I have addressed them. |
b0aaff7
to
905f5ba
Compare
@@ -109,7 +110,7 @@ function kube::build::verify_prereqs() { | |||
return 1 | |||
fi | |||
|
|||
if kube::build::is_osx; then | |||
if kube::build::is_boot2docker; then |
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.
should we get rid of is_osx?
PTAL |
``` | ||
boot2docker up | ||
$(boot2docker shellinit) | ||
export DOCKER_HOST=$(boot2docker ip 2>/dev/null) |
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.
Should this be DOCKER_HOST or DOCKER_HOST_IP?
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.
Done
Looks reasonable. Ideally I'd love to see this run off of a binary release instead of requiring users to build it. I'd also love to see it fit the pattern for other providers. Ideally:
I guess we can clean this up later as we figure out how to distribute docker images in a sane way. Feel free to self merge when you are happy. |
18e1c6b
to
e5e8b7d
Compare
Proppy -- can you squash before we merge? There are a lot of commits here. |
@jbeda sure, I was planning to unify with |
@proppy SG |
e5e8b7d
to
966c3da
Compare
@jbeda rebased, looking at the cluster/kube-up I think this could definitly be a separate PR. I will do more final testing before self merging. |
SGTM |
9f2817e
to
fc54dd2
Compare
@jbeda PTAL added |
LGTM -- you ready for me to merge? |
Yes, do you want me to squash? |
docker: add cluster bootstrap and doc
OCPBUGS-19452: UPSTREAM: 119317: change rolling update logic to exclude sunsetting nodes
This bootstrap a local kubernetes cluster by running the
kubelet
as a baredocker
container, and passing it a pod manifest with the cluster components.Changes:
docker
locallybuild/
to allow boot2docker on all platformkubernetes-bootstrap
imageYou should be able to try this at home with: