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

azure: azkube v0.0.5 + deploy kube-system + hack/ script for hyperkube #23344

Merged
merged 2 commits into from
May 22, 2016

Conversation

colemickens
Copy link
Contributor

@colemickens colemickens commented Mar 22, 2016

Update the Azure bring up.

Also added a script hack/dev-push-hyperkube.sh for fast iteration on changes. One can deploy a cluster with a given hyperkube image reference and then use this script to rapidly iterate on changes. Testing changes just requires pulling the updated hyperkube image on the boxes and then cycling kubelet/docker or restarting the node.


This change is Reviewable

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 22, 2016
@eparis
Copy link
Contributor

eparis commented Mar 22, 2016

I'm dumping this review back into the pool. Hopefully someone who knows how other platforms are doing cluster bringup like this will be a better reviewer...

@eparis eparis removed their assignment Mar 22, 2016
@@ -34,6 +34,9 @@ KUBE_CONFIG_FILE="${KUBE_CONFIG_FILE:-"${DIR}/config-default.sh"}"
source "${KUBE_CONFIG_FILE}"
source "${KUBE_ROOT}/cluster/common.sh"

AZKUBE_VERSION="v0.0.4"
REGISTER_MASTER_KUBELET="true"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is REGISTER_MASTER_KUBELET ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This value is used by validate-cluster.sh to check for the number of nodes reported. Relates to whether or not the master kubelet is brought up with --register-node={true,false}.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, understand, I only did git grep REGISTER_MASTER_KUBELET -- hack. Every single other user is in cluster.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Just to clarify -- this usage is in cluster/ as well. The hack/ script isn't used in the mainline for the cluster bring-up. It's just something I'm using while iterating on a new cloudprovider plugin and thought other hyperkube-users might use as well.)

@colemickens
Copy link
Contributor Author

CC: @davidopp

@spxtr spxtr assigned davidopp and unassigned spxtr Mar 23, 2016
@davidopp
Copy link
Member

@mikedanese can you review this?

@davidopp davidopp assigned mikedanese and unassigned davidopp Mar 30, 2016
@davidopp
Copy link
Member

Actually nevermind, this is pretty quick to review.

@davidopp davidopp assigned davidopp and unassigned mikedanese Mar 30, 2016
kube::build::run_build_command hack/build-go.sh cmd/hyperkube

REGISTRY="${KUBE_DOCKER_REGISTRY}/${KUBE_DOCKER_OWNER}" \
VERSION="latest" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be $KUBE_DOCKER_VERSION rather than hard coded to "latest". Will fix this asap.


# This script will build and push the hyperkube image.
# This is useful for rapidly testing changes in a cluster that is
# powered by hyperkube. You can configure the cluster to use a
Copy link
Member

Choose a reason for hiding this comment

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

Can you add more details to the comment starting at "You can configure"? For example

  • how do you configure the cluster to use a hyperkube tag?
  • what does "pulling the tag on the nodes" mean? was this an abbreviation for "using 'docker pull' to pull the tagged hyperkube image you built onto each node" ? If so, please write out the more complete wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidopp I've already updated the PR for the Azure docs to speak to "AZURE_HYPERKUBE_SPEC" which is how someone can use a specific hyperkube image for the cluster. Given that, I think the comment should be adjusted to something like:

"This script will build the hyperkube image and then push to to the repository referred to by KUBE_DOCKER_REGISTRY and KUBE_DOCKER_OWNER, and tagged with KUBE_DOCKER_VERSION."

The remainder of the comment is specific to Azure (or any other cluster that is bootstrapped with hyperkube).

That sound okay?

Copy link
Member

Choose a reason for hiding this comment

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

Sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, it's updated and rebased.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot googlebot added cla: no and removed cla: yes labels Apr 4, 2016
@colemickens colemickens force-pushed the azure-cluster branch 2 times, most recently from fa0c487 to 348bb2d Compare April 4, 2016 22:46
@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 4, 2016
@colemickens colemickens changed the title azure: azkube v0.0.4 + deploy kube-system + hack/ script for hyperkube azure: azkube v0.0.5 + deploy kube-system + hack/ script for hyperkube Apr 4, 2016
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 2, 2016
@k8s-github-robot k8s-github-robot assigned ixdy and davidopp and unassigned davidopp and ixdy May 6, 2016
@davidopp
Copy link
Member

ping @colemickens

@davidopp
Copy link
Member

ping @colemickens -- if you want this in 1.3, it needs to be fixed by Monday

@googlebot
Copy link

CLAs look good, thanks!

@colemickens
Copy link
Contributor Author

Rebased and pushed.

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 21, 2016
@davidopp davidopp added ok-to-merge release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels May 22, 2016
@davidopp
Copy link
Member

LGTM

@davidopp davidopp added this to the v1.3 milestone May 22, 2016
@davidopp davidopp added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 22, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented May 22, 2016

GCE e2e build/test passed for commit 579d179.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit c1c8537 into kubernetes:master May 22, 2016
@colemickens colemickens deleted the azure-cluster branch July 15, 2016 10:13
@colemickens colemickens restored the azure-cluster branch July 15, 2016 10:13
@colemickens colemickens deleted the azure-cluster branch July 27, 2016 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

None yet

9 participants