Commit Graph

3766 Commits (6ad5c0735020dbbb32137cfb06e98d59215949e3)

Author SHA1 Message Date
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
Piotr Szczesniak 4679a37b38 Rewrite guestbook example to use kube-dns instead of host:port
This fixes #5091
2015-03-11 09:51:47 +01:00
Jerzy Szczepkowski 110ab79f05 Added support for labels to "kubectl stop".
Added support for labels and --all to "kubectl stop". Fixes #5178.
2015-03-11 09:43:29 +01:00
Subin M b8c91e7344 use ChooseHostInterface in kube-proxy 2015-03-11 13:50:53 +05:30
Eric Tune 5e8d70f76b Remove HostPort conflict checking.
We decided to get rid of boundPods.   Removing this check is
a prerequisite for that.  This check had some value before we had
IP-per-Pod.  However, AIUI, use of HostPort is strongly discouraged
in Kubernetes.  It still exists as part of a Pod spec because
of ContainerVM, where it is used.  But, this change does not affect
ContainerVM, where there is no master.

If someone did create pods with HostPort using kubernetes, the following
would happen:
  - The scheduler would try not to put two conflicting pods on the same
    machine (pkg/scheduler/predicates.go : PodFitsPorts() )
  - I'm not sure if it is currently possible for a race to occur where
    the PodFitsPorts check were bypassed.   Maybe it could happen.
  - If the kubelet was sent conflicting pods, it would detect them in
    ( pkg/kubelet/kubelet.go :  filterHostPortConflicts() ).  It would
    arbitrarily pick one pod to run and another to ignore.
  - If all of the above happened and the user filed and issue on github,
    we might figure out that the user used HostPort and tell the user to stop.

TODO:
 - e2e test
 - Several of the demos in examples/ use hostPort.  Change them to
   not specify hostPort and have a service instead.
2015-03-10 22:46:30 -07:00
Deyuan Deng 9982aaa960 kubelet post node status to master 2015-03-10 23:17:36 -04:00
Federico Simoncelli daed0af3b5 api: return endpoints target object references
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 18:32:53 -04:00
Brian Grant 827a92316c Merge pull request #5251 from derekwaynecarr/namespace_lifecycle
Add a NamespacePhase to Namespace
2015-03-10 15:21:07 -07:00
Jeff Lowdermilk 7db006ab1a Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-10 14:23:34 -07:00
Salvatore Dario Minonne 925fa6baf8 Adding fields selector 2015-03-10 22:13:10 +01:00
Brian Grant 9aa744925e Merge pull request #5030 from simon3z/nodeinfo
Add support for fetching node collected information
2015-03-10 14:05:41 -07:00
Daniel Smith a89c1959d4 Merge pull request #5122 from markturansky/volume_interface_improvements
Change volume.NewBuilder podUID argument to ObjectRef
2015-03-10 13:37:49 -07:00
Daniel Smith e1f64b2901 Merge pull request #5235 from jszczepkowski/pods-watch
Watch support in PodInterface.
2015-03-10 11:59:04 -07:00
Paul Morie a486ab078f Fix selfLink issues in integration test 2015-03-10 14:40:16 -04:00
markturansky c7e619d4a0 Change volume.NewBuild arg from podUID to ObjectReference 2015-03-10 14:40:16 -04:00
Brian Grant 7aa060bae7 Merge pull request #4706 from mikedanese/PATCH
add PATCH verb to apiserver
2015-03-10 11:38:22 -07:00
Brian Grant a4d79bfb2c Merge pull request #5139 from ddysher/node-more-describe
Add more information to node describe
2015-03-10 11:26:51 -07:00
Brian Grant 721e754083 Merge pull request #5153 from abhgupta/abhgupta-dev
Using only pods within the same namespace for spreading logic
2015-03-10 11:24:33 -07:00
deads2k 91b92eba2f eliminate wait with no nodes 2015-03-10 14:22:43 -04:00
Brian Grant a5ecfbfe42 Merge pull request #5185 from smarterclayton/ignore_creation_timestamp
Ignore changes to creation timestamp from clients on update
2015-03-10 11:21:13 -07:00
Dawn Chen 56cbe6c59f Merge pull request #5231 from mikedanese/no-more-globals
Move global func into NodeController
2015-03-10 11:12:45 -07:00
derekwaynecarr 7de138a9bb Add a NamespacePhase to Namespace 2015-03-10 14:11:54 -04:00
Derek Carr 99a5ab4cfa Merge pull request #5248 from pmorie/fix-events
Fix event recorder not to log events without a reference
2015-03-10 14:08:00 -04:00
Brian Grant 186f17737e Merge pull request #5252 from erictune/remove_etcd_flags
Remove --etcd_servers flag from kubelet and proxy.
2015-03-10 11:06:12 -07:00
Brian Grant b3d3db08ef Merge pull request #5064 from justinsb/ignore_stopped_aws_instances
Ignore EC2 instances that are stopped
2015-03-10 11:03:34 -07:00
Mike Danese 46ec580771 add PATCH to apiserver 2015-03-10 10:56:15 -07:00
Nikhil Jindal 25ff33ae6e Merge pull request #5214 from brendandburns/agent
Add user agent and source IP logging to the httpserver logs.
2015-03-10 10:53:55 -07:00
Jeff Lowdermilk cd7d78b696 Make kubectl commands return errors and centralize exit handling 2015-03-10 10:19:43 -07:00
Alex Mohr 4dc1826ab8 Merge pull request #5229 from brendandburns/errors
Switch selector parse errors to return HTTP 400 instead of the default (500)
2015-03-10 10:16:41 -07:00
Dawn Chen 106e38ebb3 Merge pull request #5213 from yifan-gu/clean_syncPod
Refactor pkg/kubelet/kubelet.go: shouldContainerBeRestarted().
2015-03-10 09:44:32 -07:00
Brian Grant ac582b0d93 Merge pull request #5230 from justinsb/aws_zones
AWS support for Zones
2015-03-10 09:38:23 -07:00
Brian Grant 6062e14313 Merge pull request #5220 from nikhiljindal/camelCaseFieldSelectors
Changing v1beta3 field selectors to be camelCased
2015-03-10 09:35:03 -07:00
Brian Grant 482e6735fb Merge pull request #5236 from tkulczynski/cidrapifix
Change field names from cidr to podCIDR in json
2015-03-10 09:34:16 -07:00
Eric Tune 2ca265ae3b Remove --etcd_servers flag from kubelet and proxy.
All the distros that use this have been updated,
or have PRs out to update them, or owners
have been asked to fix RPMs.

