Commit Graph

64 Commits

Author SHA1 Message Date
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
k8s-merge-robot
530001c1fd Merge pull request #26778 from gmarek/validate-cluster
Automatic merge from submit-queue

Validate-cluster finishes shortly after at most ALLOWED_NOTREADY_NODE…

Fixes #26691

cc @wojtek-t @lavalamp
2016-06-19 21:40:54 -07:00
Justin Santa Barbara
bab7a255b7 kube-up multizone: don't print scary warning
The node-count check gets confused when there are more nodes that we
launched, which is normal with KUBE_USE_EXISTING_MASTER.

This fix just suppresses the error message in that case.

Fix #23390
2016-06-17 13:00:50 -04:00
gmarek
3460fbac06 Validate-cluster finishes shortly after at most ALLOWED_NOTREADY_NODES nodes are not ready 2016-06-06 12:48:48 +02:00
Tim Hockin
7e0f66bd0e Add retries to validate-cluster
E2e shows occasional kubectl failures here, so add some retries.  We may want
to make this more general, but I think we should try it out in small scope
first.

Also clean up the retry loop so it doesn't process errors as successful runs
(discovered in testing).

Also simplify a bit of go template syntax.

Testing: I made kubectl randomly fail 50% of the time ($RANDOM%2 ==0) and
iterated until this gave me more helpful results.  Still not perfect, but
better.
2016-04-22 09:54:51 -07:00
Rodrigo Campos
902a04d637 validate-cluster.sh: Don't use ignored and deprecated option '--api-version'
When using this flag, this error is shown:

    Flag --api-version has been deprecated, flag is no longer respected and will be deleted in the next release

Stop using the flag in the validate-cluster.sh script and avoid the warning.
2016-03-17 12:49:21 -03:00
Joe Finney
9845639e14 Remove cluster/kube-env.sh. 2016-03-08 16:57:31 -08:00
gmarek
433e855aca Fix validate cluster 2016-02-16 11:34:57 +01:00
gmarek
918ddbe5f0 Small cleanup 2016-02-11 10:08:24 +01:00
gmarek
6aaabc6f46 Allow some NotReady nodes in 1000 node clusters 2016-02-01 12:40:40 +01:00
gmarek
9d1e4b153c Slightly change warning printed when not all nodes are ready in validate-cluster. 2016-01-21 15:55:36 +01:00
Daniel Smith
3ffcfb928a Merge pull request #18752 from miry/env-in-validate-cluster
AWS: Load cluster env during the validation
2016-01-12 10:39:19 -08:00
He Simei
abe7fc0e91 update validate-cluster.sh 2015-12-29 19:51:00 +08:00
gmarek
95f8593898 Update validate-cluster.sh 2015-12-18 12:04:54 +01:00
Michael Nikitochkin
2059a7c3fa AWS: Load cluster env during the validation
There is an issue when I specified all env in `cluster/env.sh`
And redefine `NUM_NODES`, than if it less than I have loop.
2015-12-16 10:26:11 +01:00
k8s-merge-robot
0c4f302e5e Merge pull request #17601 from eosrei/shell-var-MINION-to-NODE
Auto commit by PR queue bot
2015-11-26 05:02:44 -08:00
Aaron Levy
5c72696aad explicitly check "Ready" condition in validate-cluster 2015-11-25 11:53:32 -08:00
Brad Erickson
53172a5356 Minion->Node rename: NUM_NODES 2015-11-25 00:45:10 -08:00
Christian Stewart
fec326f35e
cluster/validate-cluster.sh: Allow for greater than NUM_MINIONS.
Fixes #15887. Print a warning when there are more nodes than expected.

Signed-off-by: Christian Stewart <christian@paral.in>
2015-10-20 18:27:23 -04:00
Brian Rosner
b1c418ea20
When calling kubectl.sh, allow error due to API server bouncing 2015-08-18 07:16:18 -06:00
hurf
e63d227bdf Use -o template to validate cluster
Instead of using human-oriented output, use -o template to
validate cluster in order to avoid error caused by column change.
2015-08-07 21:18:40 +08:00
Robert Bailey
8df33bc1a7 Register the kubelet on the master node with an apiserver. This option is
separated from the apiserver running locally on the master node so that it
can be optionally enabled or disabled as needed.

Also, fix the healthchecking configuration for the master components, which
was previously only working by coincidence:

If a kubelet doesn't register with a master, it never bothers to figure out
what its local address is. In which case it ends up constructing a URL like
http://:8080/healthz for the http probe. This happens to work on the master
because all of the pods are using host networking and explicitly binding to
127.0.0.1. Once the kubelet is registered with the master and it determines
the local node address, it tries to healthcheck on an address where the pod
isn't listening and the kubelet periodically restarts each master component
when the liveness probe fails.
2015-08-06 13:39:32 -07:00
Karl Isenberg
0229cb01fc Move sourcing of provider-specific util.sh into kube-util.sh
- kube-util.sh defines default implementations
- provider util.sh overrides the default implementations as desired
- default kube-util functions now print to stderr to avoid affecting
  captured output
