Commit Graph

651 Commits

Author SHA1 Message Date
Prashanth Balasubramanian
6fb36dc0bc Teach kubectl to avoid local/util, since its gone. 2015-02-18 12:43:20 -08:00
Huamin Chen
3454e4e189 remove reference to local from KUBERNETES_PROVIDER comment
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-02-18 11:45:56 -05:00
Xingyu Chen
aeeebe2126 finish the multinode ubuntu k8s setup script and guide ,tested ok 2015-02-18 19:09:06 +08:00
Brendan Burns
eee9804e97 Strip whitespace that OS X inserts on wc calls. 2015-02-17 17:19:33 -08:00
Zach Loafman
fe5b257cfc Merge pull request #4427 from satnam6502/e2e_cluster_logging
Enabled Elasticsearch cluster level logging for e2e test clusters
2015-02-17 14:32:26 -08:00
Tim Hockin
003c0986b4 Merge pull request #4478 from thommay/rackspace_cloud_base
Basic Rackspace cloud support
2015-02-17 13:41:31 -08:00
Alex Robinson
3043ae9144 Merge pull request #4492 from jlowdermilk/e2e
Cleanup resources after services/guestbook e2e tests.
2015-02-17 12:04:46 -08:00
CJ Cullen
47622092fd Merge pull request #4164 from tkulczynski/mig
Use Managed Instance Group for managing Nodes in GCE
2015-02-17 12:01:48 -08:00
Tomek Kulczynski
bcadad2e2e Use Managed Instance Group instead of manually creating Nodes in GCE 2015-02-17 20:33:31 +01:00
Jeff Lowdermilk
8ad671b01e Cleanup resources after shell tests exit 2015-02-17 11:27:54 -08:00
Zach Loafman
b339882d9e Merge pull request #4477 from chrishiestand/gcloud-preview-check-stderr
bugfix in util.sh, fix silent hang
2015-02-17 11:15:55 -08:00
Nikhil Jindal
b5f29b2fc7 Merge pull request #4479 from ed0t/patch-2
Update kube-controller-manager
2015-02-17 11:12:58 -08:00
Edoardo Tosca
4ec5bb04fd Update kube-controller-manager
found typo. too many double quotes.
2015-02-17 11:09:22 +00:00
Thom May
8357e1521a Basic Rackspace cloud support
This enables all but Load Balancer support for the Rackspace public
cloud platform.
2015-02-17 10:59:40 +00:00
Chris Hiestand
38aeb72bf7 bugfix in util.sh, fix silent hang
`gcloud preview --help >/dev/null 2>&1` would silently hang if the
 preview component was not installed. Instead, let stderr flow normally.

to reproduce the bug and verify the fix:
1. gcloud components remove preview #answer yes
2. gcloud preview --help >/dev/null 2>&1 #note the hang, ^C
3A. gcloud preview --help >/dev/null #now prompts you to install preview component

the fix also works when run via "kube-up.sh"

alternatively: `gcloud -q preview --help >/dev/null 2>&1` will silently install
 the missing preview component
2015-02-17 01:35:24 -08:00
derekwaynecarr
a0cb252d40 Fix vagrant cluster/kube-up 2015-02-16 18:34:50 -05:00
Jeff Lowdermilk
aa32f1b2ce Retry #4337: Make gce kubeconfig context include project 2015-02-13 13:31:50 -08:00
Satnam Singh
6625136d80 Enabled Elasticsearch cluster level logging for e2e test clusters 2015-02-13 11:15:47 -08:00
Jeff Lowdermilk
d528439ee5 Unbreak cluster/validate-cluster.sh 2015-02-13 10:48:32 -08:00
Eric Tune
7e6015141d Merge pull request #4401 from jlowdermilk/local-kubeconfig
Make local clusters work painlessly with kubeconfig
2015-02-13 09:11:36 -08:00
Zach Loafman
e2ec52bfdf Revert "Make gce's kubeconfig context include the gce project" 2015-02-12 17:01:06 -08:00
Jeff Lowdermilk
61cc821506 Make local clusters work painlessly with kubeconfig 2015-02-12 16:30:41 -08:00
Satnam Singh
edea91e519 Merge pull request #4337 from jlowdermilk/kubeconfig
Make gce's kubeconfig context include the gce project
2015-02-12 15:22:26 -08:00
Eric Tune
dd8f335380 Merge pull request #4376 from dchen1107/podstatus
Fix podstatus issue caused by docker's resource temporarily unavailable issue
2015-02-12 13:16:09 -08:00
Eric Tune
9e015fd216 Handle unset dollar-at.
When no args are passed to a script, "$@" is unset,
which causes a shell error in "nounset" mode.

