Commit Graph

40 Commits

Author SHA1 Message Date
Abhi Shah
04600aa5dd Merge pull request #11439 from jfchevrette/source-local-cluster-env
Allow a local /cluster/env.sh to be sourced if present
2015-09-03 16:35:42 -07:00
Dr. Stefan Schimanski
8a48a74103 Factor out validate-cluster.sh call from kube-up.sh
Not every cluster can be validated the same way. Factoring out the
validate-cluster call into a kube-util.sh function allows customization.

This allows to proceed with GoogleCloudPlatform/kubernetes#10049 before
the mid/long-term unified cluster validation in GoogleCloudPlatform/kubernetes#11908
is implemented. Otherwise, the later blocks the former.
2015-08-04 16:05:18 +02:00
Mike Danese
bfd22a6974 Merge pull request #10686 from mesosphere/kube-util
Move sourcing of provider-specific util.sh into kube-util.sh
2015-07-24 10:31:48 -07:00
Jean-Francois Chevrette
91a05c0709 source cluster env.sh on kube-up/down/push 2015-07-17 08:31:16 -04:00
Max Forbes
fcb4e5e204 Log Project (GKE) less and cleanup bash indentation 2015-07-15 15:49:28 -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
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
Sam Ghods
ca18e86877 Make naming of kubectl subcommands consistent 2015-04-02 16:14:53 -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
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
Zach Loafman
0b456e40bf Fix jenkins/hack/e2e.sh, log errors better 2015-02-05 09:16:11 -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
Satnam Singh
295bd3768d Launch Elasticsearch and Kibana automatically 2015-01-09 13:41:46 -08:00
Joe Beda
6df6aab077 Move DNS from contrib to cluster/addons
This fixes #3190.
2015-01-05 12:32:35 -08:00
Tim Hockin
59164ca844 Make DNS an option for cluster turnup 2014-12-29 09:18:12 -08:00
Max Forbes
c3efef86d0 Add GKE as a provider. 2014-12-19 11:47:06 -08:00
Vishnu Kannan
edf6d8ee3f Use Heapster as an in-built monitoring solution for Kubernetes in GCE.
Users will have an option to enable it when they setup their cluster (kube-up).
2014-11-07 00:47:56 +00:00
Joe Beda
96c1bc17ca Set shell options for reliability.
Tweak a few other small things in our shell scripts.
2014-10-10 12:33:36 -07:00
Joe Beda
d43a6ec5a3 Standardize how we refer to the kubernetes root.
Now use $KUBE_ROOT as the variable pretty much everywhere.
2014-10-10 12:33:36 -07:00
Brendan Burns
21ceb380c8 Add some initial validation logic. 2014-07-29 07:51:40 -07:00
derekwaynecarr
69ae2fe4bb Initial vagrant setup and e2e testing support 2014-07-24 16:32:36 -04:00
Dawn Chen
eb6d0238d4 query minion's /healthz for sanity checking. Removing gcutil ssh to
VM, and check kubelet's status.
2014-07-23 17:08:24 -07:00
Brendan Burns
bf0cbac7ec Add a sleep to work around apparent races with salt. 2014-07-18 12:53:43 -07:00
Brendan Burns
a9723d059a Turn off error checking prior to sanity checking. 2014-07-18 09:47:13 -07:00
YOSHIKAWA Ryota
665a4254c2 Fix: cluster/kube-up.sh curl timeout a little bit short. 2014-07-15 16:58:21 +09:00
Brendan Burns
ba5cadef59 Add some sanity checks to the kube-up script. 2014-07-11 16:12:09 -07:00
Yuki Yugui Sonoda
cf9ee4d9dd Allows adding custom api scopes to service accounts available in
minions.
2014-07-09 15:02:57 +09:00
Brendan Burns
4eccd64e0f Remove the dependency on apache htpasswd. 2014-06-27 14:54:49 -07:00
Brendan Burns
2759b2367f Add load balancing support to services. 2014-06-17 12:37:39 -07:00
Joe Beda
110a390c97 Switch from gcloud compute to gcutil.
We'll switch back to the future once the interface has settled down.
2014-06-12 15:43:00 -07:00
Chris Soyars
76e0391ad3 Allow the use of a network other than default 2014-06-12 15:00:48 -07:00
Joe Beda
9d50a76922 Fix up version string for gcloud compute version.
This might break again as the version that this change will land isn't stable.  I'm going to switch back to gcutil until we know we won't break again.  That will come in a future PR.
2014-06-12 11:35:46 -07:00
Daniel Smith
88b9c7ba79 Move storage of password 2014-06-11 17:20:16 -07:00
Joe Beda
196d0965ec Add warnings about self signed certs and MitM attacks.
Also put in pointers for IRC and mailing lists.
2014-06-09 16:46:16 -07:00
Brendan Burns
5cb4444176 Task -> Pod #4, the final chapter 2014-06-08 23:00:12 -07:00
Joe Beda
81629733e1 Handle breaking change in 'gcloud compute routes create' with version check. 2014-06-08 08:10:31 -07:00
Joe Beda
156ebe2ce2 Set 'auto restart' bit on VMs. 2014-06-08 07:31:12 -07:00
Joe Beda
c5683eb7f1 Don't use scopes we don't need when creating VMs 2014-06-08 07:30:43 -07:00
Joe Beda
2e5be7c4e5 Minimize metadata when creating startup scripts.
Strip all comments when creating the omnibus startup scripts for starting the VMs.  This reduces some noise and may prevent us from hitting the eventual limits there.
2014-06-07 07:32:28 -07:00
Joe Beda
894a7e3282 Move everything out of src and reorganize scripts.
Fixed up some scripts to be more robust.  Changed the e2e test setup to use g1-small instances.  Fixed up documentation to reflect the new script locations.  Disabled the "curl | bash" cluster launch as it hasn't been well tested and doesn't include the cloudcfg tool yet.
2014-06-06 21:41:19 -07:00