Commit Graph

3511 Commits

Author SHA1 Message Date
Brendan Burns
dc1de2bc0e Remove a duplicate flag. 2014-08-19 09:48:41 -07:00
brendandburns
bd53643647 Merge pull request #851 from derekwaynecarr/cloud_provider
Vagrant supports a cloud provider
2014-08-18 18:23:49 -07:00
brendandburns
2d84987c11 Merge pull request #885 from thockin/net
Proper ip-per-pod on GCE.
2014-08-18 18:22:05 -07:00
Brendan Burns
a779102924 Fix the installation of nsinit 2014-08-18 16:40:12 -07:00
Tim Hockin
e472752ff9 Merge pull request #875 from brendandburns/exec
Add a in container exec based health check.
2014-08-18 12:19:22 -07:00
Brendan Burns
0caae9c1d4 Add a in container exec based health check. 2014-08-18 12:00:11 -07:00
derekwaynecarr
8df21b84a1 Add vagrant cloudprovider 2014-08-18 14:30:31 -04:00
Daniel Smith
82d1f8d4f6 Merge pull request #932 from derekwaynecarr/issue_923
Revert to latest salt bootstrap and force SSL
2014-08-18 10:14:23 -07:00
derekwaynecarr
967c2552e7 Revert to latest salt bootstrap and force SSL 2014-08-18 11:39:23 -04:00
Manuel Amador (Rudd-O)
7b2d0d29e4 Please set up SaltStack using SSL. MITM is a thing these days. 2014-08-18 00:10:43 -07:00
Tim Hockin
03ade159c3 Proper ip-per-pod on GCE.
Back out the second iptables rule, now that we know what the problem was - we
need to open a firewal rule on each minion.
2014-08-15 15:54:20 -07:00
Brendan Burns
0fda53ea1c Remove a print that is confusing jq in the e2e tests. 2014-08-14 16:31:52 -07:00
brendandburns
bf7f8a2297 Merge pull request #867 from derekwaynecarr/apiserver_loopback
Vagrant: apiserver doesn't bind to 127.0.0.1, inaccessible through master nginx
2014-08-14 14:35:49 -07:00
brendandburns
25352c56d9 Merge pull request #886 from brendandburns/shell_sucks
Fix kubecfg.sh
2014-08-14 14:33:43 -07:00
Joe Beda
629f964791 Fix e2e teardown 2014-08-14 13:57:50 -07:00
Daniel Smith
43e1c14e8b Merge pull request #892 from brendandburns/teardown
Add a teardown option to the e2e, that just tears down the cluster, also make gce teardown synchronous.
2014-08-14 10:11:13 -07:00
Brendan Burns
9f49650fba Add a tear down option to the e2e, that just tears down the cluster
Useful for cleaning state after failed runs.
2014-08-14 09:58:40 -07:00
derekwaynecarr
10be80295c apiserver listen on 0.0.0.0 in vagrant 2014-08-14 10:02:04 -04:00
Joe Beda
70c6c75ae3 Fix release and salt scripts for godep 2014-08-13 15:57:41 -07:00
Brendan Burns
34b240f17a Fix kubecfg.sh 2014-08-13 14:11:43 -07:00
Evan Flynn
7839033588 Remove duplicate shebang 2014-08-13 15:44:21 -04:00
Brendan Burns
5d0291ae0e Fix kubecfg.sh 2014-08-12 16:46:34 -07:00
derekwaynecarr
7db42a7b73 Fix nsinit on Vagrant 2014-08-12 16:35:01 -04:00
derekwaynecarr
ba7345d967 Do not always look for latest pkg 2014-08-12 16:10:59 -04:00
derekwaynecarr
fea7b61b81 Add local scripts, simplify kubecfg.sh 2014-08-11 13:02:52 -04:00
derekwaynecarr
c8c5435656 Enforce --address flag is set on all Linux flavors 2014-08-07 17:54:49 -05:00
Tim Hockin
7e9c142392 Remove duplicate -config param
This is duplicated in cluster/saltbase/salt/kubelet/default
cluster/saltbase/salt/kubelet/initd
2014-08-07 10:53:08 -07:00
Victor Marmol
c501e09d14 Merge pull request #820 from brendandburns/nsenter
Install nsinit that is vendored into docker.
2014-08-07 08:36:49 -07:00
Clayton Coleman
4123a44653 Merge pull request #819 from thockin/restarts
Disable docker restarts, for now
2014-08-07 10:41:56 -04:00
Brendan Burns
22586c87fe Install nsinit that is vendored into docker. 2014-08-06 22:45:18 -07:00
Tim Hockin
92f13ceb52 Disable docker restarts, for now
If the docker daemon goes down and comes up, it will try to restart
containers.  This will race with our own restart loop.  Only one loop should
be controlling restarts, probably.
2014-08-06 22:41:09 -07:00
brendandburns
71bfa4cd74 Merge pull request #810 from derekwaynecarr/less_verbose
Run go-build on each kubepush and vagrant log only states that change or error to improve readability
2014-08-06 22:41:09 -07:00
Tim Hockin
b0ffa8c8f6 Set kubelet -address flag to 0.0.0.0 via salt
Currently it binds to the eth0 IP only, this includes localhost.  The flag
default is localhost only, but we need it looser than that.
2014-08-06 18:11:35 -07:00
Amy Unruh
f9bbddf892 minor docs/error msg cleanup 2014-08-06 15:43:27 -07:00
Daniel Smith
aa3ac324bc Merge pull request #803 from brendandburns/nsenter
Install nsinit on hosts.
2014-08-06 15:12:49 -07:00
derekwaynecarr
b9dc38e617 Log only states that change or error to improve readability 2014-08-06 14:47:41 -04:00
Daniel Smith
ea47ca7aa0 Stop passing etcd_servers to controller manager 2014-08-05 17:46:39 -07:00
Brendan Burns
abb754c00d Install nsinit on hosts. 2014-08-05 15:57:39 -07:00
derekwaynecarr
d8af1da2f6 Pull golang from golang 2014-08-05 14:24:10 -04:00
Tim Hockin
4c58752684 Make container-to-container IP work across VMs. 2014-08-04 20:52:13 -07:00
brendandburns
a06d6726d4 Merge pull request #762 from jdef/master
add retries to salt bootstrap download
2014-08-04 11:55:00 -07:00
James DeFelice
2f500b3b07 add retries to salt bootstrap download 2014-08-04 14:46:52 -04:00
Tim Hockin
f9f8db5171 Fix indents 2014-08-04 11:42:33 -07:00
Filipe Brandenburger
d7396acced Remove executable permissions of files that do not need it.
In particular, .gitignore, *.go, *.sls and etcd.conf are files that
should not be marked as executable.

Tested: built it with hack/build-go.sh, called all binaries with
  the -version flag to confirm they work.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-01 08:22:46 -07:00
Michal Fojtik
264eebb997 Disable curl progress bar when running vagrant up 2014-08-01 15:08:17 +02:00
Victor Marmol
4de48613e7 Change cAdvisor port to 4194.
This is so it doesn't conflict with the default registry address of
5000.
2014-07-31 13:14:00 -07:00
Daniel Smith
fcbd365814 Merge pull request #678 from brendandburns/fix
Add some initial validation logic.
2014-07-29 15:22:57 -07:00
brendandburns
1ab9f6ebae Merge pull request #689 from Sarsate/salt-kubelet-dir
Set kubelet user home directory to /var/lib/kubelet
2014-07-29 15:06:30 -07:00
Danny Jones
bc11e8c57b Set kubelet user home directory to /var/lib/kubelet
The kubelet user does not have permissions to create directories in
/var/lib. This sets the home directory to /var/lib/kubelet so that the
directory is made prior to running the kubelet. This matches the
default root directory path (/var/lib/kubelet) and allows kubelet to
us that directory.
2014-07-29 14:44:01 -07:00
Michal Fojtik
18f32cf03f Allow to set global KUBERNETES_PROVIDER env var 2014-07-29 19:57:09 +02:00
Brendan Burns
21ceb380c8 Add some initial validation logic. 2014-07-29 07:51:40 -07:00
brendandburns
3d03c853d4 Merge pull request #666 from erictune/remove_etcd_proxying
Stopy proxying etcd (localhost:4001) on https:/$MASTER_IP/etcd.
2014-07-28 14:34:54 -07:00
brendandburns
fd35c28ef4 Merge pull request #667 from brendandburns/debian
Disable early error exit, since the salt script is broken for now.
2014-07-28 14:02:06 -07:00
Brendan Burns
1530da0053 Disable early error exit, since the salt script is broken for now.
See: https://github.com/saltstack/salt-bootstrap/pull/436
2014-07-28 13:32:00 -07:00
Eric Tune
10a61d05a1 Stopy proxying etcd (localhost:4001) on https:/$MASTER_IP/etcd. 2014-07-28 12:21:06 -07:00
Clayton Coleman
37e5f96074 Merge pull request #661 from csrwng/fix_salt_stack
Temporarily point to older bootstrap script
2014-07-28 15:00:05 -04:00
csrwng
d9ae72d1f0 Temporarily point to older bootstrap script
The most recent saltstack bootstrap file expects a salt-api service to
exist. The most recent Fedora salt-master rpm doesn't include this
service yet. Pointing to the previous version of the bootstrap script.
2014-07-28 12:51:01 -04:00
Albert Zhang
0375709fa3 Use 'go install' to build all commands at the same time.
'go build' compiles the packages but discards the results if multiple packages specified.
2014-07-27 22:20:13 -04:00
Daniel Smith
a6668f625b Fix kube-push.sh 2014-07-24 17:50:19 -07:00
Jonathan Boulle
c43035088b assorted formatting and typo fixes 2014-07-24 15:10:36 -07:00
derekwaynecarr
69ae2fe4bb Initial vagrant setup and e2e testing support 2014-07-24 16:32:36 -04:00
Daniel Smith
b87ae144ea Merge pull request #552 from MSOpenTech/azure-scripts
Update salt config for apiserver to support Azure.
2014-07-24 12:46:53 -07: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
Victor Marmol
db38b114fe Update the cAdvisor manifest for the new volume type.
Closes #559
2014-07-23 08:38:38 -07:00
Jeff Mendoza
cc471c29f3 Add gce grain to salt config, change apiserver salt config. 2014-07-22 10:30:00 -07:00
Jeff Mendoza
6cebe4443a Update salt config for apiserver to support Azure. 2014-07-21 16:50:47 -07:00
Daniel Smith
05f01a3654 Revert "assorted formatting and typo fixes" 2014-07-18 17:16:30 -07:00
Daniel Smith
211f6b312f Merge pull request #520 from jonboulle/master
assorted formatting and typo fixes
2014-07-18 17:15:30 -07:00
Tim Hockin
7b905709d9 Merge pull request #521 from MSOpenTech/azure-scripts
Azure scripts
2014-07-18 16:43:20 -07:00
Jeff Mendoza
95ec94514b Rename and move Azure scripts. 2014-07-18 16:13:05 -07:00
Jeff Mendoza
0d618788c3 Fix kube up azure templates 2014-07-18 13:16:49 -07:00
Jeff Mendoza
b4183409ab Comment and whitespace fixes. 2014-07-18 13:11:50 -07:00
Jeff Mendoza
3ff6b0f8a6 First draft of shell scripts for deploying kube to Azure. 2014-07-18 13:11:50 -07:00
Jonathan Boulle
9e63c3a633 assorted formatting and typo fixes 2014-07-18 13:02:59 -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
Tim Hockin
e0b6222ebf Revert "Retry failed release downloads" 2014-07-16 17:22:05 -07:00
Ryan Fowler
6bef460bdf Retry failed release downloads
gsutil cp is prone to failure during initial creation of a Kubernetes
cluster. This 'until' loop will keep trying as suggested in the 'gsutil
cp' documentation.
2014-07-16 16:24:11 -05:00
Tim Hockin
02ee27c133 Merge pull request #459 from rrreeeyyy/fix-kubeup-curl-timeout
Fix: cluster/kube-up.sh curl timeout a little bit short.
2014-07-15 11:43:25 -07:00
Victor Marmol
d9962946fc Use latest cAdvisor image.
This keeps us from downloading all cAdvisor images just to use "latest".
2014-07-15 10:16:52 -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
Brendan Burns
41c6680943 add http health checks. 2014-07-09 12:01:43 -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
Daniel Smith
212a393404 Merge pull request #293 from brendandburns/minion
Activate cloud minion registry.
2014-07-01 12:11:22 -07:00
Daniel Smith
6473177f3b Merge pull request #324 from vmarmol/add-cadvisor
Run cAdvisor on all minions.
2014-07-01 12:00:17 -07:00
Victor Marmol
842907613b Run cAdvisor on all minions. 2014-07-01 11:36:33 -07:00
Brendan Burns
d5516e4cdc Activate gce minion list. 2014-07-01 11:33:58 -07:00
Brendan Burns
4d6a783e5f Initial add of an environment variable for the kubernetes master. 2014-07-01 10:12:38 -07:00
Brendan Burns
4eccd64e0f Remove the dependency on apache htpasswd. 2014-06-27 14:54:49 -07:00
brendandburns
60e2d4b258 Merge pull request #250 from lavalamp/fix
Make boilerplate hook work for .sh files, too.
2014-06-26 10:01:46 -07:00
Daniel Smith
c97c514742 Rename cloudcfg to kubecfg 2014-06-25 18:01:37 -07:00
Daniel Smith
260af3017b Make boilerplate hook work for .sh files, too. 2014-06-25 17:11:48 -07:00
Brendan Burns
2759b2367f Add load balancing support to services. 2014-06-17 12:37:39 -07:00
Daniel Smith
cba453d72b Fix basic test the other way. 2014-06-13 17:31:57 -07:00
Daniel Smith
5626703634 Add a new e2e test; fix some bugs/usability problems 2014-06-13 16:30:26 -07:00
Daniel Smith
d937f6f776 working on a better e2e test 2014-06-13 11:26:55 -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 Norberg
c74e04efea cluster: allow providing KUBE_MASTER_IP env var
To avoid overhead of always querying gcloud.
2014-06-12 13:05:37 -04:00
Daniel Smith
88b9c7ba79 Move storage of password 2014-06-11 17:20:16 -07:00
mmdriley
d482673bcb Use a CSPRNG to generate passwords. 2014-06-10 15:58:51 -07:00
Seth House
e01adf3ec1 Switch from the deprecated bootstrap.saltstack.org to the .com redirect
As per saltstack/salt#12105
2014-06-10 13:35:03 -06: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