This change passes an empty string to kubectl in that case
so it can print help.
2015-02-12 11:56:58 -08:00
Dawn Chen
23b8b5ea6a Configure docker with larger open files. 2015-02-11 23:52:58 -08:00
Jeff Lowdermilk
41547a1152 Fix kube-up bug introduced by #4353 2015-02-11 17:44:28 -08:00
Eric Tune
59a06b5073 Don't set --etcd_servers argument for kubelet.
This is ignored by all recent kubelet versions when api_servers is
set.  And it is set in this salt file.
2015-02-11 15:53:26 -08:00
roberthbailey
0194ed8575 Merge pull request #4353 from erictune/fix_get_password
Don't fail get-password when no current-context.
2015-02-11 15:25:24 -08:00
Eric Tune
c348b30f62 Update util.sh 2015-02-11 14:32:41 -08:00
Eric Tune
549504dfff Don't fail get-password when no current-context. 2015-02-11 14:25:15 -08:00
Rajat Chopra
56462c020a democratize restart-apiserver method across clouds 2015-02-11 13:44:43 -08:00
Justin Santa Barbara
cf470f7da4 Fixes to get AWS tests to run
They don't pass (yet), but they at least run!
2015-02-11 15:58:33 -05:00
Jeff Lowdermilk
3da5d27ab2 Make gce's kubeconfig context include the gce project
Change the .kubeconfig context that gce kube-up creates to project
+ instance prefix, so you can spin up clusters with the same name
in different compute projects without overwriting .kubeconfig.
2015-02-11 12:07:59 -08:00
Brian Grant
20f7cbb87b Merge pull request #4291 from jlowdermilk/delete-kubecfg
Remove kubecfg, cleanup a few stray references.
2015-02-11 11:18:59 -08:00
Ryan Fowler
289e11ae6f In Vagrant, copy $DNS_REPLICAS to /master-start.sh
DNS doesn't start without `DNS_REPLICAS`
2015-02-11 09:11:37 -06:00
Jeff Lowdermilk
197059b65d Remove kubecfg, cleanup a few stray references. 2015-02-10 16:43:12 -08:00
Zach Loafman
6b3bb763f0 Merge pull request #4287 from derekwaynecarr/docker_group_gone
Docker 1.4.1 on Fedora no longer provisions a docker group
2015-02-10 14:28:02 -08:00
Zach Loafman
2fb4bd4724 Merge pull request #4286 from brendandburns/etcd
Add restart to the kube apiserver.
2015-02-10 12:09:34 -08:00
Clayton Coleman
dce4cd8b1d Merge pull request #3613 from derekwaynecarr/namespace_as_kind
Namespace as kind
2015-02-10 14:49:58 -05:00
roberthbailey
1caf529102 Merge pull request #4273 from brendandburns/net
Add a simple driver to test cluster networking.
2015-02-10 10:07:32 -08:00
derekwaynecarr
46eb657722 docker does not provision a docker group anymore, so do not add vagrant user to it 2015-02-10 11:15:22 -05:00
Zach Loafman
2f231e0a2a Merge pull request #4268 from rajatchopra/master
Fix vagrant networking round 2
2015-02-10 07:39:48 -08:00
Brendan Burns
c50e650d8b Add restart to the kube apiserver. 2015-02-10 07:35:00 -08:00
derekwaynecarr
0bd0e12bbc Add support for Namespace as Kind
Add example for using namespaces
2015-02-10 09:50:50 -05:00
Brendan Burns
abb0b24a98 Add a simple driver to test cluster networking. 2015-02-09 20:55:51 -08:00
Rajat Chopra
1d12cad456 Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
fix e2e services for vagrant
Kubelet should wait on SDN to finish
Do not require docker on master for default clouds
2015-02-09 14:37:27 -08:00
Ravi Sankar Penta
3a5ef05f64 Make periodic sync nodes from cloud provider optional.
--sync_nodes=false gives user flexibility to add/remove nodes in the
cluster using REST api/kubectl cli and at the same time can use
cloud provider for other resources like persistent disks, etc.
2015-02-09 13:42:44 -08:00
Zach Loafman
6b8c332cd3 Revert "Fix vagrant networking" 2015-02-09 13:40:11 -08:00
Clayton Coleman
d6069aa13a Merge pull request #4204 from rajatchopra/master
Fix vagrant networking
2015-02-09 14:52:13 -05:00
Rajat Chopra
9f10108758 Kubelet should wait on SDN to finish 2015-02-09 11:22:14 -08:00
Satnam Singh
a57d4c593c Report the found minions during validation of cluster 2015-02-09 10:19:04 -08:00
Rajat Chopra
db493dc6ce stick to num_minions=1 for the default 2015-02-09 09:59:31 -08:00
Brendan Burns
a86f43bf53 rev the version for get-kube.sh 2015-02-06 22:14:58 -08:00
Rajat Chopra
a9d8713db4 fix e2e services for vagrant 2015-02-06 18:34:27 -08:00
Brendan Burns
49a9f8b512 Fix kube-up.sh for OS X. 2015-02-06 16:35:39 -08:00
Zach Loafman
c5fcd9d568 Merge pull request #4205 from jlowdermilk/gce-kube-up
Use kubectl config -o template to get password in gce kube-up
2015-02-05 18:43:32 -08:00
Rajat Chopra
b61ea1bbf1 Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency. 2015-02-05 17:41:27 -08:00
Tim Hockin
7c5625b2dd Merge pull request #4120 from justinsb/fix_4118
Fix enable_cluster_dns test
2015-02-05 16:28:46 -08:00
Jeff Lowdermilk
122124f9e1 Merge pull request #4175 from wojtek-t/kubectl_silent
kubectl doesn't fail silently with no k8s master
2015-02-05 14:58:24 -08:00
Jeff Lowdermilk
8f6d9c1039 Use config output formatting to get password in gce kube-up
Gets rid of e2e dependency on pyyaml.
2015-02-05 14:54:45 -08:00
Wojciech Tyczynski
9d9bca9958 kubectl doesn't fail silently with no k8s master 2015-02-05 19:37:20 +01:00
Zach Loafman
0b456e40bf Fix jenkins/hack/e2e.sh, log errors better 2015-02-05 09:16:11 -08:00
Zach Loafman
2f33c06c21 Remove cluster/test-network.sh
To fix this, it would be an alias for:

  hack/ginkgo-e2e.sh -t TestNetwork

