Commit Graph

4833 Commits (823ab24068f83ec72d1ca7addefa3e3490f58fbf)

Author SHA1 Message Date
Daniel Smith 53a9d106c4 Merge pull request #3167 from thockin/affinity
Don't use pointers for session affinity
2014-12-30 17:43:47 -08:00
Daniel Smith 9c2cd55528 Merge pull request #3181 from smarterclayton/cleanup_http_items
Minor cleanups to request - fix initialism on HTTPClientFunc
2014-12-30 17:34:00 -08:00
Angus Lees 6f14e2e210 Avoid race between image pull and garbage collect
Hold the pullLock while pulling regular container images, not just the
network container.

Also: previously, the locks were grabbed at too-low a layer in the
callstack, leaving a (narrow) window where images could be pulled and
then garbage collected before being used.

This change takes the existing pullLock a layer higher in the call stack
so the critical regions encompass the entire find+delete and pull+use
operation in both cases.
2014-12-31 11:50:40 +11:00
Clayton Coleman 8005c85e6c Rename HttpClientFunc -> HTTPClientFunc 2014-12-30 19:34:06 -05:00
Clayton Coleman 502204ad6d Do not set empty field or label selectors on requests
Default behavior for "" is already "everything"
2014-12-30 19:33:40 -05:00
Dawn Chen dc4e9d66f7 Merge pull request #3180 from thockin/util-mount
Add a util/mount pkg
2014-12-30 15:49:48 -08:00
Daniel Smith 6156526d92 Merge pull request #3133 from smarterclayton/remove_request_path
Introduce Resource/ResourceName/Prefix/Suffix options to RESTClient
2014-12-30 15:33:11 -08:00
Tim Hockin ff9b935067 Merge pull request #3179 from dchen1107/cleanup
Remove duplicate volumes type.
2014-12-30 15:16:13 -08:00
Dawn Chen 86aa38547c Remove duplicate volumes type. 2014-12-30 14:40:16 -08:00
Tim Hockin fc69379b8c Add a util/mount pkg 2014-12-30 14:38:49 -08:00
Daniel Smith 851dbe4842 Merge pull request #3169 from dchen1107/pd
Update doc volumes.md to make sure mount point is created before mountin...
2014-12-30 11:15:57 -08:00
Daniel Smith 08ee6e912d Merge pull request #3170 from saad-ali/3164
Modify "kubectl get events" to print FieldPath so BoundPod events for the same pod but different containers can be differentiated
2014-12-30 10:24:52 -08:00
saadali e8d30f019d Modify "kubectl get events" to print FieldPath so BoundPod events for the same Pod but different containers can be differentiated 2014-12-29 21:32:49 -08:00
Dawn Chen 05ef2c1c24 Update doc volumes.md to make sure mount point is created before mounting. 2014-12-29 16:46:06 -08:00
Daniel Smith 0155ede0c2 Merge pull request #3166 from dchen1107/pd
Propagate syncPod error as event to upper layer.
2014-12-29 16:16:53 -08:00
Dawn Chen d38613777b Propagate syncPod error as event to upper layer. 2014-12-29 15:42:47 -08:00
Tim Hockin ca27fb259c Don't use pointers for session affinity 2014-12-29 14:43:17 -08:00
Tim Hockin 7dec65f535 Merge pull request #3156 from evenemento/master
Add missign network flag
2014-12-29 14:06:01 -08:00
Joe Beda 8eac7303fa Merge pull request #2989 from lavalamp/fix6
Fix proxy bug where it lies about encoding
2014-12-29 14:05:14 -08:00
Clayton Coleman e355f54eda Update references from Path() to the appropriate segment use 2014-12-29 15:38:52 -05:00
Clayton Coleman afedbba3fc Introduce Resource/ResourceName/Prefix/Suffix options to RESTClient
RESTClient is an abstraction for simplifying access to resources that
follow the Kubernetes API pattern.  Currently, both Namespace and Path
are coupled, which means changes across versions is complex.  In general,
most access to resources should be to a resource collection (e.g.
"services") with a name (e.g. "foo"). Other constructs, like prefix sections
("watch") or proposed suffix sections ("/pods/foo/spec") only modify this
core pattern.

This commit removes the Path() helper from Request and introduces:

* Prefix(segments ...string) - segments that should go to the beginning of the path.
* Suffix(segments ...string) - segments that should go to the end of the path.
* Resource(string) - collection name, should be after prefix
* Namespace(string) - if specified, should be set after resource but before name
* Name(string) - if specified, should be after namespace

Now, only Prefix and Suffix are order dependent (and with variadics, should be
simpler).  Resource, Namespace, and Name may be specified in any order.

