Commit Graph

494 Commits (ea85e2319bb99d7dd8a0deb8e0c7604bd89a07b4)

Author SHA1 Message Date
Robert Bailey 6afa0e1f95 Don't register the master node into the cluster by default. 2015-08-17 19:17:17 -07:00
Andy Zheng 11c823abd8 Fix some settings of trusty nodes
It fixes kubelet and kube-proxy command line options, fixes a typo,
and adds installation of nsenter package if it is not present.
2015-08-17 14:27:30 -07:00
Eric Paris 13822bceae Fix build breakage due to ubuntu invalid flag usage
In PR #12543 / commit fef1ede240
Flags were used with `_` instead of `-`. This broke the build.
2015-08-16 20:30:59 -05:00
Andy Zheng fef1ede240 Add config to run minions on GCE using Ubuntu.
It is for running nodes on Ubuntu image upto 14.04 LTS (Trusty).
The change for running master on Ubuntu will be added later.
The configuration consists of several upstart jobs, which is
passed to node instances through GCE metadata and parsed by cloud-init.
2015-08-13 16:40:09 -07:00
CJ Cullen 9f009df1cb Merge pull request #12541 from dchen1107/fix
Fix kube-push using gcloud compute instance-groups managed set-instance-template
2015-08-11 15:25:40 -07:00
Dawn Chen 4b99aafc4c Fix kube-push using gcloud compute instance-groups managed set-instance-template` 2015-08-11 10:28:59 -07:00
Alex Robinson e13b00eddc Merge pull request #12436 from runningwild/PR
Install rkt to a directory that doesn't require environment variables…
2015-08-10 13:30:20 -07:00
Alex Robinson 34f164a470 Merge pull request #12384 from Hokutosei/master
added preemptible flag in gcloud compute instance-templates create
2015-08-10 11:08:11 -07:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
jeanepaul eaacc1e5c1 refactor coding style 2015-08-09 01:07:12 +09:00
Jonathan Wills f456e58355 Install rkt to a directory that doesn't require environment variables to find.
Systemd doesn't do variable substitution on the name of the command to run, so we have to install
rkt to a directory with an absolute literal path that we can reference with environment variables.
2015-08-08 11:16:59 -04:00
Eric Paris 86ca88be61 convert cluster/ from --flag_name= --flag-name= 2015-08-07 11:00:13 -04:00
Hokutosei a68f0a853f add missing preemptibel var 2015-08-07 10:13:43 +00:00
hokutosei 3bcfdab649 added preemptible flag in gcloud compute instance-templates create 2015-08-07 06:50:28 +00:00
Zach Loafman 5ea2bfaa1b Update GCE to container-vm-v20150806
Also changes the node image to default to master image
2015-08-06 15:36:39 -07: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
Mike Danese fe6b15ba2f rewrite all links to issues to k8s links 2015-08-05 21:11:11 -07:00
Alex Mohr cab88c6885 Merge pull request #12215 from runningwild/master
Auto commit by PR queue bot
2015-08-04 19:08:44 -07:00
Alex Mohr ad4086eab1 Merge pull request #11308 from gmarek/pillar
Auto commit by PR queue bot
2015-08-04 12:42:57 -07:00
Jonathan Wills 2fe560ac07 Fix typos in a runtime-generated yaml file 2015-08-04 14:34:21 -04:00
Jonathan Wills 12e47667d8 Fix minor typo that broke yaml format 2015-08-03 16:06:23 -04:00
Wojciech Tyczynski 2d95cd454c Swich to new gcloud API for GCE MIGs 2015-08-03 09:56:25 +02:00
gmarek 5bb7eec5ab Use salt pillars to pass test arguments during cluster creation. 2015-07-31 09:32:01 +02:00
Piotr Szczesniak f48543aba5 Made enabling Kube UI configurable 2015-07-27 08:23:04 +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
Mike Danese e9084f95d1 Merge pull request #10517 from chrishiestand/gke-scopes
change shell var MINION_SCOPES to user setable
2015-07-24 09:22:25 -07:00
Vish Kannan 3f47fc2fb1 Merge pull request #11762 from mbforbes/rollingAlpha
Support gcloud rolling-update command in 'preview' and 'alpha compute'
2015-07-23 14:53:18 -07:00
Max Forbes 5ff1566aac Support gcloud rolling-update command in 'preview' and 'alpha compute' 2015-07-23 14:16:31 -07:00
Vish Kannan dc59c99d1a Merge pull request #11740 from piosz/config
Added possibility to overwrite ENABLE_CLUSTER_DNS with env var
2015-07-23 13:25:35 -07:00
Vish Kannan 87f59201ab Merge pull request #11483 from roberthbailey/secure-kubelet-config
Refactor the functions that generate auth for the kubelet and kubeproxy
2015-07-23 13:10:52 -07:00
Jerzy Szczepkowski 3808519907 Optional creation of nodes autoscaler for GCE.
Implemented optional creation and deletion of nodes autoscaler in kube-up and kube-down scripts for GCE.
2015-07-23 15:59:41 +02:00
Piotr Szczesniak 06b3406cef Added possibility to overwrite ENABLE_CLUSTER_DNS with env var
It's for autoscaling tests purposes and making the config consistent with
other flags like ENABLE_NODE_LOGGING
2015-07-23 10:25:06 +02:00
Wojciech Tyczynski 5988d30da0 Merge pull request #10715 from justinsb/spelling_octects
Spelling fix (in code): octects -> octets
2015-07-23 09:00:39 +02:00
Chris Hiestand db1a73317c change shell var MINION_SCOPES to user setable
Because bash arrays may not be environment variables
 (see: <https://stackoverflow.com/questions/5564418/exporting-an-array-in-bash-script>)
 we have to change the MINION_SCOPES array to a string
* prefers aliases instead of full URLs for scopes

tested under GKE, needs GCE testing

Close #10458
2015-07-22 14:34:03 -07:00
Robert Bailey 728b337e9c Refactor the functions that generate auth for the kubelet and kubeproxy
and remove the insecure configuration now that GKE has plumbed through
certificates.
2015-07-17 16:13:01 -07:00
Robert Bailey 5e02f70dd0 Bump the container vm version to the latest build. 2015-07-16 09:30:33 -07:00
Max Forbes 739cb2f526 Robustly cleanup MIG template on GCE teardown 2015-07-10 10:14:04 -07:00
Prashanth B bb6f2f7ad9 Merge pull request #10716 from justinsb/spelling
Misc (non-code) spelling fixes
2015-07-05 11:23:17 -07:00
Zach Loafman a2250d1caf Merge pull request #10597 from a-robinson/fluentd
Run fluentd on the master to collect the core master logs
2015-07-04 21:12:47 -07:00
Justin Santa Barbara fca7822800 Misc (non-code) spelling fixes 2015-07-04 10:39:37 -04:00
Justin Santa Barbara 1ece037555 Spelling fix (in code): octects -> octets 2015-07-04 10:37:57 -04: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
nikhiljindal 274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Alex Robinson e5ea6ae854 Run fluentd on the master node by default.
This involves adding the logging-write scope to the master when running on GCE.
2015-07-01 20:07:52 +00:00
Robert Bailey ffb846a284 Merge pull request #10375 from eparis/enable_node_monitoring
Remove unused enable_node_monitoring
2015-06-26 12:58:14 -07:00
Robert Bailey 0048eae8eb Merge pull request #9965 from stevekuznetsov/skuznets/allow-https
Allowing for HTTPS Probes
2015-06-26 10:43:37 -07:00
Eric Paris 58df58f3d7 Remove unused enable_node_monitoring option
Back in 1a7f7245e7 we dropped the one
place this was used, but left all of the variable and definitions and
garbage around cluster/
2015-06-25 20:57:56 -04:00
Steve Kuznetsov d581d1f6c0 Fixed typo in gce-specific kube-up script 2015-06-25 12:51:34 -04:00
Tim Hockin 280f99afd9 EOL our registry caching mirror
Docker's v1 registry has gotten slower and slower, and they have no
interest in fixing it.  Using a mirror forces v1 mode.  Measurements
show that v1 with our mirror is slower than v2 with docker's registry in
just about all metrics.
2015-06-24 09:56:59 -07:00
Jeff Lowdermilk a2ce3ea529 Merge pull request #10107 from roberthbailey/sans
Add more SANs to the master certificate.
2015-06-23 08:22:33 -07:00
Max Forbes 434f968715 GKE upgrade tests 2015-06-20 09:44:19 -07:00
Robert Bailey 6ede5a90b1 Add more SANs to the master certificate. 2015-06-19 13:06:18 -07:00
Max Forbes 2803fbe343 Node upgrade tests. 2015-06-18 15:59:51 -07:00
Satnam Singh 34fb2a9f2d Merge pull request #9859 from mwielgus/resources-check
Check for existing GCE resources in kube-up
2015-06-18 14:47:22 -07:00
Satnam Singh 55f791ca15 Merge pull request #10050 from zmerlynn/checkbinaries
Validate binaries downloaded from GCS:
2015-06-18 14:14:56 -07:00
Zach Loafman d8da39ecd0 Validate binaries downloaded from GCS:
* Set SHA1 for Kubernetes server binary and Salt tar in kube-env.
* Check SHA1 in configure-vm.sh. If the env variable isn't available,
download the SHA1 from GCS and double check that.
* Fixes a bug in the devel path where we were actually uploading the
wrong sha1 to the bucket.

Fixes #10021
2015-06-18 13:37:05 -07:00
CJ Cullen abf1e768dc Pass through an explicit PROXY_SSH_USER.
Use user@user instead of user@hostname in case hostname is too long.
2015-06-18 10:35:02 -07:00
Marcin Wielgus b33b881bc2 Add missing --project in GCE kube-down and check-resources 2015-06-17 15:11:40 +02:00
Marcin Wielgus 3a562f1619 Check for existing GCE resources in kube-up 2015-06-17 15:04:39 +02:00
Saad Ali 4d25121206 Merge pull request #9769 from brendandburns/secure
Revert the revert of https://github.com/GoogleCloudPlatform/kubernetes/pull/9761
2015-06-16 14:21:54 -07:00
Saad Ali 03af349173 Merge pull request #9758 from satnam6502/gcl-default
Make Google Cloud Logging the default for GCE
2015-06-16 13:47:56 -07:00
Saad Ali fc30ab308b Merge pull request #9886 from vishh/heapster_v0.14.1
Updating heapster version to v0.14.1.
2015-06-16 13:14:07 -07:00
Vishnu Kannan 31f7ea10c6 Updating heapster version to v0.14.1.
Adding a standalone version of heapster which exposes stats via REST API.
2015-06-16 11:56:23 -07:00
Saad Ali 41545d0a66 Merge pull request #9135 from jlowdermilk/fix-gce-kube-down
Fix route regexp for gce-kube-down
2015-06-16 11:54:45 -07:00
Jeff Lowdermilk e02483e3fe Fix route regexp for gce-kube-down 2015-06-16 11:25:43 -07:00
Fabio Yeon bb659de2f1 Merge pull request #9832 from brendandburns/project
Add a missing ${PROJECT}
2015-06-15 19:35:32 -07:00
Brendan Burns dea86ed926 Add a missing ${PROJECT} 2015-06-15 16:59:08 -07:00
Fabio Yeon 19a7e87c06 Merge pull request #9813 from dchen1107/cleanup
Using bigger nodes for e2e test on gce.
2015-06-15 16:08:35 -07:00
Dawn Chen c78ac489aa Using bigger nodes for e2e test on gce. 2015-06-15 13:39:45 -07:00
Fabio Yeon b1465aee0b Merge pull request #9738 from quinton-hoole/2015-06-12-fix-e2e-projects
Add missing gcloud --project flags introduced by PR #9016
2015-06-15 09:53:36 -07:00
Brendan Burns 2c59a3c4a4 Fix the scripts to default empty string if EXTRA_DOCKER_OPTS isn't set. 2015-06-12 21:47:30 -07:00
Brendan Burns 51b20b35e2 Revert "Revert "Optionalize (default false) --insecure-registry.""
This reverts commit 1645c9a9b8.
2015-06-12 21:00:16 -07:00
Dawn Chen 1645c9a9b8 Revert "Optionalize (default false) --insecure-registry." 2015-06-12 17:50:38 -07:00
Satnam Singh 7f24215761 Make Google Cloud Logging the default for GCE 2015-06-12 17:12:03 -07:00
Abhi Shah a6bed65f06 Merge pull request #9685 from brendandburns/secure
Optionalize (default false) --insecure-registry.
2015-06-12 17:06:32 -07:00
Jeff Grafton fcba3136d0 Allow adding a suffix to the devel staging path for server tars on GCS.
This is needed to allow multiple GCE e2e runs to occur using the same
project on Jenkins.
2015-06-12 15:18:47 -07:00
Quinton Hoole 58885c7b48 Add missing gcloud --project flags introduced by PR 9016 2015-06-12 13:43:29 -07:00
Abhi Shah b3ab7d8db4 Merge pull request #9693 from zmerlynn/testing_container_vm
Update GCE/debian to container-vm-v20150611
2015-06-12 11:02:28 -07:00
Brendan Burns 455a787c69 Add a missing $PROJECT to the tear down. 2015-06-12 09:28:25 -07:00
Brendan Burns dcb09e73a9 Aggressively delete a cluster template if it exists. 2015-06-11 21:31:31 -07:00
Quinton Hoole 60d3f91dea Specify project when checking for existance of instance group templates. 2015-06-11 16:40:21 -07:00
Brendan Burns 675d8378f2 Optionalize (default false) --insecure-registry. 2015-06-11 16:33:14 -07:00
Zach Loafman c031708219 Update GCE/debian to container-vm-v20150611
Updates:
- Docker 1.6.2
- /sys/fs/cgroup/memory/memory.use_hierarchy=1
2015-06-11 16:10:08 -07:00
Abhi Shah 59a347d119 Merge pull request #9309 from saad-ali/issue9028
Enable InfluxDB/Grafana for GCE in addition to GCL. Disable GCM
2015-06-11 11:04:09 -07:00
Marek Grabowski ccb1b658b2 Merge pull request #9658 from fgrzadkowski/fix_failing_firewall
Wait longer for firewall creation during e2e cluster setup.
2015-06-11 15:40:35 +02:00
Filip Grzadkowski f93895dd36 Wait longer for firewall creation during e2e cluster setup. 2015-06-11 15:38:35 +02:00
Deyuan Deng 396fabf2af Document why we use 'tr -d' instead of 'base64 w0' 2015-06-10 16:24:20 -04:00
Mike Danese 1a6842e06e fix auth in gce/upgrade.sh 2015-06-09 22:33:34 -07:00
Robert Bailey aeb0068547 Add 'kubernetes' (the service name) and the master name as SANs on the
master's certificate.
2015-06-08 20:17:45 -07:00
Robert Bailey 2feb658ed7 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.
2015-06-08 20:17:45 -07:00
saadali a839f47d4a Disable GCM for GCE 2015-06-05 17:54:06 -07:00
CJ Cullen 04cd9b3c75 Make sshproxy use a hostmount on master PD (don't spam sshKeys on upgrade/reboot).
Add comment describing what SSHTunnelList.Close() does.
Simplify util.FileExists.
2015-06-05 15:03:03 -07:00
CJ Cullen cb317604ab Some refactoring. Only selectively use ssh proxy.
Add NetworkName to gce.Config.
Add locking to uses of master.tunnels.
2015-06-05 14:55:16 -07:00
saadali bc53533c83 Enable InfluxDB/Grafana for GCE in addition to GCM/GCL 2015-06-05 01:17:45 -07:00
Prashanth Balasubramanian f7c0f1c1e3 Set min-request-timeout in test clusters 2015-06-03 08:46:28 -07:00
Brian Grant 3da686fea5 Merge pull request #8894 from cjcullen/kmaster2
Add an explicit variable to indicate whether an instance is master or not
2015-06-02 20:37:43 -07:00
Brian Grant e77ded1e84 Merge pull request #8649 from cjcullen/servicefix
Add an advertise-address flag
2015-06-02 19:54:28 -07:00
Brian Grant 21147d784a Merge pull request #9074 from roberthbailey/unbound-var
Don't assume that CA_CERT_BASE64 will be set.
2015-06-02 18:52:49 -07:00
CJ Cullen dcf5b16cea Add an explicit KUBERNETES_MASTER variable to the kube-env. 2015-06-02 17:17:02 -07:00
CJ Cullen 934c553c04 Clarify description/usage of --advertise-address, Master.PublicAddress 2015-06-02 15:23:32 -07:00