Commit Graph

35 Commits (553f9f822b584590ba3ce5819a774e1efd9ef7d1)

Author SHA1 Message Date
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
Zach Loafman 6a0fab3d34 Fix the fix for GKE kube-down
Fixes issue in #7565
2015-04-30 10:23:21 -07:00
Jeff Lowdermilk 996168dced fix kube-down for provider gke 2015-04-30 09:22:17 -07:00
Robert Bailey 6951bb0bd5 Fix the restart-apiserver command for GCE/GKE. 2015-04-22 15:21:13 -07:00
Robert Bailey 4346c6ecae Swallow the output from the test ssh connections so that it
doesn't interfere with string comparison.
2015-04-22 14:19:15 -07:00
Zach Loafman 0e3e502d52 Fix unbound variable after #7146 2015-04-22 10:19:53 -07:00
Zach Loafman 42e1710ccf Fix build after #7146 2015-04-22 10:11:19 -07:00
Zach Loafman c9988db0ee Merge pull request #7146 from brendandburns/get-k8s
Extend the get-cluster.sh script to use sudo if necessary.
2015-04-22 09:58:07 -07:00
Brendan Burns 42121d1809 Extend the get-cluster.sh script to use sudo if necessary. 2015-04-22 09:52:44 -07:00
Brendan Burns 78dabbdb7f Fix the ssh-to-node to actually fail on failures. 2015-04-21 15:27:38 -07:00
Brendan Burns 71e6b05825 Fix kube-apiserver restart. 2015-04-21 15:11:00 -07:00
Brendan Burns 9d715226d6 Fix kube-apiserver restart. 2015-04-21 13:59:26 -07:00
Jeff Lowdermilk cfc04f41b8 Updates for gcloud changes (alpha, kubeconfig) 2015-04-01 09:27:06 -07:00
Zach Loafman 52dd55c5ec Fix gke/util.sh 2015-03-31 16:50:31 -07:00
Brendan Burns 98cdf04189 Auto-install gcloud if needed. 2015-03-31 12:10:35 -07:00
Fabio Yeon 5b77149461 Fix guestbook.sh to make it work on GKE. 2015-03-20 18:27:31 -07:00
Fabio Yeon 17be2d2047 Fix GKE kube-up code by adding project flag to network creation. Plus a
few more log outputs to help debugging.
2015-03-20 14:04:32 -07:00
Zach Loafman 407d1fec45 Both @satnam6502 and E2E tests confirm: This code is no longer needed
Deletion is wonderful. The only weird thing was where to put the
message about the proxy URLs. Satnam suggested kubectl clusterinfo,
which seemed like a good option to put at the end of cluster turn-up.
2015-03-19 22:23:11 -07:00
Vishnu Kannan e7aca5c337 Enable heapster based cluster monitoring by default on other cluster providers, expect for GKE. 2015-03-11 23:34:04 +00:00
Vishnu Kannan 663bdb91c9 Remove monitoring firewall setup methods. Heapster anf Grafana are now accessible via the API server proxy. 2015-03-11 23:20:45 +00:00
Brendan Burns dd912936bc Add a missing implementation from GKE clusters. 2015-02-18 13:40:00 -08: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
Rajat Chopra 56462c020a democratize restart-apiserver method across clouds 2015-02-11 13:44:43 -08:00
Zach Loafman a305269e18 Deferred creation of SkyDNS, monitoring and logging objects
This implements phase 1 of the proposal in #3579, moving the creation
of the pods, RCs, and services to the master after the apiserver is
available.

This is such a wide commit because our existing initial config story
is special:

* Add kube-addons service and associated salt configuration:
** We configure /etc/kubernetes/addons to be a directory of objects
that are appropriately configured for the current cluster.
** "/etc/init.d/kube-addons start" slurps up everything in that dir.
(Most of the difficult is the business logic in salt around getting
that directory built at all.)
** We cheat and overlay cluster/addons into saltbase/salt/kube-addons
as config files for the kube-addons meta-service.
* Change .yaml.in files to salt templates
* Rename {setup,teardown}-{monitoring,logging} to
{setup,teardown}-{monitoring,logging}-firewall to properly reflect
their real purpose now (the purpose of these functions is now ONLY to
bring up the firewall rules, and possibly to relay the IP to the user).
* Rework GCE {setup,teardown}-{monitoring,logging}-firewall: Both
functions were improperly configuring global rules, yet used
lifecycles tied to the cluster. Use $NODE_INSTANCE_PREFIX with the
rule. The logging rule needed a $NETWORK specifier. The monitoring
rule tried gcloud describe first, but given the instancing, this feels
like a waste of time now.
* Plumb ENABLE_CLUSTER_MONITORING, ENABLE_CLUSTER_LOGGING,
ELASTICSEARCH_LOGGING_REPLICAS and DNS_REPLICAS down to the master,
since these are needed there now.

(Desperately want just a yaml or json file we can share between
providers that has all this crap. Maybe #3525 is an answer?)

Huge caveats: I've gone pretty firm testing on GCE, including
twiddling the env variables and making sure the objects I expect to
come up, come up. I've tested that it doesn't break GKE bringup
somehow. But I haven't had a chance to test the other providers.
2015-01-21 12:25:50 -08:00
Zach Loafman 8cf93288fa GKE: Fix unbound variable when pd.sh fails
In the other providers, MINION_NAMES is bound early and detect_minions
is actually only used to detect the IPs of the minions, which is why I
didn't expect to need to call it. Move the initialization to
config-common.sh in GKE as well.

This follows the pattern of cluster/gce/config-{default,test}.sh
2015-01-14 12:18:47 -08:00
Satnam Singh 295bd3768d Launch Elasticsearch and Kibana automatically 2015-01-09 13:41:46 -08:00
Max Forbes c3322bc97d Make an 'allow-ssh-on-all-nodes' firewall rule when on a non-default network. 2015-01-07 18:08:38 -08:00
Max Forbes 67f3414ede GKE: Create network if needed. 2015-01-07 16:44:06 -08:00
Maxwell Forbes c48536304a Merge pull request #3296 from zmerlynn/fix_gke_network_sigh
GKE: Also need to muck with the firewall rule here
2015-01-07 16:30:19 -08:00
Zach Loafman 36e2886d95 GKE: Also need to muck with the firewall rule here 2015-01-07 16:12:20 -08:00
Zach Loafman a203410f15 Revert "GKE: Add ENABLE_CLUSTER_DNS, compute appropriate DNS_SERVER_IP"
We actually can't yet support cluster DNS inside GKE yet; it conflicts
with how we handle startup internally.

This reverts commit fdccfe970d.
2015-01-07 14:50:10 -08:00
Zach Loafman 15f0068c7d Allow specifying GCE network in GKE provider, default to "e2e" for tests 2015-01-07 12:18:11 -08:00
Zach Loafman fdccfe970d GKE: Add ENABLE_CLUSTER_DNS, compute appropriate DNS_SERVER_IP
Fixes https://github.com/GoogleCloudPlatform/kubernetes/issues/3191
2015-01-03 07:41:09 -08:00
Zach Loafman b3ce311fd8 Fix binary detection on GKE
* kubectl is kubectl.sh in the e2es, so not needed in the path
* Use the environment variable, and try to make sure the preview
component is installed.
2014-12-21 08:03:49 -08:00
Max Forbes c3efef86d0 Add GKE as a provider. 2014-12-19 11:47:06 -08:00