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
Eric Tune
b259640a5f
Merge pull request #5072 from justinsb/fix_aws_test
...
Fix the logic around the AWS instance test
2015-03-06 13:49:41 -08:00
Yu-Ju Hong
fe70be9261
kubelet: revamp the pod/container naming scheme
...
There are two main goals for this change.
1. Fix the naming scheme in kubelet so that it accepts DNS subdomain
name/namespaces correctly (#4920 ). The design is discussed in #3453 .
2. Prepare for syncing the static pods back to the apiserver(#4090 ). This
includes
- Eliminate the source component in the internal full pod name (#4922 ). Pods
no longer need sources as they will all be sync'd via apiserver.
- Changing the naming scheme for the static (file-, http-, and etcd-based)
pods such that they are distinguishable when syncing back to the apiserver.
The changes includes:
* name = <pod.Name>-<hostname>
* namespace = <cluster_namespace> (i.e. "default" for now).
* container_name = k8s_<contianer_name>.<hash_of_container>_<pod_name>_<namespace>_<uid>_<random>
Note that this is not backward-compatible, meaning the kubelet won't recognize
existing running containers using the old naming scheme.
2015-03-06 13:14:45 -08:00
Yu-Ju Hong
32fd331e73
Revert "Split up kubelet "source seen" logic"
...
We want to sync pods from file/http/etcd sources to the apiserver, hence
differentiating sources is no longer desired.
This reverts commit 110ab6f1bd
.
2015-03-06 12:57:48 -08:00
Deyuan Deng
50de1a80c2
kubelet should take a client interface
2015-03-06 15:01:55 -05:00
Dawn Chen
2d0743b143
Merge pull request #5019 from yujuhong/reject_pods
...
kubelet: reject pods on host port conflict
2015-03-06 11:42:04 -08:00
Dawn Chen
3835e0e6e6
Merge pull request #4943 from vmarmol/image-manager
...
Implementing ImageManager to take over image lifecycle.
2015-03-06 11:09:38 -08:00
Victor Marmol
3ae717be97
Merge pull request #5094 from gmarek/client4
...
Refactor Kubelets syncPod function by wrapping some functionalities into separate functions
2015-03-06 10:58:05 -08:00
Victor Marmol
4f3f073f3c
Implementing ImageManager to take over image lifecycle.
...
All images are tracked, when they were created and when they were last
used. FreeSpace() evicts these images in least recently used order,
breaking ties with oldest first.
2015-03-06 10:48:28 -08:00
Yu-Ju Hong
3ccdb8db98
kubelet: reject pods on host port conflict
...
When a host port conflict is detected, kubelet should set the pod status to
fail. The failed status will then be polled by other components at a later time,
which allows replication controller to create a new pod if necessary.
To achieve this, this change stores the pod status information in a status map
upon the detecton of port conflict. GetPodStatus() consults this status map
before attempting to query docker. The entries in the status map will be removed
when the pod is no longer associated with the node.
2015-03-06 10:46:49 -08:00
Deyuan Deng
3c460831ca
Use FormatInt instead of string for external id.
2015-03-06 13:45:52 -05:00
Daniel Smith
244766ac89
Merge pull request #5002 from satnam6502/proxy-200
...
Do not fail status 200 responses to proxy calls
2015-03-06 10:20:07 -08:00
Daniel Smith
b0f49449e1
Merge pull request #4985 from thockin/gofuzz
...
Update gofuzz dep
2015-03-06 10:19:01 -08:00
gmarek
4a01a4dbf5
Refactor Kubelets syncPod function by wrapping some functionalities into functions
2015-03-06 18:32:11 +01:00
Tim Hockin
ca265c5705
Merge pull request #4898 from gmarek/client2
...
Loosen label and annotation validation and related tests
2015-03-06 09:14:24 -08:00
Tim Hockin
788d9994a1
Merge pull request #5132 from pmorie/mount-refactor
...
Fix mount refactor nits
2015-03-06 09:00:01 -08:00
Paul Morie
17b51a93a3
Fix mount refactor nits
2015-03-06 11:46:07 -05:00
Tim Hockin
f9e2df3a10
Define semantic equal for time
2015-03-06 08:21:39 -08:00
Tim Hockin
0b38282b9b
Fuzz util.Time with no nsec because JSON
2015-03-06 08:21:10 -08:00
Tim Hockin
b3304c49ad
Use deep spew in serialization test & go obj diff
2015-03-06 08:21:10 -08:00
Brendan Burns
5b6a78fc77
Place external load balancers in a namespace, and add a test to validate the behavior.
2015-03-06 17:16:27 +01:00
Brendan Burns
2700871b04
Merge pull request #5013 from smarterclayton/misc_fixup
...
Small cleanups to a number of client behaviors
2015-03-06 15:41:34 +01:00
Brendan Burns
de669b5435
Merge pull request #5058 from bprashanth/resourceVersion_doc
...
Clarify resourceVersion documentation
2015-03-06 15:41:12 +01:00
Brendan Burns
2263d86a7b
Merge pull request #5073 from yujuhong/immutable
...
v1beta1/v1beta2: fields that cannot be updated are marked immutable
2015-03-06 15:40:43 +01:00
derekwaynecarr
2ed8eed004
Make admission control plug-ins work from indexes
2015-03-06 09:36:57 -05:00
Brendan Burns
d4755704b1
Merge pull request #5104 from liggitt/secure_kubelet
...
Plumb tls and cert options into kubelet start
2015-03-06 15:32:23 +01:00
Brendan Burns
784dd82880
Merge pull request #5117 from lavalamp/fix4
...
Make unexported fields panic (informatively) instead of silently passing
2015-03-06 15:21:54 +01:00
gmarek
26b7fbeedf
apply comments
2015-03-06 13:21:40 +01:00
Satnam Singh
cb4c931b0b
Do not fail status 200 responses to proxy calls
2015-03-06 00:29:19 -08:00
gmarek
bb8a4f5ed3
apply comments
2015-03-06 08:23:22 +01:00
gmarek
726a5af075
Loosen label and annotation validation and related tests
2015-03-06 08:23:22 +01:00
Mike Danese
438052c453
fix variable shadowing bug in etcd_tools.go
2015-03-05 22:34:28 -08:00
Dawn Chen
54b2b47caa
Merge pull request #4756 from vishh/kubelet
...
Relax constraints on container status while fetching container logs
2015-03-05 21:49:48 -08:00
Daniel Smith
3ef3777192
Make unexported fields panic (informatively)
...
...Also fix some incorrect calls to semantic.DeepEqual, and a bug where
it returned true incorrectly.
2015-03-05 21:40:37 -08:00
Prashanth Balasubramanian
1ed3f7ffcd
Clarify documentation around resourceVersion
2015-03-05 20:57:22 -08:00
Yu-Ju Hong
823ea36cb1
v1beta1/v1beta2: fields that cannot be updated are marked "cannot be udpated"
2015-03-05 18:05:13 -08:00
Victor Marmol
79f2773745
Merge pull request #5120 from dchen1107/docker
...
monit health check kubelet and restart unhealthy one
2015-03-05 17:39:03 -08:00
Dawn Chen
7a47ea8913
Ask monit health check kubelet; if failed, restart.
2015-03-05 17:29:38 -08:00
Dawn Chen
43b4f41202
Allow /healthz check from localhost
2015-03-05 17:27:56 -08:00
Victor Marmol
b314dc6025
Merge pull request #5032 from yifan-gu/clean_syncPod
...
Refactor pkg/kubelet/kubelet.go: syncPod().
2015-03-05 17:24:20 -08:00
Yifan Gu
ed1823e276
Refactor pkg/kubelet/kubelet.go: syncPod().
...
Makes the syncPod() takes only the containers that belongs to the pod.
2015-03-05 16:40:50 -08:00
Justin Santa Barbara
bf031fb082
Don't allow duplicate values in NodeAddresses
2015-03-05 16:40:28 -08:00
Victor Marmol
33e6c3ebb3
DockerCache doesn't get containers at startup.
...
Fixes #5092 .
2015-03-05 16:25:13 -08:00
Vishnu Kannan
f6910803a9
Relax constraints on container status while fetching container logs
2015-03-06 00:19:52 +00:00
Satnam Singh
61e38920a5
Do not fail status 200 responses to proxy calls
2015-03-05 16:19:13 -08:00
Salvatore Dario Minonne
75f2efb500
moving ParseSelector to Parse for labels only.
2015-03-05 22:39:36 +01:00
Jordan Liggitt
02622b1401
Plumb tls and cert options into kubelet start
2015-03-05 16:30:52 -05:00
Brian Grant
4624d116f3
Merge pull request #5061 from thockin/docs1
...
Better docs for Services and public IPs.
2015-03-05 11:52:38 -08:00
Daniel Smith
6453bf3e61
Merge pull request #4974 from pmorie/record-sources
...
Allow multiple sources to be used with record package
2015-03-05 11:51:08 -08:00
Paul Morie
02b18edac6
Allow multiple sources to be used with record package
2015-03-05 13:54:29 -05:00
Paul Morie
8ef04a8425
Factor mount utility code out gce_pd volume plugin
2015-03-05 13:49:32 -05:00
Brian Grant
9fcb48cab6
Merge pull request #4434 from ddysher/node-hostip
...
Node addresses
2015-03-05 10:33:15 -08:00
Brian Grant
58a9045f75
Merge pull request #5081 from vmarmol/put
...
Specified that PUT is a replace and not an update.
2015-03-05 10:32:55 -08:00
Clayton Coleman
2c286fea4c
Merge pull request #4803 from derekwaynecarr/ignore_terminated_pods
...
Filter irrelevant pods from quota
2015-03-05 12:41:57 -05:00
Tim Hockin
a1dd6a92bb
Merge pull request #4801 from brendandburns/default_port
...
Clean up "default" service port handling.
2015-03-05 09:01:19 -08:00
derekwaynecarr
21031e37c7
Filter irrelevant pods from quota
2015-03-05 10:18:19 -05:00
Justin Santa Barbara
e25c9f8644
Fix the logic around the AWS instance test
...
We test that when we get instances with the same name that we get an error
2015-03-05 09:31:47 -05:00
Justin Santa Barbara
cc81742e40
Implement EC2 filter in tests
2015-03-05 09:06:29 -05:00
Tim Hockin
af37dc0e16
Better docs for Services and public IPs.
...
Fixes #2738
2015-03-04 22:13:57 -08:00
Daniel Smith
6bd842676d
Merge pull request #5076 from satnam6502/redirect
...
Fix implementation of REDIRECT
2015-03-04 17:53:41 -08:00
Daniel Smith
feb98caac2
Merge pull request #5075 from thockin/fix_inline
...
Fix VolumeSource inline in JSON
2015-03-04 17:24:06 -08:00
Victor Marmol
5d919d6935
Specified that PUT is a replace and not an update.
...
Fixes #3112 .
2015-03-04 17:02:42 -08:00
roberthbailey
dff0bd1cbf
Merge pull request #5056 from justinsb/ignore_regex_quotes
...
Strip single-quotes around regex for AWS
2015-03-04 16:42:23 -08:00
Satnam Singh
123ca7de53
Specify HTTP for REDIRECT
2015-03-04 16:37:15 -08:00
Tim Hockin
4cb46825f2
Fix VolumeSource inline in JSON
2015-03-04 15:53:32 -08:00
Victor Marmol
c422213f54
Adding links to relevant docs from API types.
...
Partially addresses #3606 .
2015-03-04 15:12:09 -08:00
Daniel Smith
4e7bccab02
Merge pull request #4991 from fabioy/etcdcheck-fix
...
Fix the etcd version check and have it return the version string.
2015-03-04 14:55:49 -08:00
Daniel Smith
4cd59e629a
Merge pull request #5010 from smarterclayton/update_resource_version
...
genericetcd.Etcd should test resourceVersion
2015-03-04 14:49:05 -08:00
Justin Santa Barbara
3012724d13
Strip single-quotes around regex for AWS
...
It looks like GCE ignores them; we can't
2015-03-04 17:34:51 -05:00
Deyuan Deng
9b0af8df63
Node addresses
2015-03-04 16:47:31 -05:00
Brian Grant
ce908368a8
Merge pull request #5053 from yujuhong/readonly
...
v1beta1/v1beta2: consistent description for all read-only fields
2015-03-04 13:22:13 -08:00
Yu-Ju Hong
ea1c5a7ec1
v1beta1/v1beta2: consistent description for all read-only fields
...
Some fields are populated by system on creation. Such fields should have
consistent description indicating that this is read-only.
2015-03-04 13:08:19 -08:00
Eric Tune
0059c39211
Merge pull request #5008 from ddysher/external-id
...
Move Node.ExternalID to CloudNodes()
2015-03-04 12:30:38 -08:00
Clayton Coleman
eea1e88cb0
Merge pull request #4921 from mikedanese/too-many-gets
...
Interactions with etcd should optionally take a value that is filled with the result
2015-03-04 14:18:12 -05:00
Deyuan Deng
b457379108
Merge pull request #5033 from mikedanese/lookup-mock
...
mock LookupIP to speedup nodecontroller_test on some runtimes
2015-03-04 13:59:01 -05:00
Mike Danese
4f6e09d854
add tests to pkg/tools/etcd_tools_test.go
2015-03-04 10:38:42 -08:00
Mike Danese
5cbf89c060
plumb through changes on ReplicationController and Service
2015-03-04 10:38:42 -08:00
Mike Danese
e1ca63f569
SetObj and CreateObj optionally accept an object to fill with the result of the get
2015-03-04 10:38:42 -08:00
Mike Danese
a663d3b1f3
mock LookupIP to speedup nodecontroller_test on some runtimes
2015-03-04 10:27:45 -08:00
Tim Hockin
fdea7252a4
Merge pull request #5001 from brendandburns/api3
...
Embed VolumeSource in v1beta3 and internal.
2015-03-04 09:50:14 -08:00
Eric Tune
662189ebc2
Merge pull request #4967 from jlowdermilk/kubeconfig
...
Simplify generating kubeconfig with embeded cert data
2015-03-04 08:38:43 -08:00
Eric Tune
fd8361edf2
Merge pull request #5021 from justinsb/log_kubelet_internalerror
...
Log HTTP InternalServerErrors in the kubelet
2015-03-04 08:22:15 -08:00
Eric Tune
2ec257eb49
Merge pull request #5023 from justinsb/fix_typo_in_test
...
Fix typo in test
2015-03-04 08:12:08 -08:00
Clayton Coleman
17f7dd8d6d
Only insert outputversion as a preferred mapping type if no error occurs
...
Some types will be looked up based on their internal type, which is passed
directly to RESTMapping(). RESTMapping() will search the entire version
list if no external types are passed, but OutputVersionMapper was bypassing
that because the default type was always present.
Change OutputVersionMapper to collapse empty versions, and when no external
type is specified, try with the preferred version and then try without.
2015-03-04 10:48:05 -05:00
Clayton Coleman
a97635e643
Use IsListType instead of checking ItemPtr in resourcebuilder
2015-03-04 10:48:05 -05:00
Clayton Coleman
b799e8cd3a
Enumerate all versions when looking for an output conversion
...
Ensures that all objects can be printed, even if they don't
match output-version (because they are only implemented in
a newer API version).
2015-03-04 10:48:05 -05:00
Clayton Coleman
a52b0f2619
Switch List/Watch to ListPredicate/WatchPredicate
2015-03-04 10:48:05 -05:00
Justin Santa Barbara
7725cd23ec
Fix typo in test
2015-03-04 10:10:08 -05:00
Derek Carr
cb1e044a60
Merge pull request #4923 from lavalamp/fix4
...
Allow reflector to do full resync periodically
2015-03-04 09:58:03 -05:00
Justin Santa Barbara
b681a45fb6
Log HTTP InternalServerErrors in the kubelet
...
Otherwise we just get a stack trace and no message
2015-03-04 09:48:44 -05:00
Brendan Burns
fb90b56bf6
Embed VolumeSource in v1beta3 and internal.
2015-03-04 02:25:40 -08:00
Brendan Burns
f8dd4fcac5
Change the service port defaulting to be more sane.
2015-03-04 02:00:24 -08:00
Clayton Coleman
576bbb565e
Stop logging stack traces for 4xx requests
2015-03-03 21:14:57 -05:00
Clayton Coleman
3beea3b660
Skip types that are not registered on an API version
2015-03-03 21:14:57 -05:00
Clayton Coleman
bf4ab78ce9
Stop round trip testing in latest
2015-03-03 21:14:56 -05:00
Fabio Yeon
c38c6f0dad
Fix the etcd version check and have it return the version string.
2015-03-03 16:59:00 -08:00
Clayton Coleman
3d52aac13c
genericetcd.Etcd should test resourceVersion
...
Also fix that Update was returning AlreadyExists instead of
NotFound (when create is disabled) and that Update when CreateOnUpdate
was true was not populating the returned object.
Added more tests
2015-03-03 19:54:43 -05:00
Deyuan Deng
53e17f0fa5
Move Node.ExternalID to CloudNodes()
2015-03-03 19:37:46 -05:00
derekwaynecarr
8150649cf3
nodecontroller sync cloud was not setting external id in all code paths
2015-03-03 16:39:06 -05:00
Jeff Lowdermilk
6e704d174d
Simplify generating kubeconfig with embeded cert data
2015-03-03 12:18:07 -08:00
Satnam Singh
709476cb5b
Merge pull request #4657 from piosz/kubectl
...
Added new command clusterinfo to kubectl
2015-03-03 11:34:17 -08:00
Piotr Szczesniak
e92192d379
Added new command clusterinfo to kubectl
...
This is first version of the command. It prints IPs of master and cluster
services. Should be improved once generalized labels are implemented #341 .
It requires label kubernet.io/cluster-service=true set for cluster services.
Follow up cl after discussion in #4417 .
2015-03-03 20:14:24 +01:00
Brian Grant
841b6f6970
Merge pull request #4936 from thockin/plural_24_default_dest_port
...
Change the v1b3 default for service ContainerPort
2015-03-03 11:01:01 -08:00
Brian Grant
fca9fd68c7
Merge pull request #4779 from smarterclayton/status_endpoints
...
Minimal status mutation change
2015-03-03 11:00:02 -08:00
Tim Hockin
5aadd6ecae
Change the v1b3 default for service ContainerPort
...
In v1b1 and v1b2 we choose the "first defined port" if you do not specify a
ContainerPort. I am proposing that v1b3 just assume the ContainerPort is the
same as the service port unless explicitly provided. This leaves named ports
for now, but that is under discussion on its own.
This is strictly compatible, though to implement this we have to leave the
internal objects with the looser behavior until v1b[12] die. This also adds a
link dependency so that when we DO kill v1b[12] the endpoints controller will
blow up, prompting a fix.
2015-03-03 09:40:18 -08:00
Daniel Smith
fbf45e8a39
Merge pull request #4946 from bprashanth/kubectl_retry
...
Retry resizing replication controllers in kubectl
2015-03-03 08:54:11 -08:00
Prashanth Balasubramanian
1970c2d201
Retry resizing replication controllers in kubectl
2015-03-02 20:26:41 -08:00
Brendan Burns
2bbc59e81e
Kubernetes version v0.12.0-dev
2015-03-02 20:04:35 -08:00
Brendan Burns
ecca42643b
Kubernetes version v0.12.0
2015-03-02 20:04:24 -08:00
Victor Marmol
71e545bf81
Merge pull request #4970 from dchen1107/podstatus
...
Hide POD container from end users
2015-03-02 17:15:24 -08:00
Dawn Chen
dad365fb2b
Hide POD container from end users
2015-03-02 17:03:28 -08:00
Daniel Smith
1fdf749211
fix e2e failure
2015-03-02 15:03:56 -08:00
Daniel Smith
c4822dc060
Revert "Revert "Adding converter functions to convert field label selectors to internal version before matching""
...
This reverts commit 5f35a67002
.
2015-03-02 15:00:09 -08:00
David Oppenheimer
32523f8a52
Merge pull request #4674 from abhgupta/abhgupta-dev
...
Configuring scheduler via json configuration file
2015-03-02 14:43:25 -08:00
Brian Grant
97d7e7e2c2
Merge pull request #4819 from mikedanese/validate-api-version
...
Validate api version in kubectl --patch and --override
2015-03-02 14:04:18 -08:00
Zach Loafman
00ca7352ee
Merge pull request #4955 from smarterclayton/fix_tcpsocket_validation
...
TCPSocket could not be used as it was not checked in validation
2015-03-02 13:45:25 -08:00
Dawn Chen
93c0052263
Merge pull request #4952 from rjnagal/kubectl
...
Add capacity information to 'kubectl describe minion'
2015-03-02 13:09:52 -08:00
Mike Danese
25fac68ec4
validate api version in kubectl --patch and --override.
2015-03-02 13:00:45 -08:00
Clayton Coleman
0ac49d77a0
TCPSocket could not be used as it was not checked in validation
...
Attempting to use it gave the error "must register one handler".
Added more tests for it.
2015-03-02 15:27:11 -05:00
Rohit Jnagal
c63f4635a4
Add capacity information to 'kubectl describe minion'
2015-03-02 19:51:30 +00:00
Zach Loafman
4937008ae0
Revert "TCPSocket could not be used as it was not checked in validation"
2015-03-02 11:14:27 -08:00
Brendan Burns
c7cbc5c991
Merge pull request #4883 from smarterclayton/fix_tcpsocket_validation
...
TCPSocket could not be used as it was not checked in validation
2015-03-02 10:53:48 -08:00
Brendan Burns
fe973461f5
Merge pull request #4916 from thockin/plural_21_endpoints
...
Rename type Port to ContainerPort
2015-03-02 10:53:32 -08:00
Brendan Burns
3168f165ab
Merge pull request #4927 from thockin/plural_22_endpoints
...
Add defaults for HTTGetAction.Path & test actions
2015-03-02 10:52:55 -08:00
Brendan Burns
843fa71f2b
Merge pull request #4938 from tkulczynski/opfix
...
Fix waiting for GCE Operations
2015-03-02 10:47:46 -08:00
Abhishek Gupta
a04e600f16
Added test cases
2015-03-02 10:00:20 -08:00
Vish Kannan
445fd56739
Merge pull request #4810 from fgrzadkowski/disable_pod_status_probes
...
Add flag to control probing pods statuses from kubelets.
2015-03-02 09:52:05 -08:00
Filip Grzadkowski
86b1c90097
Add flag to control probing pods statuses from kubelets.
2015-03-02 16:06:14 +01:00
Tomek Kulczynski
c4e786c701
Fix waiting for GCE Operations
2015-03-02 13:34:37 +01:00
Tim Hockin
532c39c336
Add defaults for HTTGetAction.Path & test actions
...
The comment says optional - this makes it optional. Test handler actions.
2015-03-01 21:23:18 -08:00
Clayton Coleman
3d290089ae
Minimal status mutation change
...
PUT /api/v1beta3/namespaces/default/pods/foo/status
{
"metadata": {...}, // allowed for valid values
"spec": {}, // ignored
"status": {...}, // allowed, except for Host
}
Exposes the simplest possibly change. Needs a slight refactoring
to RESTUpdateStrategy to split merging which can be done in a
follow up.
2015-03-01 22:35:17 -05:00
Clayton Coleman
d3a5a48d00
TCPSocket could not be used as it was not checked in validation
...
Attempting to use it gave the error "must register one handler".
Added more tests for it.
2015-03-01 22:31:57 -05:00
Alex Robinson
0d5fe5d078
Use a prometheus Histogram rather than a Summary for tracking apiserver latency.
2015-03-02 02:15:16 +00:00
Zach Loafman
5f35a67002
Revert "Adding converter functions to convert field label selectors to internal version before matching"
2015-02-28 11:42:49 -08:00
Tim Hockin
ea548b8260
Rename type Port to ContainerPort
...
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Daniel Smith
554b1c847c
add occasional polling to reflector
2015-02-27 16:59:14 -08:00
Dawn Chen
0fec31a11e
Merge pull request #4918 from vmarmol/handle-crash
...
Handle crash in per-pod thread and container killer.
2015-02-27 16:54:37 -08:00
Daniel Smith
156c505946
clean up poller test to not make infinite log messages
2015-02-27 16:51:03 -08:00
Victor Marmol
c7e7ecdf2c
Handle crash in per-pod thread and container killer.
2015-02-27 16:33:46 -08:00
Daniel Smith
d68c738fcf
Merge pull request #4575 from nikhiljindal/versionedFieldSelector
...
Adding converter functions to convert field label selectors to internal version before matching
2015-02-27 16:33:15 -08:00
nikhiljindal
48e7945f65
Versioning the field selectors
2015-02-27 16:10:59 -08:00
Victor Marmol
cc3c4414f8
Merge pull request #4915 from yujuhong/hostport
...
kubelet: record an event with a clear reason on host port conflict
2015-02-27 16:04:04 -08:00
Yu-Ju Hong
241df2d3be
kubelet: record an event with a clear reason on host port conflict
...
Currently, kubelet silently ignores pods that caused host port conflict. This
commit surfaces the error by recording an event.
It also makes sure that kubelet iterates through the pods in the order of the
creation timestamp, which ensures that pods created later are ignored on
conflict.
2015-02-27 15:51:53 -08:00
Victor Marmol
556acc792b
Adding ContainersPerPodCount metric.
...
This will let us know the composition of pods in clusters.
2015-02-27 11:27:09 -08:00
Victor Marmol
a9301b1996
Adding metric for latency of SyncPods (synching all pods).
2015-02-27 11:11:43 -08:00
Rohit Jnagal
1444e59fc9
Merge pull request #4904 from vmarmol/mon-docker
...
Adding metrics to measure latency of Docker operations.
2015-02-27 11:08:38 -08:00
Deyuan Deng
164ccd7af4
Merge pull request #4808 from jszczepkowski/node-probes-disabled
...
Node controller supports disabling node probes.
2015-02-27 13:30:49 -05:00
Victor Marmol
cbf93822ac
Adding metrics to measure latency of Docker operations.
...
Part of #4604 .
2015-02-27 10:26:06 -08:00
Brian Grant
900d58ec94
Merge pull request #4899 from lhuard1A/fix_panic_kube_apiserver
...
Fix nil pointer dereference in kube-apiserver when etcd is not there
2015-02-27 10:10:50 -08:00
Rohit Jnagal
c6175facfb
Merge pull request #4901 from vmarmol/mon-startup
...
Adding sync pod latency metric (again).
2015-02-27 10:08:25 -08:00
Jeff Lowdermilk
537d8cf26f
Merge pull request #4886 from brendandburns/kubecfg
...
Add a "Created" column to the pod view.
2015-02-27 10:05:23 -08:00
Tim Hockin
770966c66c
Merge pull request #4900 from lhuard1A/fix_kubernetes_services
...
Fix `kubernetes` and `kubernetes-ro` services creation
2015-02-27 09:38:02 -08:00
Victor Marmol
ed0f5885b5
Adding sync pod latency metric (again).
...
Latency is broken down by create, update, and sync pods.
Part of #4604 .
2015-02-27 09:35:20 -08:00
Lénaïc Huard
cd719d97df
Fix `kubernetes` and `kubernetes-ro` services creation
...
If `kube-apiserver` is started before `etcd` is reachable, `kube-apiserver`
fails to create those services.
However, in the `Create` function, an IP has already been reserved for them.
When `etcd` comes back, the `Create` function fails because it considers that
the IP is already used.
If the service couldn't be created, the reserved IP should be released.
2015-02-27 18:01:03 +01:00
Lénaïc Huard
060ebfcea0
Fix nil pointer dereference in kube-apiserver when etcd is not there
2015-02-27 17:33:02 +01:00
Wojciech Tyczynski
a973f57d6b
Thread per pod
2015-02-27 13:27:29 +01:00
Jerzy Szczepkowski
e0548c3c03
Node controller supports disabling node probes.
...
Node controller supports disabling sending node probes and updating node statuses. Controlled by --sync_node_status flag. Resolves #4565 .
2015-02-27 08:21:04 +01:00
Brendan Burns
ceac670eae
Add a human readable created since column to kubectl.
2015-02-26 22:16:23 -08:00
Brian Grant
6b19c13004
Merge pull request #4802 from brendandburns/log
...
Add specific errors for missing kind and version.
2015-02-26 15:33:18 -08:00
Brendan Burns
0d23875c99
Merge pull request #4497 from swagiaal/health-check-hostname-mismatch
...
WIP: Catch kubelet-master hostname mismatch during health check
2015-02-26 14:48:21 -08:00
Brendan Burns
a862c37b29
Merge pull request #4383 from simon3z/instances-id
...
cloudprovider: add instance id to NodeSpec
2015-02-26 14:13:49 -08:00
Eric Tune
e77745672c
Merge pull request #4577 from satnam6502/cluster-name
...
Qualify the name of forwarding rules with INSTANCE_PREFIX
2015-02-26 13:17:49 -08:00
Brendan Burns
7665b2668f
Merge pull request #4770 from gmarek/client4
...
Add waiting for GCE operations to finish before proceeding in various functions.
2015-02-26 13:05:11 -08:00
Federico Simoncelli
b942b1cb71
vagrant: report the nodes external id
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:13 +00:00
Federico Simoncelli
bfb93a1928
openstack: report the nodes external id
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:13 +00:00
Federico Simoncelli
ad6091be99
gce: report the nodes external id
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:13 +00:00
Federico Simoncelli
6b16f80dc1
aws: report the nodes external id
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:12 +00:00
Federico Simoncelli
1fc56aa023
ovirt: report the nodes external id
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:12 +00:00
Federico Simoncelli
a450da4fd0
cloudprovider: add instance id to NodeSpec
...
Sometimes for external applications it is important to identify the
cloud instance of the nodes. Until this patch there was no contract
that the node name returned by List was also the unique identifier of
the cloud instance. This new API ensures that an external application
can reliably retrieve the relevant instance id of the nodes.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:12 +00:00
Federico Simoncelli
8844c06574
ovirt: fetch instance ip address from rest-api
...
This patch adds the support for returning the ip address of the instances
when reported by the guest-agent and from the rest-api.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:12 +00:00
Jeff Grafton
c2e7e2d029
Revert "Adding sync pod latency metric." and "Thread-per-pod model in Kubelet."
...
This reverts commits 744f33d886
and
7191c5c7fd
.
2015-02-26 12:15:28 -08:00
Rohit Jnagal
e455ee5d2e
Merge pull request #4765 from brendandburns/scheduler
...
Log a better error with useful info on scheduling failures.
2015-02-26 12:01:04 -08:00
Rohit Jnagal
da0885c896
Merge pull request #4818 from vmarmol/mon-startup
...
Adding sync pod latency metric.
2015-02-26 11:31:33 -08:00
Brendan Burns
877f605dc0
Add specific errors for missing kind and version.
2015-02-26 11:19:04 -08:00
Victor Marmol
744f33d886
Adding sync pod latency metric.
...
Latency is broken down by create, update, and sync pods.
Part of #4604 .
2015-02-26 11:13:04 -08:00
Alex Robinson
39c343d57e
Merge pull request #4856 from nikhiljindal/expvar
...
Stop importing expvar
2015-02-26 11:02:41 -08:00
nikhiljindal
b771a56435
Stop importing expvar
2015-02-26 10:47:58 -08:00
Wojciech Tyczynski
7191c5c7fd
Thread-per-pod model in Kubelet.
2015-02-26 17:58:57 +01:00
Sami Wagiaalla
9150cb9d95
Catch kubelet-master hostname mismatch during health check
...
During the kubelet's /healthz responce check to see if the
hostname used by the master matches the hostname the kubelet
knows itself by. If not fail the health check.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-02-26 10:22:03 -05:00
Vish Kannan
e3af23e6e9
Merge pull request #4792 from vmarmol/mon-containers-per-pod
...
Add Kubelet metrics for pod and container counts.
2015-02-25 18:51:22 -08:00
Deyuan Deng
d47fd48e55
Fix delete pod namespace; include error message when failed deleting pods
2015-02-25 20:03:22 -05:00
Victor Marmol
95464349d5
Add Kubelet metrics for pod and container counts.
...
Part of #4604 .
2015-02-25 12:18:59 -08:00
Daniel Smith
ec8ecf3993
Merge pull request #4494 from brendandburns/race
...
Add protection for the pods member varaible.
2015-02-25 10:41:32 -08:00
Vish Kannan
aaa4a354d4
Merge pull request #4735 from screeley44/v1beta3_enablement
...
#4544 - Fix inadvertent whitespace in v1beta3 enablement
2015-02-25 10:06:11 -08:00
Brian Grant
3f69112e02
Merge pull request #4766 from mikedanese/remove-util-merge
...
Remove pkg/util/merge and replace with evanphx/json-patch
2015-02-25 09:22:01 -08:00
Salvatore Dario Minonne
0186acc37c
Extending label.Parse method to support exact match
2015-02-25 08:52:20 +01:00
gmarek
0be5aa52e6
Apply comments
2015-02-25 08:06:45 +01:00
Brendan Burns
801ad909ca
Add protection for the pods member varaible.
...
Address comments.
2015-02-24 19:36:11 -08:00
Justin Santa Barbara
e457286983
Fix typo: registrying -> registering
2015-02-24 16:21:14 -08:00
Vish Kannan
32694a770c
Merge pull request #4778 from lavalamp/fix7
...
Construct path correctly in proxy
2015-02-24 16:14:05 -08:00
Vish Kannan
0b15f2ff65
Merge pull request #4784 from vmarmol/pod-restart
...
Kill infra pod when a container is restarted.
2015-02-24 13:37:08 -08:00
Deyuan Deng
f2698e5905
Merge pull request #4267 from rsokolowski/guestbook-doc
...
Update guestbook example to use replication controller instead of a naked pod.
2015-02-24 15:57:27 -05:00
Vish Kannan
c561c8b0b1
Merge pull request #4753 from vmarmol/mon
...
First Kubelet metric and overall plumbing.
2015-02-24 12:51:34 -08:00
Jeff Lowdermilk
be124b3cd0
Merge pull request #4786 from GoogleCloudPlatform/revert-4660-deads-make-default-display-yaml
...
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:18:31 -08:00
Vish Kannan
68c4ae7f0c
Merge pull request #4776 from brendandburns/log
...
Prompt the user to select a container if they don't provide one
2015-02-24 12:10:18 -08:00
Jeff Lowdermilk
8cfe099af1
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:06:24 -08:00
Victor Marmol
aadbf221d2
Kill infra pod when a container is restarted.
...
Revert 0e20f7d736
.
Fixes #4759 .
2015-02-24 11:52:05 -08:00
Scott Creeley
40c03b057a
Fix whitespace in v1beta3 enablement
2015-02-24 14:49:54 -05:00
rsokolowski
635281ebe3
Update guestbook example to use replication controller.
2015-02-24 20:21:13 +01:00
Rohit Jnagal
e77322a561
Merge pull request #4755 from yifan-gu/cleanup
...
pkg/kubelet: Fix logging.
2015-02-24 10:12:02 -08:00
Rohit Jnagal
a0722376ee
Merge pull request #4760 from ddysher/kubectl-endpoint-list
...
kubectl print endpoint list
2015-02-24 10:11:23 -08:00
Rohit Jnagal
590a62ffe5
Merge pull request #4767 from mikedanese/kind-to-type
...
Rename {Node,Pod}ConditionKind -> {Node,Pod}ConditionType
2015-02-24 10:10:57 -08:00
Daniel Smith
ec58e6d78e
use correct path for proxy replacements
2015-02-24 10:10:06 -08:00
Daniel Smith
78d05e5307
add URL path generation function
2015-02-24 10:10:04 -08:00
Daniel Smith
2d56547524
refactor proxy upgrade path
2015-02-24 10:10:02 -08:00
Yifan Gu
1a5a842ac5
pkg/kubelet: Fix logging.
2015-02-24 09:47:10 -08:00
Daniel Smith
6241a211c8
Merge pull request #4768 from nikhiljindal/fixPrefix
...
APIServer: Updating special verb handlers to accept full request path rather than a trimmed one
2015-02-24 08:04:30 -08:00
Clayton Coleman
76926ec314
Merge pull request #4660 from deads2k/deads-make-default-display-yaml
...
fix kubectl config view to respect serialization formats
2015-02-24 07:56:57 -08:00
Brendan Burns
eefaafc214
Prompt the user to select a container if they don't provide one
...
and we can't infer it.
2015-02-24 06:50:22 -08:00
deads2k
6358bf2e30
add example for default view serialization
2015-02-24 08:54:03 -05:00
gmarek
9996654c4c
Add waiting for GCE operations to finish before proceeding in various
...
functions.
2015-02-24 14:32:21 +01:00
nikhiljindal
905a3f7909
Updating the handlers to accept full request path rather than a trimmed one
2015-02-24 00:37:20 -08:00
Wojciech Tyczynski
dcef5e2955
Introduce DockerCache in Kubelet.
2015-02-24 09:10:07 +01:00
Mike Danese
5267127af1
api: rename conditionkind -> conditiontype
2015-02-23 22:13:21 -08:00
Mike Danese
88e1ab3cbe
replace pkg/util/merge with evanphx/json-patch
2015-02-23 20:55:30 -08:00
Brendan Burns
33f6576f61
Log a better error with useful info on scheduling failures.
2015-02-23 20:36:22 -08:00
Deyuan Deng
515314fb8a
Fix kubectl print endpoint list
2015-02-23 21:20:10 -05:00
Satnam Singh
19b927ea57
Name a cluster and use it to make forwarding rules for GCE
2015-02-23 17:04:33 -08:00
Victor Marmol
c40a60e945
Adding image pull latency metric.
...
Also adding TODOs for other metrics.
Part of #4604 .
2015-02-23 16:30:29 -08:00
Rohit Jnagal
50700419ea
Merge pull request #4732 from yifan-gu/cleanup
...
Remove outdated const.
2015-02-23 16:06:32 -08:00
Victor Marmol
f5beb04c53
Adding Prometheus /metrics handler.
2015-02-23 15:42:04 -08:00
Victor Marmol
d880be0301
Merge pull request #4738 from vmarmol/fix-pull
...
Remove pullLock from Kubelet.
2015-02-23 14:34:10 -08:00
Rohit Jnagal
b261d8c60a
Merge pull request #4724 from mikedanese/readiness-states-cleanup
...
Don't lock readinessStates on concurrent reads
2015-02-23 14:29:11 -08:00
Rohit Jnagal
cbcd35539f
Merge pull request #4718 from cjcullen/pdtest
...
Fix PD detach (fix the mount path/device name calculation).
2015-02-23 14:28:02 -08:00
Daniel Smith
3dc8b7ac69
Merge pull request #4707 from thockin/balancer
...
Refactor RR load balancer, fix bug
2015-02-23 13:56:40 -08:00
Daniel Smith
650f6cb826
Revert "Multi-port Endpoints"
2015-02-23 13:53:21 -08:00
Tim Hockin
eed36455a7
Merge pull request #4653 from thockin/secret_fixups
...
Secrets fixups
2015-02-23 13:49:19 -08:00
Daniel Smith
502f040129
Merge pull request #4712 from thockin/plural_30_endpoints
...
Multi-port Endpoints
2015-02-23 13:48:37 -08:00
Daniel Smith
dec46ad9cb
Merge pull request #4702 from smarterclayton/always_return_endpoints
...
Endpoints should not be omitempty for ease of client use
2015-02-23 13:47:46 -08:00
Victor Marmol
a6d975c929
Remove pullLock from Kubelet.
...
The lock was only ever used to grab a read lock before container pulls.
2015-02-23 13:27:55 -08:00
Tim Hockin
5dc98968c3
Refactor load balancer.
...
Flatten 3 parallel maps into a map to structs (balancerState).
2015-02-23 12:59:59 -08:00
Tim Hockin
8503c34694
Fix unprotected shared state in load balancer
2015-02-23 12:59:35 -08:00
Tim Hockin
e88134f736
Some renames in round-robin balancer
...
Making a clear path for more service port changes,making this code more
comprehensible.
2015-02-23 12:56:44 -08:00
Tim Hockin
37b8c14a4f
use a strong type for loadbalancer keys
2015-02-23 12:56:44 -08:00
Tim Hockin
3e7248f0f4
comments on base64-ness of secrets
2015-02-23 12:40:06 -08:00