Commit Graph

177 Commits

Author SHA1 Message Date
Rohit Jnagal
f2f3da15e1 Merge pull request #6370 from justinsb/aws_config_optional
Make AWS configuration file optional (fall-back to metadata service)
2015-04-06 14:29:28 -07:00
David Oppenheimer
c4a595aa7f Remove use of events from NodeController, to temporarily fix #6199 2015-04-04 11:56:43 -07:00
Justin Santa Barbara
b61fc222bb Make AWS configuration file optional (fall-back to metadata service) 2015-04-03 13:42:31 -07:00
James DeFelice
4d3a9e2203 fixes #6416 2015-04-03 19:13:25 +00:00
Piotr Szczesniak
8bc9f5fef7 Added rate limiting to pod deletion
Fixes #6228
2015-04-03 06:58:59 +02:00
Federico Simoncelli
f78301c5ab kubelet: log offline event message recording
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:07:32 -04:00
Piotr Szczesniak
5c6439d449 Removed PodStatus.Host
Fixes #6165
2015-04-02 16:38:45 +02:00
CJ Cullen
5e6e67ba59 Add an alternative TokenSource to the GCE CloudProvider. 2015-04-01 17:52:30 -07:00
Piotr Szczesniak
81683441b9 Merge pull request #6156 from gmarek/retry_loop
Add a retry loop to UpdateStatus in NodeController
2015-04-01 09:16:11 +02:00
Victor Marmol
44fda1fcd1 Merge pull request #6161 from justinsb/populate_addresses_new_nodes
Make sure we have addresses for newly discovered nodes
2015-03-31 14:46:06 -07:00
Victor Marmol
c93cd4a0d1 Merge pull request #6225 from cjcullen/cloudprovider
Fix typed-nil passing in cloudprovider/plugins
2015-03-31 13:04:11 -07:00
Justin Santa Barbara
72ee90494e Add unit test 2015-03-31 12:58:29 -07:00
Brian Grant
3354cffbf0 Merge pull request #6182 from thockin/plural_services_20
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Zach Loafman
fc8ba8d77b Merge pull request #6011 from justinsb/aws_specify_zone
Fix AWS region vs zone
2015-03-31 12:26:05 -07:00
CJ Cullen
aa91bde375 Fix typed-nil passing in cloudprovider/plugins 2015-03-31 10:32:02 -07:00
gmarek
fa6d5e259f Add a retry loop to UpdateStatus in NodeController 2015-03-31 11:22:02 +02:00
Tim Hockin
eeff1b74fb Fixes from feedback and testing 2015-03-30 23:52:37 -07:00
Tim Hockin
186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
saadali
e0f71cb21f Make each new instance of kubelet generate a new event channel (instead of reusing existing). 2015-03-30 14:22:16 -07:00
Federico Simoncelli
0e60374346 nodes: record an event on NodeReady changes
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-30 12:01:09 -04:00
Justin Santa Barbara
527d3f1f99 Make sure we have addresses for newly discovered nodes 2015-03-30 08:51:33 -07:00
Victor Marmol
d5ce931f0b Merge pull request #6069 from simon3z/kubelet-reboot-logic
node: move the reboot detection logic to kubelet
2015-03-30 08:45:37 -07:00
Justin Santa Barbara
63f63aa9de Don't list AWS instances until they are actually ready 2015-03-30 08:06:18 -07:00
Federico Simoncelli
fe2d1f6762 node: move the reboot detection logic to kubelet
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-30 09:33:07 -04:00
Justin Santa Barbara
c1337cbaeb Make some of the more repetitive AWS tests table-driven 2015-03-27 07:31:16 -07:00
Justin Santa Barbara
583892da2d Fix AWS region vs zone
We were specifying a region, but naming it as a zone in util.sh

The zone matters just as much as the region, e.g. for EBS volumes.

We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
2015-03-26 15:11:05 -07:00
gmarek
5a11748018 Move Capacity from NodeSpec to NodeStatus 2015-03-26 15:28:48 +01:00
Rohit Jnagal
49ff04765b Add validation for node creation. 2015-03-25 21:55:03 +00:00
Federico Simoncelli
2db64d3f90 nodecontroller: record node reboot event
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Federico Simoncelli
5b3056cdb7 nodecontroller: add event recorder support
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Brendan Burns
bfceb21007 Add support for grabbing the externalIP in the GCE cloud provider. 2015-03-24 21:21:50 -07:00
Deyuan Deng
ca68f4a9d1 Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse 2015-03-24 17:28:59 -04:00
Deyuan Deng
c5675b8924 Use fake time in nodecontroller unittest; rename receiver 's' to 'nc' 2015-03-24 14:23:48 -04:00
Deyuan Deng
b51d491f05 Delete all pods based on condition transition time. 2015-03-24 14:23:48 -04:00
Deyuan Deng
cf548765c9 Change kubelet update frequency to 2s, and make it a constant. 2015-03-24 14:23:48 -04:00
Deyuan Deng
0d5f8dfde1 Node controller monitor node status 2015-03-24 14:19:56 -04:00
Jordan Liggitt
a75b501821 Improve ResourceLocation API, allow proxy to use authenticated transport 2015-03-24 11:11:34 -04:00
Jerzy Szczepkowski
34a8a3a844 Running node selector predicate on kubelet.
Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix #5207.
2015-03-23 08:21:58 +01:00
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
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
Justin Santa Barbara
51aded0661 Add support for GetNodeResources to AWS 2015-03-13 22:59:28 -04: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
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
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