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

vSphere support for binary deploys #1747

Merged
merged 11 commits into from
Oct 29, 2014

Conversation

pietern
Copy link

@pietern pietern commented Oct 11, 2014

Aside form working with binary deploys, this PR changes the following two items (vSphere only):

  • The reactor on the salt master is configured to run state.highstate on every node whenever any minion starts. This solves a timing issue introduced with the binary deploys; the master can be done with provisioning much sooner than the minions, meaning the apiserver configuration won't be seeded with the right list of minion IPs. This is solved by running state.highstate on minion starts, which causes the apiserver configuration to be rewritten and the daemon to be cycled every time a new minion starts.
  • To verify the minions have started from kube-up, the script now polls http://<ip>:10250/healthz. The check that is executed from the GCE scripts depends the minions having completed provisioning before the master becomes available. This allows for the case where docker is not yet provisioned, while the master is already responding to requests, which in turn can cause the sanity check to fail.

cc #1732

@pietern
Copy link
Author

pietern commented Oct 11, 2014

The new getting started guide assumes that a binary release is available that contains the updated cluster scripts. When this PR is merged, there will be a short window where the current binary release will not contains those scripts. Are you planning to release these binary release very often, or should I include a note in the getting started guide?

@jbeda jbeda self-assigned this Oct 11, 2014
@jbeda
Copy link
Contributor

jbeda commented Oct 11, 2014

@pietern I'm updating the binary release by hand right now. Over the next week we'll get both nightly builds published and official releases.

I'll cut and push a new build after this goes in.

@@ -0,0 +1,9 @@
# This runs highstate on the ALL nodes.
#
# Used from the vSphere provider. The IP addresses of the minons are passed to
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd take off the vSphere specific comment here and instead just say that this is necessary for any cluster set up where the minion addresses are passed on the command line to the apiserver.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@jbeda
Copy link
Contributor

jbeda commented Oct 11, 2014

This looks awesome! Just some minor nits, really.

FYI -- I filed #1749 to try and remove some of the duplicate boilerplate across provider scripts.

@pietern
Copy link
Author

pietern commented Oct 11, 2014

Thanks for the thorough review, I'll address the comments later this weekend.

@pietern pietern force-pushed the vsphere-binary-deploy branch from 5f49a53 to 286862a Compare October 12, 2014 23:52
@pietern
Copy link
Author

pietern commented Oct 12, 2014

This new set of commits should address all comments.

@jbeda
Copy link
Contributor

jbeda commented Oct 14, 2014

Hi Peter -- I'll review this first thing today after I make it through my inbox. I was out all day yesterday unfortunately.

@jbeda
Copy link
Contributor

jbeda commented Oct 14, 2014

@pietern I'm ready to get this in if you can do a final rebase. Looks like things have drifted a bit. Thanks!

This was referenced Oct 14, 2014
@pietern
Copy link
Author

pietern commented Oct 16, 2014

I'm out this week, back on Monday. I'll rename and repush then.

Sent from my iPhone

On Oct 14, 2014, at 07:50, Joe Beda notifications@github.com wrote:

@pietern I'm ready to get this in if you can do a final rebase. Looks like things have drifted a bit. Thanks!


Reply to this email directly or view it on GitHub.

@pietern
Copy link
Author

pietern commented Oct 28, 2014

Don't know how Travis is broken, this change doesn't affect any go code.

@jbeda
Copy link
Contributor

jbeda commented Oct 28, 2014

Thanks for updating. I'm at an airport now so it is hard to do anything, but I'll test this out to make sure it doesn't break GCE or Vagrant tomorrow and then merge. Is it ready to go from your end?

@pietern
Copy link
Author

pietern commented Oct 29, 2014

Found an issue with kube-push, please stand by.

@pietern
Copy link
Author

pietern commented Oct 29, 2014

Fixing #1783 for vSphere.

@jbeda
Copy link
Contributor

jbeda commented Oct 29, 2014

@pietern I just cut v0.4.2 as we needed it for other reasons. Once this gets in I'll cut v0.4.3.

Pieter Noordhuis added 9 commits October 29, 2014 11:30
@pietern pietern force-pushed the vsphere-binary-deploy branch from 024c2bf to 5b22dd7 Compare October 29, 2014 18:31
@pietern
Copy link
Author

pietern commented Oct 29, 2014

Thanks @jbeda!

Rebased against master to get #2061 in here.

Is 0.4 tracking master in any way, or do you need a separate PR to cut another 0.4 release?

@pietern
Copy link
Author

pietern commented Oct 29, 2014

@jbeda FYI, I added 918c8e2 to have kube-push succeed without errors.

This change is good to go.

@jbeda
Copy link
Contributor

jbeda commented Oct 29, 2014

I'll test and look to merge now.

As for the release -- I'm cherry-picking stuff into the release-0.4 branch and then tagging/releasing from that.

@jbeda
Copy link
Contributor

jbeda commented Oct 29, 2014

Tested with GCE e2e and bringing vagrant up. Looking good so merging.

jbeda added a commit that referenced this pull request Oct 29, 2014
@jbeda jbeda merged commit 78df011 into kubernetes:master Oct 29, 2014
@jbeda
Copy link
Contributor

jbeda commented Oct 29, 2014

Thanks for seeing this through!! 👍

@pietern
Copy link
Author

pietern commented Oct 30, 2014

Thanks Joe!

@pietern pietern deleted the vsphere-binary-deploy branch October 30, 2014 03:46
@jessehu
Copy link

jessehu commented Nov 29, 2014

This patch works perfect as expected on my Kubernetes 0.5.4 binary deployment. Thanks a lot.

sebsoto pushed a commit to sebsoto/kubernetes that referenced this pull request Nov 14, 2023
[release-4.12] OCPBUGS-20113: UPSTREAM: <carry>: Do not allow nodes to set forbidden openshift labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants