Commit Graph

64742 Commits

Author SHA1 Message Date
Yuki Yugui Sonoda
2aa3de12d4 Make RESTful operations return 404 Not Found when the target resource
does not exist.

In the original implementation, GET, DELETE and PUT operations on
non-existent resources used to return 500 but not 404.
2014-07-18 14:16:56 +09:00
Yuki Yugui Sonoda
e0d749f952 fix typo 2014-07-18 14:13:55 +09:00
Daniel Smith
f6bbcff93a Merge pull request #491 from monnand/cadvisor-update-3
Retrieve machine spec from cAdvisor
2014-07-17 16:01:52 -07:00
Danny Jones
bb2843498d API modified to use source; now supports EmptyDirectory
API is now modified to use a Source struct to handle multiple volumes.

Two volume types are supported now, HostDirectory and EmptyDirectory.
2014-07-17 15:25:50 -07:00
Nan Deng
564a58722c Retrieve machine spec from cAdvisor 2014-07-17 15:21:47 -07:00
Daniel Smith
0136db899c Merge pull request #502 from smarterclayton/rename_kubelet_server_files
Rename kubelet_server*.go to server*.go
2014-07-17 10:43:19 -07:00
Clayton Coleman
15e791fc5b Rename kubelet_server*.go to server*.go 2014-07-17 13:42:24 -04:00
Danny Jones
f1a7850454 Adds EmptyDirectory volume struct
Adds EmptyDirectory to volumes. This represents a directory
on the host, given to a pod that should not persist beyond.

The current draft does not cleanup after itself.
2014-07-17 10:09:14 -07:00
Danny Jones
f84ff740f0 Adds initial volumes package; Supports host-dirs
Adds the framework for external volume mounts.

Currently supports bare host directory mounts.