Removing this prevents further use of this model.

Remove now dead code: EtcdClientOrDie

Remove now dead pkg/proxy/config/etcd.go.

Remove unused imports.
2015-03-10 09:29:09 -07:00
Paul Morie a373b234e9 Fix event recorder not to log events without a reference 2015-03-10 11:36:43 -04:00
Federico Simoncelli 644d775bc1 kubelet: retport system info in node information
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:11:02 -04:00
Federico Simoncelli 1b18440f35 kubelet: add GetNodeInfo implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:11:01 -04:00
Federico Simoncelli eb0b6f2bcf kubelet: improve client url composition
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:05:19 -04:00
Justin Santa Barbara 3eab40cabd AWS support for Zones 2015-03-10 05:49:26 -07:00
Tomek Kulczynski 243a3ae315 Change field names from cidr to podCIDR in json 2015-03-10 12:48:34 +01:00
Jerzy Szczepkowski 0342ba3476 Watch support in PodInterface.
Added Watch support to PodInterface. Extended pods e2e to test watch. Resolves #4777.
2015-03-10 09:45:44 +01:00
Mike Danese 14f705c74c move global func into NodeController 2015-03-09 21:25:19 -07:00
Brendan Burns 5b3b330bb8 Switch some parse errors to return HTTP 400 instead of the default (500) 2015-03-09 20:42:14 -07:00
Justin Santa Barbara 5d36d3cdbe Change cloud provider CreateTCPLoadBalancer to return endpoint as string
Some load balancers (particularly AWS ELB) define the public endpoint
as a hostname (instead of using IP addresses).

