Commit Graph

9925 Commits

Author SHA1 Message Date
Daniel Smith 95f8c2d6c0 wait until a token shows up to start addons 2016-03-29 10:58:03 -07:00
Vishnu Kannan 70bee7b606 Updating heapster version to v0.14.1.
Adding a standalone version of heapster which exposes stats via REST API.

(cherry picked from commit 31f7ea10c6b3fcfd463983fed0bfcaed710b143f)
2016-03-29 10:58:03 -07:00
saadali 1e507fe243 Enable InfluxDB/Grafana for GCE in addition to GCM/GCL
(cherry picked from commit bc53533c833bf07c0d247ab410eedca055417954)
2016-03-29 10:58:03 -07:00
Vishnu Kannan 232c76de4c Updating heapster version to v0.14.1.
Adding a standalone version of heapster which exposes stats via REST API.
2016-03-29 10:58:03 -07:00
Marek Biskup 6e8e1d877e e2e test for addon update 2016-03-29 10:58:03 -07:00
Jeffrey Bean d7c72f79dd kube_addons - Adding variable with default for kubectl bin. Fixes #9599 2016-03-29 10:58:03 -07:00
Robert Bailey 8e425f5084 Distribute the cluster CA cert to cluster addon pods through
the kubeconfig file. Use the $KUBERNETES_MASTER_NAME from the
kube-env for skydns, because it can't use the service name.
2016-03-29 10:58:03 -07:00
Marek Biskup 534a8d6f72 kube-addon-update.sh 2016-03-29 10:58:03 -07:00
saadali 8fd21e459f Enable InfluxDB/Grafana for GCE in addition to GCM/GCL 2016-03-29 10:58:03 -07:00
Dawn Chen 06d3aac90e Create LimitRange object for cluster before addons service 2016-03-29 10:58:03 -07:00
Kris Rousey 107cbc92a5 Updating /cluster to use v1beta 3 specs, and change a lot of polling to
healthz instead of api endpoints.
2016-03-29 10:58:03 -07:00
saadali 6a907b1135 Enable Google Cloud Monitoring and Google Cloud Logging instead of
Influxdb for Google Compute Engine deployments.
2016-03-29 10:58:03 -07:00
Eric Paris 8f7090bce1 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2016-03-29 10:58:03 -07:00
CJ Cullen 68f9aafe0f kube2sky using kubeconfig secret: take 2. Point system secrets at https://kubernetes. Override in clients that can't use DNS. 2016-03-29 10:58:03 -07:00
Satnam Singh 1d533e43a3 Convert Elasticsearch logging to v1beta and de-salt 2016-03-29 10:58:03 -07:00
Eric Tune 8a926f2aba Create system secrets in kubeconfig format
Was previously kubernetes_auth format.

Added defaults file which uses salt to fill in an env var
with the master's IP.

More thought needs to be given soon to how to make this
connection use a cert for the master, and how to support
multiple masters, and whether to use the DNS record
instead of an IP address.  But this PR unblocks some other
more urgent things, so doing it this way.
2016-03-29 10:58:03 -07:00
Eric Tune ffe3ee4472 Fix kube-addon retrying. 2016-03-29 10:58:03 -07:00
Eric Tune 2ca3917fcb Make secrets at cluster startup.
These secrets will be used in subsequent PRs by:
scheduler, controller-manager, monitoring services,
logging services, and skydns.

Each of these services will then be able to stop using kubernetes-ro
or host networking.
2016-03-29 10:58:03 -07:00
Eric Tune 93e34c6eed Use same addons script for init.d and systemd. 2016-03-29 10:58:03 -07:00
Abhishek Shah 30944057bc Retry kube-addons creation if kube-addons creation fails. 2016-03-29 10:58:03 -07:00
Zach Loafman f6caab55f8 Retry object creation with --validate in kube-addons
The better solution is some fence with Salt, but the actual logs
provided in the bug don't support any race condition here, plus the
ordering in the Salt configuration seems correct.

We haven't seen this again in a while, but given the results of the
situation (a borked cluster), I'm proposing a relatively simple
workaround.

Fixes #4357 (dubiously)
2016-03-29 10:58:03 -07:00
derekwaynecarr e6a8585721 Missing boilerplate 2016-03-29 10:58:03 -07:00
derekwaynecarr ca6a76a5ce Various vagrant fixes, etcd 2.0 2016-03-29 10:58:03 -07:00
Zach Loafman e4119f0912 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.
2016-03-29 10:58:03 -07:00
Mike Danese 6ad30a0711 final commit 2016-03-29 10:27:47 -07:00