Modifies the API to support host directory mounts from Volumes
instead of VolumeMounts.
2014-07-17 10:08:45 -07:00
Yuki Yugui Sonoda
5e31ca3b27 Correct godoc messages according to review comments 2014-07-17 12:27:58 +09:00
Clayton Coleman
831ab28759 Merge pull request #483 from brendandburns/health
Add a caching minion registry.
2014-07-16 20:51:27 -04:00
Tim Hockin
e1aa886f26 Merge pull request #498 from GoogleCloudPlatform/revert-495-retry-gsutil-cp
Revert "Retry failed release downloads"
2014-07-16 17:22:28 -07:00
Tim Hockin
e0b6222ebf Revert "Retry failed release downloads" 2014-07-16 17:22:05 -07:00
Tim Hockin
a9a4bbd41e Merge pull request #495 from ryfow/retry-gsutil-cp
Retry failed release downloads
2014-07-16 17:20:26 -07:00
Tim Hockin
99614a5713 Merge pull request #497 from bgrant0607/master
Answer 2 FAQs about motivations for pods.
2014-07-16 17:12:35 -07:00
Brian Grant
0063682a95 Answer 2 FAQs about motivations for pods. 2014-07-16 23:38:47 +00:00
Clayton Coleman
17053f5950 Merge pull request #465 from smarterclayton/simplify_config_for_reuse
Extract proxy/config common functions for reuse
2014-07-16 18:28:07 -04:00
Brendan Burns
dceafbadab Add a caching minion registry. 2014-07-16 14:52:32 -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
c78206d2f7 Merge pull request #472 from lavalamp/dia
First take at architecture diagram.
2014-07-16 14:09:06 -07:00
Daniel Smith
7b4b87fd76 First take at architecture diagram. 2014-07-16 14:06:07 -07:00
Daniel Smith
7127eefd36 Merge pull request #469 from smarterclayton/unify_container_lookup
Make container lookup in the Kubelet cleaner
2014-07-16 12:15:52 -07:00
Clayton Coleman
021cf64808 Change proxy config to reuse util/config
Splits endpoint and service configuration into their own objects.  Also makes
the endpoint and service configuration tests correct - there was a race condition
previously that meant tests were passing but not checking correct code.
2014-07-16 14:13:25 -04:00
Clayton Coleman
38ec4ff8c0 Create a configuration update utility
Extracted from proxy/config
2014-07-16 14:13:25 -04:00
Clayton Coleman
185a97b037 Make container lookup in the Kubelet cleaner
Reduce duplicate calls to list lookups for parallel go routines.
2014-07-16 14:12:13 -04:00
Daniel Smith
0e1636e003 Merge pull request #481 from bgrant0607/master
Documentation additions and refactoring.
2014-07-16 11:07:28 -07:00
Brian Grant
37fb72d295 Add networking documentation from issue #188. Refactor pod, label, and networking documentation to push details into separate documents. Add some documentation of how to connect to services. 2014-07-16 18:04:35 +00:00
brendandburns
02b06a2f2f Merge pull request #482 from monnand/cadvisor-update-2
Add code in client package to use kubelet's API to retrieve data from cAdvisor
2014-07-16 10:39:31 -07:00
brendandburns
8ddc33998c Merge pull request #464 from yugui/fix/golint2
Fixes Go lint errors
2014-07-16 09:55:30 -07:00
brendandburns
18c4f42c5c Merge pull request #460 from nyaxt/remove_random
Don't keep rand.Rand inside Master
2014-07-16 09:54:57 -07:00
Tim Hockin
191c878f59 Merge pull request #488 from byxorna/gabe-fix-apiserver-runimage
use correct syntax for alternative value of KUBE_MINIONS
2014-07-16 09:44:43 -07:00
Gabe Conradi
8350463341 use correct syntax for alternative value of KUBE_MINIONS 2014-07-16 10:47:14 -04:00
Yuki Sonoda (Yugui)
df9da65939 Rename a function according to go convention 2014-07-16 22:05:06 +09:00
Yuki Sonoda (Yugui)
1395b0fbf0 Fixes golint errors in pkg/healthz 2014-07-16 21:59:23 +09:00
Yuki Sonoda (Yugui)
f368e4be68 Fixes golint errors in pkg/health 2014-07-16 21:59:21 +09:00
Yuki Sonoda (Yugui)
d2db5cdffc Fix a build failure of a test 2014-07-16 21:33:26 +09:00
Yuki Sonoda (Yugui)
c1eee00a57 Correct an error message 2014-07-16 21:33:26 +09:00
Yuki Sonoda (Yugui)
a702be8e63 Fixes new golint errors in pkg/kubelet after merge 2014-07-16 21:33:26 +09:00
Yuki Sonoda (Yugui)
07b8be4d4c Merge branch 'master' into fix/golint2
Conflicts:
	pkg/api/types.go
	pkg/health/health_check.go
	pkg/kubelet/kubelet.go
	pkg/kubelet/kubelet_server.go
	pkg/kubelet/kubelet_server_test.go
	pkg/kubelet/kubelet_test.go
2014-07-16 21:33:21 +09:00
Kouhei Ueno
938d9e811b don't reuse random 2014-07-16 15:58:16 +09:00
Tim Hockin
a28e900d46 Merge pull request #475 from lavalamp/httpLogger
Move logger to own package; clean up apiserver to use serve mux.
2014-07-15 22:12:09 -07:00
Nan Deng
6878f105c0 add a client to get container info from kubelet 2014-07-16 01:08:56 -04:00
Daniel Smith
90afdb06c1 Move logger to own package; clean up apiserver to use serve mux. 2014-07-15 21:25:33 -07:00
Daniel Smith
c7d31fabbc Merge pull request #480 from monnand/cadvisor-update-1
Update kubelet package to use most recent cAdvisor's code
2014-07-15 18:25:54 -07:00
Tim Hockin
e748a4b528 Merge pull request #479 from brendandburns/cpu
Add support for CPU limiting to the kubelet.
2014-07-15 17:26:09 -07:00
Brendan Burns
c331849e69 Add support for CPU limiting to the kubelet. 2014-07-15 16:49:34 -07:00
brendandburns
74e17022e4 Merge pull request #474 from yifan-gu/close_chan
Changed op.notify<-true to close(op.notify).
2014-07-15 16:03:53 -07:00
Daniel Smith
3d63d733e3 Merge pull request #456 from brendandburns/health
Move health checking logic out to a utility. Add a minion registry that health checks.
2014-07-15 15:39:21 -07:00
Brendan Burns
c5db874090 Addressed comments. 2014-07-15 15:16:36 -07:00
Yifan Gu
0e9e2ee7f4 Changed op.notify<-true to close(op.notify). 2014-07-15 15:08:04 -07:00