Clayton Coleman
d19aac80ea
Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
...
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Victor Marmol
adac4328e8
Merge pull request #5713 from AAzza/kubelet_build_parse_dockername
...
Refactor build/parse DockerName from Kubelet. #3511
2015-03-23 08:45:53 -07:00
Victor Marmol
4e3c07543e
Merge pull request #5784 from wojtek-t/applyDefaultsInTryDecode
...
Hide applyDefaults method under pkg/kubelet/config
2015-03-23 07:32:00 -07:00
Wojciech Tyczynski
b395c40e19
Refactor pkg/kubelet/config
2015-03-23 10:29:46 +01:00
Jerzy Szczepkowski
34a8a3a844
Running node selector predicate on kubelet.
...
Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix #5207 .
2015-03-23 08:21:58 +01:00
Clayton Coleman
65425f690c
Move field errors to pkg/util/fielderrors
...
Allows pkg/api to take a reference to labels.Selector and fields.Selector
2015-03-22 17:43:34 -04:00
Salvatore Dario Minonne
4c55689fb7
Removing dead code in labels package and chaning LabelSelector type
2015-03-22 18:03:50 +01:00
Nataliia Uvarova
73c2338320
Refactor build/parse dockername. #3511
...
Functions Build/ParseDockerName now work with struct instead of the long
list of arguments. This new struct also was reused in the kubelet.go
instead of auxilary podContainer struct.
2015-03-21 09:09:03 +01:00
Ravi Gadde
5871e53060
Add timeout to kubelet client
2015-03-20 18:46:45 -07:00
Victor Marmol
4d2e7981bb
Merge pull request #5730 from yujuhong/static_stats
...
Kubelet: support retrieving stats using UID of mirror pods
2015-03-20 17:05:23 -07:00
Yu-Ju Hong
f3f3c8f151
Fix volume imports
2015-03-20 16:22:35 -07:00
Yifan Gu
3b4685ef6c
kubelet.runtime: update the import path for volume.
2015-03-20 16:16:27 -07:00
Yu-Ju Hong
15e9760bd4
Kubelet: support retrieving stats using UID of mirror pod
...
Kubelet supports retrieving stats for pods/containers with and without UID.
This does not always work for the static pods because users may get the UIDs of
the mirror pods from the API server, and use them to query Kubelet. In this
case, Kubelet would fail to locate the containers due to mismatched UIDs.
This change adds a intenral mirror to static pod UID mapping and teaches all
public-facing functions to perform UID lookup before proceeding. This allows
users to use either mirror or static pod's UID to retrieve stats.
2015-03-20 15:40:49 -07:00
Vish Kannan
f118ca8fb4
Merge pull request #5642 from thockin/volume_multi_plugins
...
Prep for multiple kinds of volume plugins
2015-03-20 15:12:30 -07:00
Saad Ali
f57540c7a0
Merge pull request #5532 from nikhiljindal/event
...
Adding GetFieldSelector() to client.EventInterface
2015-03-20 15:05:14 -07:00
Dawn Chen
fbd362d3c7
Merge pull request #5572 from yifan-gu/rkt_support
...
Add container runtime
2015-03-20 14:38:48 -07:00
Dawn Chen
7a6490f572
Merge pull request #5729 from thockin/plural_endpoints_30_restart
...
Rename Service.ContainerPort to TargetPort in v1b3
2015-03-20 14:37:46 -07:00
Yu-Ju Hong
0206115703
Merge pull request #5697 from vmarmol/doc
...
Correct documentation about stats arguments.
2015-03-20 14:22:33 -07:00
Victor Marmol
5cfe0c04f8
Merge pull request #5705 from wojtek-t/refactor_file_test
...
Refactor pkg/kubelet/config/file_test.go
2015-03-20 14:08:06 -07:00
nikhiljindal
1b87060aec
Adding GetFieldSelector() to client.EventInterface
2015-03-20 13:58:23 -07:00
Tim Hockin
4375376e9c
Rename Service.ContainerPort to TargetPort in v1b3
...
Fix all callers and examples. Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Tim Hockin
bfadae77e0
Promote volume plugins, prep for persistent vols
...
Move pkg/kubelet/volume/... to pkg/volume/...
Some renames to make the soon-to-come persistent volumes work clearer.
2015-03-20 13:49:40 -07:00
Yifan Gu
487d34e409
kubelet: add container runtime cache and fake runtime.
2015-03-20 13:15:20 -07:00
Yifan Gu
319d537cf9
kubelet: add container runtime interface.
2015-03-20 13:15:20 -07:00
Wojciech Tyczynski
9c4ef28b2d
Comments
2015-03-20 20:13:16 +01:00
Wojciech Tyczynski
3b367f8ab8
Refactor file_test.go
2015-03-20 20:13:16 +01:00
Abhishek Gupta
b0c23c1046
Headless Services: Adding option to specify None for PortalIP
2015-03-20 12:10:03 -07:00
Victor Marmol
c5f73516b6
Merge pull request #5704 from wojtek-t/kubelet_file_read_pod
...
Kubelet read pods from file
2015-03-20 10:00:49 -07:00
Victor Marmol
e94c5c3fa9
Merge pull request #5677 from smarterclayton/remove_healthz_global
...
Remove global map from healthz
2015-03-20 08:32:39 -07:00
Satnam Singh
ec77230386
Merge pull request #5416 from smarterclayton/use_utc_serialized_and_local_otherwise
...
Use UTC when marshalling times and Local when unmarshalling
2015-03-20 08:32:26 -07:00
Victor Marmol
dd74fa7f85
Merge pull request #5703 from fgrzadkowski/empty_pod_docs
...
Add documentation explaining there must be at least one container in a Pod
2015-03-20 08:07:25 -07:00
Wojciech Tyczynski
7a7e64331c
Kubelet file read both ContainerManifest and Pod
2015-03-20 12:09:09 +01:00
Filip Grzadkowski
a48e9af28d
Add documentation explaining there must be at least one container in a Pod
2015-03-20 11:10:30 +01:00
Wojciech Tyczynski
c5d8c391fb
Refactor kubelet/config to share code
2015-03-20 09:40:52 +01:00
Victor Marmol
fc8f4411ef
Correct documentation about stats arguments.
2015-03-19 22:11:04 -07:00
Clayton Coleman
6918a4d32e
Replace automatic YAML decoding with opt-in YAML decoding
...
Base codecs no longer automically handle YAML. Instead, clients
must convert to JSON first via yaml.ToJSON and runtime.YAMLDecoder.
2015-03-20 00:03:56 -04:00
Clayton Coleman
71abc99dbe
Expose a ToJSON and runtime.YAMLDecoder helper
...
Enables clients to optionally handle YAML
2015-03-20 00:03:56 -04:00
Clayton Coleman
022c103699
Update RollingUpdater to use resource.Builder
...
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -04:00
Clayton Coleman
84ab8f7254
Reduce probe logging level
...
Too chatty for normal operation
2015-03-19 23:06:21 -04:00
Victor Marmol
b6d2cf4b3e
Merge pull request #5685 from yujuhong/pod_status
...
Kubelet: per-pod workers should avoid grabbing the pod array lock
2015-03-19 18:54:36 -07:00
Yu-Ju Hong
0d0fb5f07b
Kubelet: per-pod workers should avoid grabbing the pod array lock
...
Per-pod worker syncs the pod and container status, and write the pod status in
the pod status cache. Given that it already owns a copy of the pod, it can
bypass the additional pod lookup step completely. This change adds a new
generatePodStatusByPod() method to achieve this. In general, per-pod worker
should avoid accessing the internal pod array completely, as this would may
lead to high contention.
This change also changes the return type of GetPodByFullName to reflect the
name, and consolidates GetPodByFullName() and GetPodByName().
2015-03-19 18:25:41 -07:00
Brian Grant
699dc96c7b
Merge pull request #5085 from smarterclayton/allow_graceful_delete
...
Support graceful deletion of resources
2015-03-19 17:58:31 -07:00
Clayton Coleman
015bc3b7bd
Remove global map from healthz
...
It currently is impossible to use two healthz handlers on different
ports in the same process. This removes the global variables in favor
of requiring the consumer to specify all health checks up front.
2015-03-19 19:49:44 -04:00
Tim Hockin
1cbde2c5c7
Merge pull request #5664 from calfonso/nfs_mount_plugin
...
Addresses cross compile for syscall.Unmount by delegating to Mount.
2015-03-19 16:19:01 -07:00
Tim Hockin
4ee6eb8c73
Make net plugins build on non-unix
2015-03-19 16:15:33 -07:00
CJ Cullen
7ddcecfd1c
Revert "Revert "[WIP] southbound networking hooks in kubelet""
2015-03-19 16:14:13 -07:00
Zach Loafman
b5d1e538df
Revert "[WIP] southbound networking hooks in kubelet"
2015-03-19 16:08:08 -07:00
Tim Hockin
1ce5dda691
Merge pull request #5069 from rajatchopra/network_hooks
...
[WIP] southbound networking hooks in kubelet
2015-03-19 15:03:53 -07:00
CJ Cullen
f6d8d5f800
Merge pull request #5522 from fabioy/expose-label.fix
...
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07:00
Rajat Chopra
7857aa7751
kubelet networking plugin
2015-03-19 14:15:52 -07:00
Chris Alfonso
9d0c9e7dc3
Addresses cross compile for syscall.Unmount by delegating to Mount.
2015-03-19 16:46:14 -04:00
Jerzy Szczepkowski
c0ff504ad3
Merge pull request #5501 from jszczepkowski/kubelet-spechost
...
Running resource predicate on kubelet.
2015-03-19 21:34:27 +01:00
Clayton Coleman
428d2263e5
Graceful deletion of resources
...
This commit adds support to core resources to enable deferred deletion
of resources. Clients may optionally specify a time period after which
resources must be deleted via an object sent with their DELETE. That
object may define an optional grace period in seconds, or allow the
default "preferred" value for a resource to be used. Once the object
is marked as pending deletion, the deletionTimestamp field will be set
and an etcd TTL will be in place.
Clients should assume resources that have deletionTimestamp set will
be deleted at some point in the future. Other changes will come later
to enable graceful deletion on a per resource basis.
2015-03-19 15:33:32 -04:00
Victor Marmol
6f6485909e
Merge pull request #5598 from wojtek-t/kubelet_http_read_pod
...
Kubelet read pods from http
2015-03-19 11:49:28 -07:00
Tim Hockin
9bc2b0c2db
Merge pull request #4601 from calfonso/nfs_mount_plugin
...
NFSMount storage plugin for kubelet.
2015-03-19 11:19:12 -07:00
Victor Marmol
84ee72d4a7
Merge pull request #5631 from dchen1107/podstatus
...
Remove PodIP from ContainerStatus
2015-03-19 11:03:10 -07:00
Wojciech Tyczynski
c512c549a1
Kubelet http read both ContainerManifest and Pod
2015-03-19 18:57:00 +01:00
Dawn Chen
4910be6dcb
Remove PodIP from ContainerStatus
2015-03-19 10:42:01 -07:00
Chris Alfonso
1a45e37d17
NFSMount storage plugin for kubelet.
...
* If you want to test this out when an actual NFS export a good place
to start is by running the NFS server in a container:
docker run -d --name nfs --privileged cpuguy83/nfs-server /tmp
More detail can be found here:
https://github.com/cpuguy83/docker-nfs-server
2015-03-19 13:37:38 -04:00
CJ Cullen
2e7356bca7
Merge pull request #5534 from bprashanth/generic_storage_interface
...
Add a GenericRESTStorage interface
2015-03-19 09:35:06 -07:00
CJ Cullen
80914498e4
Merge pull request #5610 from jlowdermilk/kubectl-flags
...
Declare kubectl validate flag once
2015-03-19 09:26:10 -07:00
Filip Grzadkowski
f89f91b7bd
Validate that there is at least one container in the pod
2015-03-19 12:31:53 +01:00
Jerzy Szczepkowski
5845f6ad48
Running resource predicate on kubelet.
...
Added checking on kubelet if scheduled pods do not exceed resources. Related to #5207 .
2015-03-19 10:40:10 +01:00
gmarek
cbf57ee324
Merge pull request #5588 from hurf/master
...
Fix comments on caculating scores.
2015-03-19 07:44:11 +01:00
Yu-Ju Hong
187cbcfabf
Merge pull request #5627 from vmarmol/fix-test
...
Fix data race in imageManager test.
2015-03-18 18:24:18 -07:00
Yu-Ju Hong
05c61d2e47
Merge pull request #5622 from vmarmol/http
...
Add SelfLink to Kubelet http source.
2015-03-18 18:09:05 -07:00
Victor Marmol
6db6e41a34
Merge pull request #5632 from yujuhong/manifest
...
kubelet/config/http_test: use versioned ContainerManifest
2015-03-18 17:58:19 -07:00
Yu-Ju Hong
7b71780dfc
kubelet/config/http_test: use versioned ContainerManifest
2015-03-18 17:40:40 -07:00
Dawn Chen
52e1ee9d5b
Merge pull request #5619 from vmarmol/rate
...
Spread out pod status updates to apiserver.
2015-03-18 17:26:02 -07:00
Victor Marmol
3a3b950009
Fix data race in imageManager test.
...
The background monitoring thread was using the DockerClient before we
had written our fake data. This commit stops the background thread from
running during tests.
Fixes #5611 .
2015-03-18 17:02:03 -07:00
Victor Marmol
ce96182cc3
Add SelfLink to Kubelet http source.
2015-03-18 16:38:41 -07:00
Prashanth Balasubramanian
960e16c397
Embed etcdgeneric in RESTStorage for pods
2015-03-18 16:31:33 -07:00
Brian Grant
11f9733599
Merge pull request #5587 from nikhiljindal/enable3
...
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 16:14:20 -07:00
Victor Marmol
cda4b6c598
Spread out pod status updates to apiserver.
...
Lowers pod status interval to every 2m and spreads updates within that
time window.
2015-03-18 15:43:07 -07:00
nikhiljindal
7e36bbab3c
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 15:24:11 -07:00
Clayton Coleman
d516a86633
Use UTC when marshalling times and Local when unmarshalling
...
Marshal to UTC and read into Local, which means clients automatically
show local time and stored values are always consistent.
2015-03-18 17:44:35 -04:00
Yifan Gu
027f6854d0
kubelet: Remove docker container in prober's interface
...
Also change
kubelet.docketIDToRef[dockertools.DockerID]*api.ObjectReference{} to
kubelet.containerIDToRef[string]*api.ObjectReference{}.
2015-03-18 14:28:27 -07:00
Jeff Lowdermilk
39211af25e
Declare kubectl validate flag once
2015-03-18 14:00:19 -07:00
Yu-Ju Hong
6e8a8b741a
Kubelet: simplify the lock acquring pattern
...
Avoid holding both podStatusesLock and podLock at the same time.
2015-03-18 11:45:29 -07:00
CJ Cullen
c34200824c
Merge pull request #5584 from brendandburns/err
...
start normalizing error handling in watch.
2015-03-18 10:49:34 -07:00
Jeff Lowdermilk
72699606a9
Merge pull request #5541 from deads2k/deads-expose-resolve-local-paths
...
allow any number of kubeconfig files
2015-03-18 10:46:47 -07:00
Victor Marmol
9586b39bb7
Merge pull request #5555 from fgrzadkowski/sync_pod_status
...
Periodically update pod status from kubelet.
2015-03-18 10:14:07 -07:00
Jeff Lowdermilk
e92067d102
Merge pull request #5481 from TamerTas/issue#4470
...
Remove cmd from kubectl/cmd/factory
2015-03-18 10:03:25 -07:00
Dawn Chen
f746123438
Merge pull request #5580 from ncdc/docker-ParseRepositoryTag
...
Use docker's ParseRepositoryTag when pulling
2015-03-18 08:55:56 -07:00
Dawn Chen
9e781bc57d
Merge pull request #5569 from vmarmol/image-gc
...
Garbage collecting images in the Kubelet.
2015-03-18 08:55:08 -07:00
Tamer Tas
b39e31d8a3
Remove cmd from kubectl/cmd/factory
2015-03-18 14:23:14 +02:00
Filip Grzadkowski
1a352b74ba
Periodically update pod status from kubelet.
2015-03-18 12:11:39 +01:00
gmarek
a3b137ce8e
Cleanup of validation.go
2015-03-18 08:59:35 +01:00
Brendan Burns
6d763dce2b
start normalizing error handling in watch.
2015-03-17 21:04:55 -07:00
Victor Marmol
d78ecf820e
Garbage collecting images in the Kubelet.
...
Integrated the imageManager into the Kubelet and applies the garbage
collection policy every 5 minutes. The default policy allows up to 90%
disk usage, after which images are garbage collected to bring limit back
down to 80%.
Fixes #157 .
2015-03-17 17:56:02 -07:00
Jeff Lowdermilk
faab509a23
Merge pull request #5543 from you-n-g/master
...
add get available versions commmand
2015-03-17 17:34:33 -07:00
Andy Goldstein
7b07960758
Use docker's ParseRepositoryTag when pulling
2015-03-17 20:15:13 -04:00
Tim Hockin
7e42fc86fd
Merge pull request #5573 from brendandburns/err
...
Set the emptyNameError to be a bad request. Always return a JSON error.
2015-03-17 16:43:22 -07:00
Brendan Burns
4725ecac3f
Set the emptyNameError to be a bad request. Always return a JSON error.
2015-03-17 16:17:14 -07:00
Yu-Ju Hong
b84de4e986
Merge pull request #5571 from vmarmol/fix
...
Adding errors to Kubelet events.
2015-03-17 16:14:58 -07:00
Dawn Chen
cbe4a1a679
Merge pull request #5510 from vmarmol/gc
...
Introduce and implement container GC policy
2015-03-17 16:02:17 -07:00
Victor Marmol
0c664a343c
Adding errors to Kubelet events.
...
This will help while debugging issues that generate events.
Also removed unecessary log line.
2015-03-17 15:55:25 -07:00
Zach Loafman
5496686f33
Revert "Use docker's ParseRepositoryTag when pulling"
2015-03-17 15:16:33 -07:00
Salvatore Dario Minonne
31ddefc347
Finalize fields.Selector
2015-03-17 22:55:43 +01:00
Dawn Chen
2a5610dbcb
Merge pull request #5558 from ncdc/docker-ParseRepositoryTag
...
Use docker's ParseRepositoryTag when pulling
2015-03-17 12:56:22 -07:00
Victor Marmol
d1ed571e28
Use containerGC in the Kubelet.
...
New policy default is 100 containers max.
Fixes #5457 .
2015-03-17 10:50:32 -07:00
Victor Marmol
4c17c09a8f
Separate GC policy into containerGC struct.
...
The policy today takes a min GC age, max dead containers per pod, and
max containers overall. When GC is called, only dead containers created
more than min GC age ago are considered. The policy tries to keep one
dead instance of every pod's containers.
2015-03-17 10:50:06 -07:00
Dawn Chen
5a04bf6316
Merge pull request #5512 from vmarmol/igc
...
Introduce and implement image GC policy
2015-03-17 10:36:22 -07:00
Victor Marmol
6b9b2a5ef1
Merge pull request #5401 from yujuhong/syncstatic
...
Sync static pods from Kubelet to the API server
2015-03-17 10:36:05 -07:00
Andy Goldstein
c08f41c18b
Use docker's ParseRepositoryTag when pulling
2015-03-17 13:23:17 -04:00
fabioy
401451c510
Add "--labels" option to the "expose" kubectl command.
2015-03-17 09:47:57 -07:00
Victor Marmol
6bcbf12a3d
Add image garbage collection policy to imageManager.
2015-03-17 09:19:04 -07:00
Victor Marmol
303a1f7ea1
Adding cAdvisor API to get image usage information.
2015-03-17 09:17:38 -07:00
Tim Hockin
879a39bcc4
Merge pull request #5192 from quinton-hoole/2015-03-06-service-namespace-clash
...
Fix service namespace clash
2015-03-17 09:10:50 -07:00
Yu-Ju Hong
929fb63b33
Sync static pods from Kubelet to the API server
...
Currently, API server is not aware of the static pods (manifests from
sources other than the API server, e.g. file and http) at all. This is
inconvenient since users cannot check the static pods through kubectl.
It is also sub-optimal because scheduler is unaware of the resource
consumption by these static pods on the node.
This change syncs the information back to the API server by creating a
mirror pod via API server for each static pod.
- Kubelet creates containers for the static pod, as it would do
normally.
- If a mirror pod gets deleted, Kubelet will re-create one. The
containers are sync'd to the static pods, so they will not be
affected.
- If a static pod gets removed from the source (e.g. manifest file
removed from the directory), the orphaned mirror pod will be deleted.
Note that because events are associated with UID, and the mirror pod has
a different UID than the original static pod, the events will not be
shown for the mirror pod when running `kubectl describe pod
<mirror_pod>`.
2015-03-17 08:45:56 -07:00
Victor Marmol
668e2dbcd8
Merge pull request #5502 from wojtek-t/completely_remove_bound_pods
...
Remove BoundPod type from source code
2015-03-17 08:09:50 -07:00
Brendan Burns
5fb18c6f33
Merge pull request #5101 from justinsb/aws_getnoderesources
...
Add support for GetNodeResources to AWS
2015-03-17 07:30:34 -07:00
Brendan Burns
b2ed6b3255
Merge pull request #3171 from anguslees/openstack-provider
...
OpenStack updates
2015-03-17 07:30:08 -07:00
Young
97b647207e
add get available versions commmand
2015-03-17 13:51:18 +00:00
Filip Grzadkowski
18b728ff44
Revert "Periodically update pod status from kubelet."
2015-03-17 13:51:45 +01:00
deads2k
8555ed3ede
allow any number of kubeconfig files
2015-03-17 08:49:34 -04:00
Wojciech Tyczynski
e6d188fca8
Remove BoundPod structure
2015-03-17 10:27:41 +01:00
Quinton Hoole
cc72eaec3a
Fix services namespace clash.
...
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00
Victor Marmol
c04ceec27f
Merge pull request #5531 from GoogleCloudPlatform/rel-0.13
...
Release 0.13.0
2015-03-16 17:06:57 -07:00
Victor Marmol
009737e69e
Merge pull request #5205 from fgrzadkowski/sync_pod_status
...
Periodically update pod status from kubelet.
2015-03-16 17:04:31 -07:00
Victor Marmol
fa23519387
Merge pull request #5167 from thockin/volume_wrapper_plugins
...
Implement volume wrapper plugins
2015-03-16 16:37:50 -07:00
Brendan Burns
7fbf52a599
Kubernetes version v0.13.0-dev
2015-03-16 16:31:03 -07:00
Brendan Burns
8d8b9b9a78
Kubernetes version v0.13.0
2015-03-16 16:31:03 -07:00
Tim Hockin
b42652cd3d
Retool mount detection for tests
2015-03-16 16:17:47 -07:00
Brian Grant
407589147e
Merge pull request #5005 from jdef/persistent_bindings
...
Persist Bindings annotations alongside pod Host assignment
2015-03-16 16:16:44 -07:00
Brian Grant
2f9a41b898
Merge pull request #5233 from brendandburns/labels
...
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Filip Grzadkowski
336525a27d
Periodically update pod status from kubelet.
2015-03-16 23:03:03 +01:00
Tim Hockin
9eebaa8168
Merge pull request #4115 from sub-mod/master_changes
...
Use discovery heuristics in ChooseHostInterface method to fetch PublicAddress
2015-03-16 14:31:15 -07:00
Derek Carr
1291401c2e
Merge pull request #5516 from smarterclayton/add_ttl_to_helper
...
Add TTL support to etcd_helper in preparation for graceful delete
2015-03-16 17:14:35 -04:00
Tim Hockin
1725c23eb2
Implement volume plugin wrappers
...
Convert git_repo and secret into wrappers around empty_dir.
2015-03-16 14:07:58 -07:00
Victor Marmol
bdc1981eb5
Merge pull request #5433 from wojtek-t/remove_bound_pods
...
Remove BoundPods from Kubelet
2015-03-16 13:38:24 -07:00
Clayton Coleman
bddef32193
Prepare EtcdHelper to extract more data from Node
...
In order to support graceful deletion, the resource object will
need access to the TTL value in etcd. Also, in the future we
may want to get the creation index (distinct from modifiedindex)
and expose it to clients. Change EtcdResourceVersioner to be
more type specific (objects vs lists) and provide a default
implementation that relies on the internal API convention.
Also, rename etcd_tools.go to etcd_helper.go and split a few
things up.
2015-03-16 15:33:50 -04:00
Nikhil Jindal
d1dc17120d
Merge pull request #4880 from smarterclayton/better_describe
...
Make Describe functions available to local objects
2015-03-16 12:19:22 -07:00
Clayton Coleman
4ca90e0343
FakeEtcdClient should return KeyNotFound on Delete
2015-03-16 14:22:03 -04:00
Clayton Coleman
143015025a
Support TTL in genericetcd#Update
2015-03-16 14:22:01 -04:00
Wojciech Tyczynski
5d95e9e671
Remove BoundPods from Kubelet
2015-03-16 19:17:21 +01:00
Subin M
1138045185
use ChooseHostInterface to get IP
2015-03-16 23:37:00 +05:30
Jeff Lowdermilk
e37fd2a84d
Merge pull request #5477 from dchen1107/clean
...
Convert RestartPolicy to string for v1beta3.
2015-03-16 10:23:52 -07:00
Jeff Lowdermilk
2a8528704a
Merge pull request #5446 from lavalamp/fix2
...
Add a system modeler to scheduler
2015-03-16 10:21:02 -07:00
Jeff Lowdermilk
231d6739d4
Merge pull request #5458 from mattmoor/master
...
Enable usage of a "json key" for authenticating with gcr.io.
2015-03-16 10:12:33 -07:00
Jeff Lowdermilk
f3cb9949a7
Merge pull request #5484 from smarterclayton/dont_warn_on_existing
...
Don't log when auto-published services and namespace exist already
2015-03-16 09:54:19 -07:00
Clayton Coleman
fe7a573315
Merge pull request #5369 from derekwaynecarr/namespace_registry
...
Improvements to namespace registry to align with pod model
2015-03-16 11:14:05 -04:00
Robert Bailey
26acbc417b
Merge pull request #5452 from piosz/fixes
...
Increased default timeout in APIServer to 2 minutes
2015-03-16 08:06:28 -07:00
derekwaynecarr
9824d2b5f7
Embed generic etcd in namespace rest store
2015-03-16 10:45:04 -04:00
derekwaynecarr
2d13dfaf13
Improvements to namespace registry to align with pod model
2015-03-16 10:16:28 -04:00
Angus Lees
1437e6b7ca
OpenStack: Return multiple private+public NodeAddresses
...
Add better support for the new NodeAddresses call. Note the returned
list may include IPv6 addresses (as strings) on many OpenStack clouds.
2015-03-16 17:11:36 +11:00
Angus Lees
8f5064bfea
nodecontroller: Include error in error messages
...
Makes debugging node creation failures far easier...
2015-03-16 15:36:45 +11:00
Angus Lees
437853b8cd
Keep resources as numeric values
...
Previously, this code converted to a string and reparsed back to a
numeric Quantity. Keeping it numeric avoids the overhead, but also
removes a (theoretical) run-time panic if the re-parse failed.
In addition, since Quantity can now store quantities <1, convert
openstack.org/rxTxFactor back to its original ratio, rather than
arbitrarily scaling it up by 1000.
2015-03-16 15:35:45 +11:00
Angus Lees
e14b73bd30
Reauthenticate to OpenStack periodically
...
It appears that gophercloud's "AllowReauth" AuthOption doesn't actually
do anything, and the keystone/auth token is never refreshed. Eventually
it expires and all OpenStack calls receive HTTP 401 responses.
This change reauthenticates every time the Instances() or
TCPLoadBalancer() API object is requested. This is more frequently than
required, but exposing token expiry information will require gophercloud
surgery.
2015-03-16 15:35:45 +11:00
Angus Lees
762225ed47
OpenStack: Align logging levels with devel/logging.md
2015-03-16 15:35:43 +11:00
Angus Lees
4ff292a65e
OpenStack: Support loadbalancer client IP affinity
2015-03-16 15:33:54 +11:00
Clayton Coleman
85d96f9e7a
Make describe able to be invoked on local resources
...
Support a more flexible access mechanism for getting a describer given
only an object.
2015-03-16 00:09:20 -04:00
Matt Moore
d5e0054eb0
Enable usage of a "json key" for authenticating with gcr.io.
...
With this change, you can add --google_json_key=/path/to/key.json to the DAEMON_ARGS of the kubelet, e.g.
nano /etc/default/kubelet
... # Add the flag
service kubelet restart
With this setting, minions will be able to authenticate with gcr.io repositories nearly as smoothly as if K8s were running on GCE.
NOTE: This private key can be used to access most project resources, consider dropping the service account created through this flow to a project READER, or restricting its access to just the GCS bucket containing the container images.
2015-03-15 09:24:33 -07:00
Clayton Coleman
893a64f2ed
Don't log when auto-published services and namespace exist already
...
Also, be a bit less chatty w.r.t. master setDefaults
2015-03-14 13:07:56 -04:00
Piotr Szczesniak
ffcf7b1866
Increased default timeout in APIServer to 2 minutes
...
This should for #5431
2015-03-14 06:54:31 +01:00
Justin Santa Barbara
51aded0661
Add support for GetNodeResources to AWS
2015-03-13 22:59:28 -04:00
Dawn Chen
34e9c82c70
Convert RestartPolicy to string for v1beta3.
...
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Daniel Smith
992d78a32e
Add a system modeler to scheduler
...
So it can try to predict the effect its bindings will have.
2015-03-13 17:48:16 -07:00
Dawn Chen
39b52e92a9
Merge pull request #5308 from vmarmol/cadvisor-build
...
Run cAdvisor inside Kubelet
2015-03-13 16:41:40 -07:00
Eric Tune
e214802e45
Merge pull request #5460 from derekwaynecarr/eliminate_resource_quota_usage
...
Eliminate resource quota usage
2015-03-13 16:10:26 -07:00
Victor Marmol
dc96ea6300
Run cAdvisor inside the Kubelet.
...
cAdvisor is started as a Kubelet dependency during startup of the
Kubelet before the sync loops start.
2015-03-13 16:06:02 -07:00
Victor Marmol
b00e82ed93
Merge pull request #5466 from dchen1107/docker
...
Fix a regression introduced lately: When any given PodInfraContainer on ...
2015-03-13 16:04:01 -07:00
Satnam Singh
ce7658a302
Merge pull request #5445 from vmarmol/unused
...
Remove unused handleUpdate() in Kubelet.
2015-03-13 16:00:17 -07:00
Dawn Chen
732d4cb2b9
Fix a regression introduced lately: When any given PodInfraContainer on a node
...
is killed, kubelet kills all remaining containers no matter which pod that
container belongs to.
Fixed #5373
2015-03-13 15:46:30 -07:00
Alex Robinson
579edee4c2
Merge pull request #5346 from justinsb/cloudprovider_multiple_addresses
...
Let CloudProvider return list of NodeAddress, not just one net.IP
2015-03-13 15:45:11 -07:00
Dawn Chen
0cc2b62b4a
Merge pull request #5265 from ddysher/kubelet-post-status
...
kubelet post node status to master
2015-03-13 15:29:22 -07:00
Justin Santa Barbara
c3a6d00099
Rename TestIPAddress -> TestNodeAddresses
2015-03-13 18:09:31 -04:00
Justin Santa Barbara
99da56fb06
Fix problems identified in review
2015-03-13 18:07:08 -04:00
Victor Marmol
efcde725cc
Merge pull request #5166 from thockin/tmpfs
...
Add tmpfs support as a flag on emptyDir
2015-03-13 14:48:52 -07:00
Daniel Smith
b02412f44e
Merge pull request #5443 from bprashanth/rc_validation
...
Add an rc strategy, start delta validating updates
2015-03-13 13:52:19 -07:00
derekwaynecarr
799e3fa9cc
Eliminate ResourceQuotaUsage in favor of ResourceQuota status
2015-03-13 16:52:09 -04:00
derekwaynecarr
df5744ad8f
ResourceQuota should have labels in v1beta1 and v1beta2
2015-03-13 16:52:08 -04:00
Tim Hockin
caca5e7358
Add tmpfs support to EmptyDir
...
# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate
#
# Your commit will be aborted unless you regenerate docs.
COMMIT_BLOCKED_ON_GENDOCS
2015-03-13 13:36:13 -07:00
Tim Hockin
50c96789e7
Add an action log to FakeMounter.
...
# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate
#
# Your commit will be aborted unless you regenerate docs.
COMMIT_BLOCKED_ON_GENDOCS
2015-03-13 13:33:50 -07:00
Prashanth Balasubramanian
6193608e9b
Add an rc strategy, start delta validating updates
2015-03-13 13:09:03 -07:00
Victor Marmol
22f306299b
Merge pull request #5438 from timothysc/kube-profiling
...
Option to enable profiling on the master daemon processes.
2015-03-13 12:52:50 -07:00
Daniel Smith
e3594dfe2f
Merge pull request #5404 from derekwaynecarr/delete_events
...
Client support to delete events
2015-03-13 12:36:43 -07:00
Brendan Burns
cf68593fc2
Merge pull request #5228 from justinsb/aws_lb_string
...
Change cloud provider CreateTCPLoadBalancer to return endpoint as string
2015-03-13 12:16:26 -07:00
Vish Kannan
13253d09e1
Merge pull request #5444 from vmarmol/lock
...
Lock access and update to Kubelet pods.
2015-03-13 11:06:50 -07:00
Deyuan Deng
97e12957e6
Merge pull request #5257 from deads2k/deads-eliminate-wait-for-no-nodes
...
eliminate wait with no nodes
2015-03-13 13:48:49 -04:00
Victor Marmol
505dbc54db
Merge pull request #5022 from gmarek/client3
...
Refactor kubelet syncPod method and fix behavior of Infra Containers for RestartPolicy::Never.
2015-03-13 10:46:35 -07:00
Victor Marmol
04233cdb88
Remove unused handleUpdate() in Kubelet.
2015-03-13 10:35:50 -07:00
Victor Marmol
0e485310cf
Lock access and update to Kubelet pods.
2015-03-13 10:31:26 -07:00
Brendan Burns
6319f8a568
Merge pull request #5400 from sub-mod/proxy_test
...
fix proxy_test.go file to avoid ChooseHostInterface
2015-03-13 10:27:45 -07:00
gmarek
3489d1ae01
Refactor kubelet syncPod method
2015-03-13 18:22:42 +01:00
Rohit Jnagal
203f37a58a
Merge pull request #5240 from xudifsd/rm-double-write-in-apiserver-proxy
...
Redirector.ResourceLocation shouldn't return `"", nil`
2015-03-13 09:20:46 -07:00
Timothy St. Clair
7eebf674d4
Update to option enable profiling on the master daemon processes.
...
--profiling=true , default is false
2015-03-13 10:45:01 -05:00
Satnam Singh
53b25a7890
Merge pull request #5429 from jszczepkowski/podfactory
...
Cleanup: removed BoundPodFactory.
2015-03-13 08:13:22 -07:00
Satnam Singh
27c51ee6f5
Merge pull request #5430 from wojtek-t/remove_etcd_references_from_replication_controllers
...
Remove etcd references from ReplicationController
2015-03-13 07:54:08 -07:00
Satnam Singh
df0838ed31
Merge pull request #5426 from nikhiljindal/swagger
...
Updating api_installer to register paths in a deterministic order to get a deterministic swagger spec
2015-03-13 07:48:44 -07:00
James DeFelice
20eb3c49c5
resolves #4103
...
clarify resource conflict status, rebase to master
remove ResourceConflict, replace usage with Conflict
2015-03-13 12:16:51 +00:00
Jerzy Szczepkowski
ba9d02c0c7
Cleanup: removed BoundPodFactory.
...
Removed unused code: BoundPodFactory. Fixes #5384 .
2015-03-13 10:44:25 +01:00
Wojciech Tyczynski
07cf658100
Remove etcd references from ReplicationController
2015-03-13 10:36:54 +01:00
nikhiljindal
5b1e8589e9
Updating api_installer to register paths in a deterministic order to get a deterministic swagger spec
2015-03-12 22:55:17 -07:00
Di Xu
3fac253536
Redirector.ResourceLocation shouldn't return `"", nil`
2015-03-13 08:26:46 +08:00
Victor Marmol
4675fcc57d
Make ParseDockerName() return an error.
...
This forces callers to handle cases where the container name could not
be parsed.
2015-03-12 16:33:16 -07:00
Brian Grant
7d72b64f60
Merge pull request #5200 from nikhiljindal/eventConverter
...
Adding conversion functions for event field selectors
2015-03-12 16:31:57 -07:00
Brian Grant
98fedf6b2e
Merge pull request #5407 from nikhiljindal/newSwagger
...
Updating go-restful to the latest version
2015-03-12 16:26:16 -07:00
nikhiljindal
b2276b5d4b
Updating pkg/api/validation/ to consider swagger.items as object and not array
2015-03-12 16:04:11 -07:00
Nikhil Jindal
d9249a26e0
Merge pull request #5175 from thockin/plural_services_10
...
Make testing service validation easier
2015-03-12 15:48:37 -07:00
Deyuan Deng
ae162fded4
Merge pull request #4585 from pravisankar/deactivate-node
...
Allow admin user to explicitly unschedule the node
2015-03-12 18:09:02 -04:00
Satnam Singh
b5082b2904
Merge pull request #5397 from brendandburns/master
...
Fix tests on OS X by re-introducing the old choose host interface
2015-03-12 14:31:31 -07:00
Ravi Sankar Penta
f6ecec5880
Allow admin user to explicitly unschedule the node
...
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
nikhiljindal
790a8bbd23
Adding conversion functions for event field selectors
2015-03-12 14:10:51 -07:00
derekwaynecarr
703d2a87bf
Client support to delete events
2015-03-12 16:55:31 -04:00
Subin M
269ad3216f
fix proxy_test.go file to avoid ChooseHostInterface
2015-03-13 01:40:48 +05:30
Dawn Chen
ee4e887183
Merge pull request #5395 from vmarmol/fix
...
Garbage collect unidentified Kubernetes containers.
2015-03-12 12:58:22 -07:00
Brendan Burns
fab2b53ccf
Fix tests on OS X by re-introducing the old choose host interface
...
function as a fall back.
2015-03-12 12:33:06 -07:00
Brendan Burns
266234f3b9
Make label and field selector query strings versionable.
2015-03-12 12:24:07 -07:00
Victor Marmol
51122998e3
Garbage collect unidentified Kubernetes containers.
...
These containers may be caused by a change in the Kubernetes naming
convention. The old containers are killed, the new ones started, but the
old ones are never GC'd. This change makes Kubelet GC all Kubernetes
containers, old and new.
Fixes #5372 .
2015-03-12 11:40:35 -07:00
Satnam Singh
27c77567d9
Merge pull request #5342 from nikhiljindal/masterUrl
...
Adding http:// prefix to the swagger WebServicesURL to prevent basePath validation errors
2015-03-12 10:58:36 -07:00
Brian Grant
19b6c85fa5
Merge pull request #5363 from wojtek-t/no_bound_pods_in_scheduler
...
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 10:57:03 -07:00
Victor Marmol
2939abb6cb
Merge pull request #5383 from wojtek-t/kubelet_test
...
Speedup pkg/kubelet/runonce_test.go
2015-03-12 10:22:03 -07:00
Alex Robinson
32fbce0707
Merge pull request #5375 from bprashanth/delete_lb
...
Don't check status of a failed delete operation
2015-03-12 09:57:35 -07:00
Victor Marmol
f9d2ab6e48
Use time.Sleep() instead of <-time.After().
2015-03-12 09:25:09 -07:00
Wojciech Tyczynski
dca3db0a50
Speedup pkg/kubelet/runonce_test.go
2015-03-12 17:12:04 +01:00
Prashanth Balasubramanian
4849f33cc5
Don't check status of a failed delete operation
2015-03-12 08:52:18 -07:00
Timothy St. Clair
308bb84cf3
Minor cleanup for etcd cleaning from kubelet
2015-03-12 09:39:22 -05:00
Brian Grant
3cbe9aadff
Merge pull request #5355 from yujuhong/fixspechost
...
Copy Spec.Host to Status.Host on pod creation
2015-03-12 07:25:29 -07:00
Wojciech Tyczynski
9f2f10d6db
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 13:38:58 +01:00
Satnam Singh
a3fd0a9fd5
Merge pull request #5284 from piosz/guestbook_bug
...
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Yu-Ju Hong
533299bf0a
Copy Spec.Host to Status.Host on pod creation
2015-03-11 21:53:51 -07:00
MikeJeffrey
0c6cd21520
Merge pull request #5345 from jlowdermilk/kubectl-docs
...
Fix md generation for kubectl docs
2015-03-11 17:19:51 -07:00
Victor Marmol
1e0601da8a
Merge pull request #5343 from erictune/rm_etcd
...
Kubelet has not even heard of etcd.
2015-03-11 16:59:04 -07:00
nikhiljindal
8c3f728aa6
Adding http:// prefix to the swagger WebServicesURL to prevent basePath validation errors
2015-03-11 16:52:45 -07:00
Justin Santa Barbara
bc16d83a51
Let CloudProvider return list of NodeAddress, not just one net.IP
...
This lets cloud providers populate the NodeAddress array
2015-03-11 16:50:26 -07:00
Jeff Lowdermilk
a5746c9a0e
Fix md generation for kubectl docs
...
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Eric Tune
ae9bc28f8b
Remove mentions of etcd in kubelet.
2015-03-11 16:40:20 -07:00
Eric Tune
ac7bf05079
Kubelet has not even heard of etcd.
2015-03-11 16:29:31 -07:00
Eric Tune
e9b6c75b6a
Stop updating boundPods objects.
...
Does not clean up your existing boundPods records.
Does not clean up all the dead code. Future PRs from me
will do that.
2015-03-11 16:06:03 -07:00
Victor Marmol
03b182e8e9
Merge pull request #5325 from brendandburns/api3
...
Add and extend timeouts.
2015-03-11 15:20:21 -07:00
Brendan Burns
b53b2e1de0
Add and extend timeouts.
2015-03-11 14:12:46 -07:00
Prashanth Balasubramanian
28d9260c0b
Sync replication count with the api server on pod creation/deletion.
2015-03-11 13:29:20 -07:00
Daniel Smith
cc3a433a7a
fix goroutine leak
2015-03-11 12:51:20 -07:00
Zach Loafman
e780592315
Merge pull request #5264 from jlowdermilk/kube-up
...
Standalone kubeconfig for gce kube-up (mulligan)
2015-03-11 11:46:45 -07:00
Brian Grant
0b48d3209e
Merge pull request #5299 from yujuhong/updatable_v1beta3
...
v1beta3: fields that cannot be updated are marked "cannot be udpated"
2015-03-11 11:36:59 -07:00
Brian Grant
1a75c8843c
Merge pull request #5256 from jszczepkowski/podspec-host
...
Implemented writing Host in Pod.Spec during binding.
2015-03-11 11:30:45 -07:00
Nikhil Jindal
56d365bdd8
Merge pull request #5301 from lavalamp/fix6
...
double-fix crash on my cluster
2015-03-11 10:44:42 -07:00
Yu-Ju Hong
0524d6479d
v1beta3: fields that cannot be updated are marked "cannot be udpated"
2015-03-11 10:10:08 -07:00
Nikhil Jindal
9baa261728
Merge pull request #5219 from jlowdermilk/kubectl-err-handling
...
Make kubectl commands return errors and centralize exit handling
2015-03-11 10:06:52 -07:00
Daniel Smith
6606f9c9f5
double-fix crash on my cluster
2015-03-11 09:54:33 -07:00
Brian Grant
e32d0dbfd9
Merge pull request #5237 from jszczepkowski/stop-labels
...
Added support for labels to "kubectl stop".
2015-03-11 09:51:30 -07:00
Dawn Chen
88e0b04916
Merge pull request #5287 from ncdc/master
...
Remove debugging log message from ExecInContainer
2015-03-11 09:45:37 -07:00
Brian Grant
168eb000c0
Merge pull request #4619 from erictune/no_port_conflict
...
Remove HostPort conflict checking.
2015-03-11 09:41:55 -07:00
Wojciech Tyczynski
0ffd607c79
PodWorkers test.
2015-03-11 16:58:22 +01:00
Victor Marmol
18ebae9653
Merge pull request #5239 from wojtek-t/desired_pod_cache
...
Change PodWorkers to have desired cache.
2015-03-11 08:54:49 -07:00
Wojciech Tyczynski
80576dfed3
Change PodWorkers to have desired cache.
2015-03-11 16:38:31 +01:00
Tim Hockin
52298ab851
Merge pull request #4865 from sub-mod/proxier_go_change
...
use ChooseHostInterface in kube-proxy
2015-03-11 08:09:32 -07:00
Andy Goldstein
0c798bbe52
Remove debugging log message from ExecInContainer
2015-03-11 10:07:14 -04:00
Jerzy Szczepkowski
9a6857cf2c
Fixed writing Host in Pod.Spec during binding.
...
Fixed writing Host in Pod.Spec during binding. Related to #5207 .
2015-03-11 14:48:10 +01:00