... which may not work on binary distributions, because it's relying
on test assets, so it probably shouldn't live in cluster/ ...
2015-02-05 08:14:39 -08:00
Filipe Brandenburger
7bb62cbfb3 Make e2e shell tests work standalone
Simply incorporate some of the boilerplate from hack/e2e.go into the
scripts in hack/e2e-suite.

Use environment variables with default values to allow overrides in
kubectl command line and to use a versioned package root.

Tested:
- Ran `go run hack/e2e.go -test` on a test cluster.
- Ran the test cases individually.
- Ran hack/e2e-suite/goe2e.sh -t Pods to confirm it takes arguments.
- Also fixed cluster/test-network.sh (which should be more and more irrelevant.)
2015-02-05 00:22:16 -08:00
Justin Santa Barbara
e72d3392cc Remove duplicate --master arg from kube-scheduler 2015-02-04 19:05:05 -05:00
Satnam Singh
5691b535eb Report the found minions during validation of cluster 2015-02-04 15:58:04 -08:00
Justin Santa Barbara
7790435915 Fix for bool vs string comparisons in salt templates
Fixes #4118
2015-02-04 14:09:10 -05:00
Zach Loafman
ffe6149d51 Merge pull request #4097 from jlowdermilk/fix-jenkins-e2e
Fix get-password for gce
2015-02-03 20:09:48 -08:00
Jeff Lowdermilk
06aa8bd164 Fixes get-password for gce 2015-02-03 19:38:24 -08:00
Zach Loafman
2f546ce649 Parameterize ENABLE_{NODE,CLUSTER}_{LOGGING,MONITORING} and LOGGING_DESTINATION
In config-{default,test.sh}. This will make it possible for e.g.
Jenkins to override LOGGING_DESTINATION. Also reorder the parameters
so they're in the same order across files for easier scanning.
2015-02-03 17:23:17 -08:00
Brendan Burns
baba7d6004 Merge pull request #4034 from jlowdermilk/kube-up
Use kubectl to manage config for gce clusters
2015-02-03 14:50:38 -08:00
Alex Robinson
793677e8e2 Merge pull request #4062 from dchen1107/image
Upgrade to container-vm-v20150129 image
2015-02-03 10:50:28 -08:00
Zach Loafman
ae27f29c56 Reinstate cluster logging URLs to the end of kube-up.sh
Adds labels to the services, waits for them to be created (which
should be instant, but just in case), query the forwarding rules like
as we did before.

