This repository was archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 680
weave-kube smoke test #2569
Merged
Merged
weave-kube smoke test #2569
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5cd1500 to
8ee1fe0
Compare
d0fb996 to
f69a292
Compare
Bump template version too Note that we disable kubelet in the image, so you have to start it if you want to use it.
f69a292 to
6dde5e5
Compare
brb
reviewed
Nov 4, 2016
| @@ -0,0 +1,66 @@ | |||
| #! /bin/bash | |||
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| run_on $HOST2 "sudo systemctl start kubelet && sudo kubeadm join --token=$TOKEN $HOST1IP" | ||
| run_on $HOST3 "sudo systemctl start kubelet && sudo kubeadm join --token=$TOKEN $HOST1IP" | ||
|
|
||
| [ -n "$COVERAGE" ] && COVERAGE_ARGS="\\n env:\\n - name: EXTRA_ARGS\\n value: \"-test.coverprofile=/home/weave/cover.prof --\"" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| tear_down_kubeadm() { | ||
| for host in $HOSTS; do | ||
| # If we don't stop kubelet, it will restart all the containers we're trying to kill | ||
| run_on $host "sudo systemctl stop kubelet" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
|
||
| sleep 5 | ||
|
|
||
| wait_for_connections() { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
|
||
| wait_for_pods() { | ||
| for i in $(seq 1 30); do | ||
| if run_on $HOST1 "kubectl get pods | grep 'hello.*Running'" ; then |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This builds on #2551 and #2563, builds another new image with Kubernetes packages pre-loaded and adds one smoke-test script to try it out.
Currently the only thing the test does is checks to see whether 3 peers form 6 established connections.
If something should go wrong mid-test it will likely cause havoc during the rest of the run, because kubelet will be restarting things. I considered adding the kubeadm tear-down steps (which are here in
840_weave_kube_3_test.sh) toconfig.shbut it seemed overkill.