2015-07-02 12:50:18 -07:00
Satnam Singh
a1c2641b53 Fix node numbers for node list 2015-06-04 12:09:58 +01:00
Wojciech Tyczynski
44360e401b Increase timeout for verifying clusters 2015-05-29 09:44:14 +02:00
Wojciech Tyczynski
e25a34c8a1 Extend logging for cluster validation 2015-05-27 12:05:26 +02:00
Fabio Yeon
89b3ffa5b7 Check node status as part of validate-cluster.sh. 2015-05-07 16:13:07 -07:00
Eric Paris
6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Robert Bailey
14c2fb11e1 Don't exit abruptly if there aren't yet any minions right after
the cluster is created.
2015-05-01 13:51:59 -07:00
Robert Bailey
a7e62d17ff Make validate cluster more reliable (it should retry checking the
server if a subshell returns a non-zero exit status).
2015-04-28 14:57:14 -07:00
fabioy
acb64e66e8 Fix validate-cluster.sh to work on Mac. 2015-04-21 17:51:35 -07:00
Robert Bailey
8745ebce15 Revert "Rollback "validate-cluster.sh" to previous version." 2015-04-21 13:30:16 -07:00
Fabio Yeon
12db42e4f0 Rollback "validate-cluster.sh" to previous version. 2015-04-21 12:09:34 -07:00
Fabio Yeon
81ef0198f4 Fixed "componentstatuses" API object JSON descriptions. 2015-04-20 17:28:13 -07:00
Fabio Yeon
c6ef2ddf8a Fix "validate-cluster.sh" to use "kubectl get componentstatus". 2015-04-17 11:59:53 -07:00
nikhiljindal
f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Eric Tune
ecf39a6d10 Merge pull request #5414 from chuckbutler/juju-cluster-up
Adds JUJU to the Kubernetes Provider listing
2015-04-02 09:27:54 -07:00
Brendan Burns
cf72cf098a Disable validation on AWS where it doesn't work.
Also add an advanced route for the master which I forgot previously.
2015-03-24 21:08:04 -07:00
Charles Butler
5acce1b245 Implement the feedback from filbranden
- Changed check_for_ppa to be parameterized
- Added bash strictmode
- refactored the package_status method to consume variables and be a bit
  nicer to future re-use of the method.
- Cut out extra echo -n statements in favor of tr -d or native awk
- Refactored branching logic paths to leverage double brackets
- normalized local variable annotation
- Updated globals to be all CAPS
- remainder of filbrandens feedback in validate-cluster.sh
2015-03-16 18:35:33 -04:00
Charles Butler
ea0978f4f2 Adds JUJU to the Kubernetes Provider listing
This feature adds Juju provisioning to the kube-up script. It currently
parses out the pre-requisits on debian/ubuntu based systems and installs
them if they are missing.

From there we followed the integration path that was found in the
libvirt-coreos path, implementing the methods found in the boilerplate
and calling juju service calls. There are a few "arbitrary sleeps" in
the code to allow the cloud provider to settle and properly deploy.
These are work-around cases from the script executing faster than juju
was able to communicate from the state server to subsequent nodes. I
left comments inline at these points.

To exercise this:

    export KUBERNETES_PROVIDER=juju
    cluster/kube-up.sh

It will spin up a ref arch with 1 Kubernetes Master, 2 minions, and run
the cluster validation checks against the deployment. Bridging the gap
between the juju specific bits and the upstream recommended guides for
getting started with Juju.

To note, if you do not have a "current environment" set in Juju, it will
spin up the quickstart integration wizard in interactive mode, allowing
you to configure juju, and add the proper provider/use it. Otherwise it
assumes you're in the provider you wish to use, and will deploy there.
2015-03-12 19:34:03 -04:00
Lénaïc Huard
7ce6f22687 Make kube-up wait for the libvirt-coreos cluster to be ready
so that validate-cluster passes.
2015-03-02 22:58:11 +01:00
Lénaïc Huard
ce7a993269 libvirt-coreos cluster provider
libvirt-coreos is a cluster provider for kubernetes that starts local VMs and
runs kubernetes on it.
Its goal is to provide a multi-machines environment to develop and test kubernetes.

The purpose is mostly the same as the vagrant provider but with a big focus on
efficiency. The vagrant cluster takes a long time to boot and consumes a huge
amount of disk space. libvirt-coreos aims at being cheaper. As a consequence,
libvirt-coreos allows to start bigger clusters with more minions than vagrant.
2015-02-19 12:44:35 +01:00
Satnam Singh
a57d4c593c Report the found minions during validation of cluster 2015-02-09 10:19:04 -08:00
Satnam Singh
5691b535eb Report the found minions during validation of cluster 2015-02-04 15:58:04 -08:00
Satnam Singh
3765e83110 Fix Kubelet check in GCE validate-cluster 2015-01-15 12:55:21 -08:00
Robert Bailey
df03cc3e0c Remove unnecessary loop. 2015-01-13 16:03:30 -08:00
Richard Larocque
9ac9c69534 Replace kubecfg with kubectl in setup scripts
Replaces two instances of kubecfg with kubectl in cluster startup and
validation scripts.
2014-12-19 16:10:21 -08:00
Joe Beda
428aeacf6d Rework vagrant cluster set up.
* Have a single config file that mirrors other cluster providers
* Warn users not to use 'vagrant up' directly
* Allow 'extra' parameters to the docker daemon.  Fixes #2685
* Renumbers things so that they are more sane.  Master/minions are 10.245.1.x, container subnets are 10.246.x.1/24, portal is 10.247.0.0/16
2014-12-17 13:23:39 -08:00
deads2k
81e01e5099 validate-cluster is broken 2014-12-15 14:07:38 -05:00
Satnam Singh
1ce71d1e33 Make multiple attempts to sanity check (GCE) and validate (ALL) cluster 2014-12-12 13:53:57 -08:00