Fixes #3893
2015-02-03 08:27:02 -08:00
Dawn Chen
f919b3e9c6 Upgrade to container-vm-v20150129 image 2015-02-02 16:57:43 -08:00
Jeff Lowdermilk
e0ec192869 Use kubeconfig to manage config for gce/e2e clusters 2015-02-02 15:02:25 -08:00
Justin SB
9a29d9f92a Etcd data dir must be empty
Otherwise we get the error "unknown wal version in data dir /var/etcd"

When this is the homedir for etcd, e.g. .bashrc confuses it
2015-02-02 08:09:32 -08:00
derekwaynecarr
4dd50a18c3 Fix vagrant regression, add flag to easily enable v1beta3 2015-01-30 12:16:24 -05:00
Satnam Singh
db416c4f39 Merge pull request #3970 from justinsb/fix_aws
aws cluster/kube-up.sh fixes
2015-01-30 07:56:01 -08:00
derekwaynecarr
3cb015c09c Missing boilerplate 2015-01-30 00:22:17 -05:00
derekwaynecarr
aef084bf9d Various vagrant fixes, etcd 2.0 2015-01-30 00:15:34 -05:00
Satnam Singh
e619f303d7 Merge pull request #3960 from brendandburns/shell_sucks
Update etcd to version 2.0.0
2015-01-29 18:46:18 -08:00
Justin Santa Barbara
d8791acdba Pause between launching master and minions
Salt does not retry if master is not ready, apparently
2015-01-29 21:08:27 -05:00
Brendan Burns
a20ca78fb3 Update etcd to version 2.0.0 2015-01-29 17:53:53 -08:00
Justin Santa Barbara
eb1d9d0a46 Add missing = to --machines arg 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
5d864b006a Add aws to list of clouds that use tokens 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
51225c76da Apply jbeda's conditional tar fix 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
3fb61912aa Quote args in /srv/salt-overlay/pillar, add new vars 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
bb406ce87f Allow # of minions to be configured 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
8058632f5f Move tag creation & retry logic to a function 2015-01-29 20:35:36 -05:00
Justin Santa Barbara
2f195578cc Create /srv/kuberentes/known_tokens.csv on AWS 2015-01-29 20:35:35 -05:00
Justin Santa Barbara
d20188c6d4 Create shared secret in AWS scripts 2015-01-29 20:35:35 -05:00
Justin Santa Barbara
bb0431dce8 Pass cloud & cloud_config to kube-apiserver for AWS 2015-01-29 20:35:35 -05:00
Tim Hockin
a1b51d9165 Maybe make services e2e test more resilient to GCE errors 2015-01-29 15:50:46 -08:00
Tim Hockin
35d59e6219 Merge pull request #3851 from satnam6502/bigcluster
Generate IP addresses for minions of large GCE clusters
2015-01-29 14:34:13 -08:00
Tim Hockin
d01ea11a6e Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08:00
Clayton Coleman
053c2b2100 Fix grafana and heapster RC names 2015-01-29 16:26:39 -05:00
Brendan Burns
ca6576d060 Add a simple script for running go e2e tests against existing clusters.
Also add an even simpler script for testing the network setup.
2015-01-28 16:39:21 -08:00
Brendan Burns
bd802c41ff Merge pull request #3863 from roberthbailey/get-kube
Add GKE as a provider to get-kube.sh.
2015-01-28 10:15:04 -08:00
Robert Bailey
83c8cda243 Add GKE as a provider to get-kube.sh.
Bump the default version from 0.7.2 to 0.8.1.
2015-01-27 22:08:22 -08:00