This is a partial fix for #5224; there will also be some proxy work.
2015-03-09 20:35:13 -07:00
Mike Danese c1b1f29bdc migrate healthz in pkg/kubelet/server.go to custom health checks 2015-03-09 19:26:07 -07:00
Mike Danese 400e7e4145 support user supplied health functions in pkg/healthz 2015-03-09 19:26:07 -07:00
Justin Santa Barbara a3ae480acc Ignore EC2 instances that are stopped
Otherwise we pick up previous cluster instances (in EC2, stopped instances hang around for
a while - maybe 30 minutes?)
2015-03-09 19:03:46 -07:00
nikhiljindal 916ca9cc68 Changing v1beta3 field selectors to be camelCased 2015-03-09 18:01:01 -07:00
Jeff Lowdermilk a280e0da2d Revert "Standalone kubeconfig for gce kube-up" 2015-03-09 17:45:06 -07:00
Yifan Gu 241ef34fba Refactor pkg/kubelet/kubelet.go: shouldContainerBeRestarted().
Simplify the function signature.
2015-03-09 17:42:57 -07:00
Brendan Burns a99f4f3e47 Add user agent and source IP logging to the httpserver logs. 2015-03-09 17:01:47 -07:00
Brian Grant 7b72d9539f Merge pull request #5054 from smarterclayton/switch_to_sub_bindings
Make Pod binding a subresource (and be generic to other types)
2015-03-09 16:41:26 -07:00
Satnam Singh 89bc7bbea9 Merge pull request #5154 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -07:00
Jeff Lowdermilk 4173d369aa Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Deyuan Deng 58776da6a4 Add more information to node describe 2015-03-09 18:56:59 -04:00
Daniel Smith 6de2e615cb Merge pull request #5193 from bprashanth/e2e_stop_controller
Properly reap replication controllers in e2e test
2015-03-09 15:38:26 -07:00
Alex Mohr 56bdd94985 Merge pull request #5199 from brendandburns/master
Fix the test by using an even more bogus tld.
2015-03-09 14:35:14 -07:00
Brendan Burns 0ad6e5b48c Fix the test by using an even more bogus tld. 2015-03-09 14:31:39 -07:00
Brendan Burns 8dd61e25fa Merge pull request #5137 from ddysher/gce-externalid
Use FormatInt instead of string for external id.
2015-03-09 13:47:24 -07:00
Alex Mohr 37bfb0d7cf Merge pull request #5159 from brendandburns/coverage
Expand test coverage in master.
2015-03-09 13:26:37 -07:00
Prashanth Balasubramanian 0e484f25b1 Properly reap replication controllers in e2e test 2015-03-09 13:08:12 -07:00
Clayton Coleman dfc19185f5 Add a subbindings resource as /pods/{name}/binding
Allows POST to create a binding as a child. Also refactors internal
and v1beta3 Binding to be more generic (so that other resources can
support Bindings).
2015-03-09 15:37:19 -04:00
Jeff Lowdermilk d8bbda2558 Merge pull request #5016 from brendandburns/kubecfg
Differentiate between server error messages and client error messages in kubectl
2015-03-09 12:29:51 -07:00
Daniel Smith 2a7be5619a Merge pull request #5116 from justinsb/skip_duplicate_node_address
Don't allow duplicate values in NodeAddresses
2015-03-09 11:59:54 -07:00
Clayton Coleman 227a1d306d Support SubResource call on Request
Allows better semantic use of Request when dealing with sub resources,
and allows clients to ignore ordering.  Supports multiple segments because
sub-resources are less tightly structured than regular resources.
2015-03-09 14:39:31 -04:00
Clayton Coleman 4b16a87096 Simplify api_installer and setup methods 2015-03-09 14:39:31 -04:00
Clayton Coleman 42ff28c1a2 Merge pull request #5150 from vishh/issue_3628_1
Add json description to v1beta3 API.
2015-03-09 14:38:23 -04:00
Victor Marmol e187be9fe1 Merge pull request #5143 from vmarmol/cadvisor-pkg
Refactoring Kubelet's cAdvisor interface into a package.
2015-03-09 11:36:03 -07:00
Victor Marmol ab3c9de34b Refactoring cAdvisor interface into a package.
This will make it easier to start running the real cAdvisor alongside
Kubelet. This change is primarily no-op refactoring. The main behavioral
change is that we always create a cAdvisor interface and expect it to
always be available. When we make a request, if cAdvisor is not
connected the request fails with a connection error. This failure is
handled today as well.
2015-03-09 11:19:05 -07:00
Alex Mohr d98485242e Merge pull request #4780 from jdef/bug_4757
add unit test for #4757
2015-03-09 11:13:53 -07:00
Rohit Jnagal 8798b0ae14 Merge pull request #5158 from thockin/use_fuzz_no_custom
Use new gofuzz features
2015-03-09 10:13:46 -07:00
Rohit Jnagal 77546692a7 Merge pull request #5187 from vmarmol/wait-docker
Kubelet: wait up to 5m for Docker to come up.
2015-03-09 10:09:09 -07:00
Victor Marmol ca84aae454 Kubelet: wait up to 5m for Docker to come up.
The Kubelet assumes Docker is running during its execution and on
machine boot it is a race between Docker coming up and Kubelet calling
Docker. This PR waits for Docker to be up before the Kubelet begins
doing useful work. On timeout, Kubelet exits and expects to be
restarted.
2015-03-09 09:50:34 -07:00
Clayton Coleman d016f478e0 Ignore changes to creation timestamp from clients on update
CreationTimestamp is not an authoritative field (like UID) so mismatches
can be safely ignored.
2015-03-09 12:04:35 -04:00
James DeFelice bf02d17244 rebased to master 2015-03-09 14:08:11 +00:00
James DeFelice 4943fe937b implemented nil err checks, cc @yujuhong @davidopp 2015-03-09 14:06:27 +00:00
James DeFelice e5350d61a8 added comment suggested by @davidopp 2015-03-09 14:06:27 +00:00
James DeFelice 436790ccd1 add unit test for #4757
fixed compilation error
2015-03-09 14:06:27 +00:00
Tim Hockin 0b888e8673 Make testing service validation easier
Part of multi-port services.