Path() has been removed to prevent downstream consumers of RESTClient from experiencing
behavior change.
2014-12-29 15:37:30 -05:00
Daniel Smith 998061677b Merge pull request #2909 from smarterclayton/passversiontorestmapper
Allow --api-version to properly override various default behaviors in CLI
2014-12-29 12:14:32 -08:00
Daniel Smith 9873d8a7d5 Merge pull request #2958 from rajdeepd/master
Added test cases for NewKubeletClient with TLS enabled
2014-12-29 11:47:47 -08:00
Daniel Smith 1a70421630 Merge pull request #3144 from saad-ali/3041ChangeUnhealthyStatus
Have Http Liveness Probe report "Unhealthy" on connection failure instead of "Unknown"
2014-12-29 11:36:17 -08:00
saadali 99acb9688c Have Http Probe report "Unhealthy" on connection failure instead of "Unknown". 2014-12-29 11:09:06 -08:00
Joe Beda ebb448dff0 Merge pull request #3110 from mdshuai/master
Solve apt-get update 404 Not Found Package error
2014-12-29 10:38:13 -08:00
Joe Beda a2e58d490e Merge pull request #2224 from thockin/dns
Enable DNS for services
2014-12-29 10:27:57 -08:00
Joe Beda 75085279eb Merge pull request #3149 from adimania/master
"kind" is needed to start the pod
2014-12-29 09:49:01 -08:00
Joe Beda 6c1203bdb8 Merge pull request #3151 from tscherf/master
Added config note for ssh root logins.
2014-12-29 09:43:27 -08:00
Joe Beda a039ead186 Merge pull request #3159 from justinsb/wget_no_dot
Remove erroneous . from wget commands
2014-12-29 09:38:55 -08:00
bgrant0607 e1b9a953f5 Merge pull request #3145 from smarterclayton/better_scheduler_warning
Scheduler is printing the wrong value when no default algorithms available
2014-12-29 09:23:18 -08:00
Justin Santa Barbara e682997b3d Remove erroneous . from wget commands
wget always downloads into current directory
2014-12-29 12:19:45 -05:00
Tim Hockin 32a59477a5 Add an e2e test for DNS from pods. 2014-12-29 09:18:12 -08:00
Tim Hockin b0268f3833 Use a kubernetes-hosted minimal container for skydns 2014-12-29 09:18:12 -08:00
Tim Hockin e045c6ce2f Split portals into host and container
After this DNS is resolvable from the host, if the DNS server is targetted
explicitly.  This does NOT add the cluster DNS to the host's resolv.conf.  That
is a larger problem, with distro-specific tie-ins and circular deps.
2014-12-29 09:18:12 -08:00
Tim Hockin 59164ca844 Make DNS an option for cluster turnup 2014-12-29 09:18:12 -08:00
Tim Hockin 1291c718cf Use a helper bridge between k8s and SkyDNS
Rather than have to keep SkyDNS up to date with Kubernetes, use a
buddy-container "kube2sky" to watch kubernetes and sync Service records
into etcd for SkyDNS ot find.  This also adds namespace support.
2014-12-29 09:18:12 -08:00
Tim Hockin 652479a3b1 Add kubelet DNS flags & api disable for DNS
This adds --cluster_dns and --cluster_domain flags to kubelet.  If
non-empty, kubelet will set docker --dns and --dns-search flags based on
these.  It uses the cluster DNS and appends the hosts's DNS servers.
Likewise for DNS search domains.

This also adds API support to bypass cluster DNS entirely, needed to
bootstrap DNS.
2014-12-29 09:18:12 -08:00
Tim Hockin 2a110b097d add contrib/dns/MAINTAINERS 2014-12-29 09:18:12 -08:00
Maciej Chmielarski d6a747481c Add missign network flag 2014-12-29 12:59:02 +01:00
Thorsten Scherf 91df16f96b Added config note for ssh root logins. 2014-12-27 18:36:00 +01:00
dma 39f3015bc3 Merge branch 'master' of github.com:GoogleCloudPlatform/kubernetes 2014-12-26 13:24:54 +08:00
Rohit Jnagal a99bb4823b Merge pull request #3150 from vishh/cadvisor
Update cadvisor static manifest file completely.
2014-12-25 10:55:46 -08:00
Vishnu Kannan 2d5432bc91 update cadvisor static manifest file completely. 2014-12-25 18:22:59 +00:00
Aditya Patawari f86af137e0 it gets confusing without the output sometimes 2014-12-25 23:46:16 +05:30
Aditya Patawari 7c99d960fe kind is needed to start the pod
fix for the following error:
the provided version "v1beta1" and kind "" cannot be mapped to a supported object
2014-12-25 22:37:20 +05:30
Clayton Coleman c9501128b6 Scheduler is printing the wrong value when no default algorithms available 2014-12-24 00:01:54 -05:00
Brendan Burns 4808d16558 Update cli.md to include kubectl 2014-12-23 19:53:40 -08:00
Tim Hockin 6624b64f44 Merge pull request #3142 from vishh/oom_score
Set oom_score_adj for kubelet and kube-proxy to a low value
2014-12-23 17:24:30 -08:00
Vishnu Kannan 6f53f33fda Set oom_score_adj for kubelet and kube-proxy to a low value to help them survive system memory pressure. 2014-12-24 00:34:28 +00:00