Justin Santa Barbara
9f44c72ba9
AWS: findInstancesByNodeNames should not make O(N) API calls
...
findInstancesByNodeNames was a simple loop around
findInstanceByNodeName, which made an EC2 API call for each call.
We've had trouble with this sort of behaviour hitting EC2 rate limits on
bigger clusters (e.g. #11979 ).
Instead, change this method to fetch _all_ the tagged EC2 instances, and
then loop through the local results. This is one API call (modulo
paging).
We are currently only using findInstancesByNodeNames for the load
balancer, where we attach every node, so we were fetching all but one of
the instances anyway.
Issue #11979
2016-01-20 12:37:22 -05:00
Justin Santa Barbara
0586d866de
AWS: Eliminate assumptions about all load-balancer ports matching
...
It costs us basically nothing to just check all the ports, and
protects us against future changes to the controller.
2016-01-20 09:30:46 -05:00
Justin Santa Barbara
12dd568662
AWS: Fix comment to reflect new method name
...
TCPLoadBalancer.EnsureTCPLoadBalancer => LoadBalancer.EnsureLoadBalancer
2016-01-20 09:28:28 -05:00
Justin Santa Barbara
30882265b6
AWS: Remove dead code
...
I think I added these functions by mistake; they aren't used and
apparently never were.
2016-01-20 09:23:53 -05:00
k8s-merge-robot
4969f11089
Merge pull request #19439 from bprashanth/compute_dep
...
Auto commit by PR queue bot
2016-01-16 10:38:11 -08:00
Harry Zhang
936a11e775
Use networking to hold network related pkgs
...
Change names of unclear methods
Use net as pkg name for short
2016-01-15 13:46:16 +08:00
Mike Danese
1f0b10bd22
Merge pull request #19538 from mesosphere/jdef_mesos_026_compat
...
MESOS: compatibility w/ mesos v0.26
2016-01-14 13:44:42 -08:00
Daniel Schonfeld
12cbc9ff89
optimize ExternalId() and InstanceId() to returned cached results directly from the metadata service
2016-01-13 23:36:57 -05:00
James DeFelice
ad1803a4ce
construct master URIs from MasterInfo.Address if present; prefer /state over /state.json
2016-01-12 17:49:19 +00:00
Sylvain Baubeau
b9dfe1b737
Use Openstack os-ext-ips extension to qualify IP address types
...
fixes #18409
2016-01-12 15:03:47 +01:00
David Oppenheimer
8ac484793d
Comment out calls to httptest.Server.Close() to work around
...
https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
2016-01-11 23:02:11 -08:00
Prashanth Balasubramanian
cc09a603dd
Code changes
2016-01-11 16:27:12 -08:00
k8s-merge-robot
37b5726716
Merge pull request #14431 from Defensative/UDP-LB
...
Auto commit by PR queue bot
2016-01-08 12:39:02 -08:00
k8s-merge-robot
e0e305c6be
Merge pull request #19337 from danielschonfeld/optimize-list-routes
...
Auto commit by PR queue bot
2016-01-08 10:19:47 -08:00
Justin Santa Barbara
03900b1dc9
AWS: Use a strongly typed mountDevice
...
We've had problems in the past from using a string with passing the
wrong value when detaching; stronger typing would have caught this for
us.
2016-01-08 00:25:11 -05:00
Daniel Schonfeld
24c44e7a8e
optimize ListRoutes to fetch instances only once per call
...
Issue #12121 - fixes courtesy of @justinsb - thank you
2016-01-07 14:32:37 -05:00
Justin Santa Barbara
e7c3a08947
AWS: Provide newly required initialization arguments
...
It seems that some formerly optional arguments are now required in the
latest aws-sdk-go, see e.g.
https://github.com/aws/aws-sdk-go/issues/452 .
2016-01-06 13:37:02 -05:00
Kenneth Shelton
9e6c45c395
Updated comments
...
Updated documentation
Fixed e2e test
2016-01-05 20:51:21 +00:00
Kenneth Shelton
d399a8f8cc
* Added UDP LB support (for GCE)
2016-01-05 20:51:21 +00:00
Trevor Pounds
bbc181d1f8
Remove unused EC2 metadata functions.
2016-01-04 16:10:23 -08:00
Trevor Pounds
89d7eb050a
Update AWS cloud provider to aws-sdk-go v1.0.2.
2016-01-04 16:10:23 -08:00
Justin Santa Barbara
7444216d4f
AWS: Delete routes during create if they are black-holed
...
If a route already exists but is invalid (e.g. from a crash), we
automatically delete it before trying to create a route that would
otherwise conflict.
2016-01-03 18:19:12 -05:00
Justin Santa Barbara
f9a6ac077e
Ubernetes Lite: Volumes can dictate zone scheduling
...
For AWS EBS, a volume can only be attached to a node in the same AZ.
The scheduler must therefore detect if a volume is being attached to a
pod, and ensure that the pod is scheduled on a node in the same AZ as
the volume.
So that the scheduler need not query the cloud provider every time, and
to support decoupled operation (e.g. bare metal) we tag the volume with
our placement labels. This is done automatically by means of an
admission controller on AWS when a PersistentVolume is created backed by
an EBS volume.
Support for tagging GCE PVs will follow.
Pods that specify a volume directly (i.e. without using a
PersistentVolumeClaim) will not currently be scheduled correctly (i.e.
they will be scheduled without zone-awareness).
2015-12-31 12:27:01 -05:00
Jan Safranek
815d1e0865
Tag OpenStack Cinder volumes created by Kubernetes.
...
This synchronizes Cinder with AWS EBS code, where we already tag volumes with
claim.Namespace and claim.Name (and pv.Name, as suggested in separate PR).
2015-12-21 11:36:42 +01:00
Jan Safranek
2f06ebf9b7
Implement Creater and Deleter interfaces for Cinder.
2015-12-16 14:23:14 -05:00
Jan Safranek
1b7445a6e2
Use SSD as default volume type.
...
General purpose SSD ('gp2') volume type is just slighly more expensive than
Magnetic ('standard' / default in AWS), while the performance gain is pretty
significant.
So far, the volumes were created only during testing, where the extra cost
won't make any difference. In future, we plan to introduce QoS classes, where
users could choose SSD/Magnetic depending on their use cases.
'gp2' is just the default volume type for (hopefuly) short period before these
QoS classes are implemented.
2015-12-15 12:14:48 +01:00
Jan Safranek
6ff5286df9
Implement Creater and Deleter interfaces for AWS EBS.
...
Also mark the created EBS volumes with tags, so the admin knows
who/what created the volumes.
2015-12-15 10:22:49 +01:00
Jan Safranek
700d92c2a8
AWS: Use GiB as units for disk sizes.
...
From some reason, MiBs were used for public functions and AWS cloud provider
recalculated them to GiB. Let's expose what AWS really supports and don't hide
real allocation units.
2015-12-15 10:18:00 +01:00
k8s-merge-robot
56cd501598
Merge pull request #18427 from mesosphere/sttts-cloud-provider-npe
...
Auto commit by PR queue bot
2015-12-09 08:45:06 -08:00
Dr. Stefan Schimanski
60ce27cb50
cloudprovider/mesos: fix panics when the Mesos master cannot be reached
2015-12-09 12:58:38 +01:00
Robert Bailey
2ecf504a2e
Change the gce constant for session affinity to have the capitalization
...
shown in the documentation.
Fixes #18347
2015-12-08 09:36:49 -08:00
Mike Danese
dcdd7f1ca8
remove vagrant cloud provider
2015-12-02 13:20:54 -08:00
Sebastien LAWNICZAK
3eae5895f8
Passing DomainID/DomainName to AuthOptions
...
To be able to use Domains with IdentityV3, domain-id/domain-name in provider config should be passed to gophercloud.AuthOptions
2015-12-01 23:12:25 +01:00
k8s-merge-robot
74049947d2
Merge pull request #12589 from slaws/os-vip-with-floatingip
...
Auto commit by PR queue bot
2015-12-01 02:01:39 -08:00
saadali
42b200a0a0
Refactor GCE wrapper library to allow execution from E2E test suite
...
This reverts commit 147b6911f5 , reversing
changes made to 6fd986065b .
2015-11-25 11:48:06 -08:00
k8s-merge-robot
9a4a8075ed
Merge pull request #15537 from jsafrane/devel/cinder-hostname
...
Auto commit by PR queue bot
2015-11-24 06:47:40 -08:00
Jerome Touffe-Blin
4a01539ded
Fix #17647 - AWS add tag to SG only if existing tag
2015-11-23 22:08:17 +11:00
Jerzy Szczepkowski
8a922e22be
Revert "Refactor GCE wrapper library to allow execution from E2E test suite"
2015-11-23 09:24:32 +01:00
k8s-merge-robot
3fbf0cb810
Merge pull request #17276 from saad-ali/fixErrorCreatingPD
...
Auto commit by PR queue bot
2015-11-21 23:32:30 -08:00
saadali
882469dd7b
Refactor GCE wrapper library to allow execution from E2E test suite
2015-11-20 11:41:10 -08:00
Brendan Burns
4903474bad
Remove container api, its no longer generated and breaking godeps.
2015-11-19 09:20:28 -05:00
Dr. Stefan Schimanski
2f45d5706b
Add node status update controller
2015-11-16 11:48:04 +01:00
Dr. Stefan Schimanski
0c1d90bf5f
Add ListWithoutKubelet to mesos cloud provider
2015-11-16 11:48:04 +01:00
Dr. Stefan Schimanski
6a2602a51b
Make cloud provider return disappearence of slave to the node controller
...
- implement ExternalID in Mesos cloud provider. This is used by the node
controller to detect disappeared nodes.
- add test case for ExternalID
2015-11-16 11:48:04 +01:00
k8s-merge-robot
e86c3de65b
Merge pull request #16633 from brendandburns/aws2
...
Auto commit by PR queue bot
2015-11-13 02:01:55 -08:00
Brendan Burns
64aa189bd2
Make the AWS provider target the metadata server for local data lookup
2015-11-12 15:15:01 -08:00
Jan Safranek
7fc8bcae60
openstack: cache InstanceID and use it for volume management.
...
Hostnames are not related to server names or instance IDs in any way,
don't use them when attaching/detaching volumes.
2015-11-12 11:10:38 +01:00
Justin Santa Barbara
55c4140a0a
AWS: Refactor interfaces to take a single request arg
...
Cleaning up some of the older code that tried to abstract the AWS SDK,
from when the AWS SDK was less consistent (pre aws-sdk-go).
2015-11-08 22:35:12 -08:00
k8s-merge-robot
45028e8c3d
Merge pull request #14493 from BugRoger/fix_devicemapping_cache_invalidation
...
Auto commit by PR queue bot
2015-10-29 06:43:10 -07:00
k8s-merge-robot
0ced872a26
Merge pull request #16142 from bprashanth/cloudprovider_methods
...
Auto commit by PR queue bot
2015-10-26 19:44:48 -07:00