If people like this, we could start to apply this pattern elsewhere.

TL;DR: don't redefine objects over and over changing one thing each
time.  Instead provide a func that mutates a base object to test facets
of validation.  Much easier to read and to update.
2015-03-08 21:41:37 -07:00
Clayton Coleman 0f87337667 Kubelet tests broken on Macs with uppercase names
Hostname behavior across operating systems is inconsistent (Macs can
have uppercase host names, so can some other systems).  In general,
always strings.ToLower(os.Hostname()).
2015-03-08 23:44:32 -04:00
Brendan Burns 7c654a3d1b Expand test coverage in master, kubectl/cmd/util, pkg/registry/resourcequota, and api/rest. 2015-03-07 15:24:39 -08:00
Brendan Burns f505a33998 Differentiate between server error messages and client error messages in kubectl 2015-03-07 11:39:23 +01:00
Tim Hockin fd1e49ce2f Use new gofuzz features 2015-03-07 00:04:14 -08:00
Vish Kannan 53ec66caf4 Merge pull request #5152 from vmarmol/cadvisor-dep
Rename cAdvisor info API to cadvisorApi
2015-03-06 18:09:28 -08:00
Victor Marmol 1866adddd3 Merge pull request #5157 from yifan-gu/clean_prober
Adjust prober's logging verbose.
2015-03-06 18:04:12 -08:00
Yifan Gu da5d7c7814 Adjust prober's logging. 2015-03-06 17:30:29 -08:00
Victor Marmol 798513844c Merge pull request #5148 from yifan-gu/clean_prober
Refactor pkg/kubelet/kubelet.go: probeContainer().
2015-03-06 17:04:57 -08:00
Yifan Gu 276fb1731c Refactor pkg/kubelet/kubelet.go: probeContainer().
Put the retry loop in probe.go into a function.
2015-03-06 16:57:20 -08:00
Yifan Gu 131e8a0e35 Refactor pkg/kubelet/kubelet.go: probeContainer().
Update the probe_test.go.
2015-03-06 16:38:09 -08:00
Yifan Gu 09af0cd3b5 Refactor pkg/kubelet/kubelet.go: probeContainer().
Split the function into probeContainerLiveness() and probeContainerReadiness().
2015-03-06 16:37:58 -08:00
Abhishek Gupta baa61fa157 Adding test cases for namespace checks 2015-03-06 16:31:15 -08:00
Abhishek Gupta 5ce4558955 Using only pods within the namespace for spreading logic 2015-03-06 16:31:15 -08:00
Victor Marmol 43b469bd9f Rename cAdvisor info API to cadvisorApi 2015-03-06 16:06:38 -08:00
Dawn Chen 9439c0f3bd Merge pull request #5103 from yujuhong/naming
kubelet: revamp the pod/container naming scheme
2015-03-06 15:58:58 -08:00
Vish Kannan 9e5c79a587 Merge pull request #5151 from vmarmol/cadvisor-dep
Update cAdvisor godep
2015-03-06 15:56:48 -08:00
Vishnu Kannan 28aef4ba53 Add json description to v1beta3 API. 2015-03-06 23:53:35 +00:00
Victor Marmol a35f4374c5 Update cAdvisor ContainerInfo references to v1 API.
The cAdvisor data structures were versioned recently. We use the v1
versions so this commit makes that explicit.
2015-03-06 15:42:06 -08:00
Daniel Smith 05ea93f985 Merge pull request #5147 from a-robinson/func
Re-add the defer statements around the monitor() calls in the apiserver.
2015-03-06 15:31:45 -08:00
Alex Robinson 60f0e9d673 Fix the broken calls to the monitor() by having it take arguments as pointers.
This is needed for the changes to various labels from later in the function
to be picked up.
2015-03-06 23:16:44 +00:00
Brian Grant a858c7423e Merge pull request #5070 from vishh/issue_3628
Adding description to some of the v1beta3 objects.
2015-03-06 14:49:11 -08:00
Brian Grant f557837d43 Merge pull request #5066 from vmarmol/man
Adding links to relevant docs from API types.
2015-03-06 14:46:43 -08:00
Eric Tune c12303eaa3 Merge pull request #4749 from derekwaynecarr/make_quota_more_efficient
Make admission control plug-ins work from indexes
2015-03-06 14:11:12 -08:00
Vishnu Kannan bd83093b0b Adding description to some of the v1beta3 objects. 2015-03-06 21:50:50 +00:00