k8s-merge-robot
5a6cf15c09
Merge pull request #19874 from justinsb/aws_fix_findinstancesbynodenames
...
Auto commit by PR queue bot
2016-02-01 21:38:46 -08:00
Rudi Chiarito
76e29ed455
Register ECR credential plugin only when an AWS cloud instance is created
2016-01-25 22:18:45 -05:00
Zach Loafman
7189db3701
Merge pull request #19396 from justinsb/aws_mountdevice
...
AWS: Use a strongly typed mountDevice
2016-01-22 11:04:23 -08:00
Alex Mohr
f64a40f315
Merge pull request #19863 from justinsb/aws_fix_loadbalancer_tcp_check
...
AWS: Eliminate assumptions about all load-balancer ports matching
2016-01-21 10:52:20 -08:00
Alex Mohr
b8f8a62775
Merge pull request #19862 from justinsb/aws_fix_tcploadbalancer_comment
...
AWS: Fix comment to reflect new method name
2016-01-21 10:51:37 -08:00
Alex Mohr
8e9bebb424
Merge pull request #19861 from justinsb/aws_remove_dead_code
...
AWS: Remove dead code
2016-01-21 10:51:06 -08:00
Alex Mohr
819cdc85d3
Merge pull request #19390 from danielschonfeld/optimize-kubelet-heartbeat-aws
...
optimize kubelet heartbeats instance data to be cached for AWS
2016-01-21 10:33:00 -08:00
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
Daniel Schonfeld
12cbc9ff89
optimize ExternalId() and InstanceId() to returned cached results directly from the metadata service
2016-01-13 23:36:57 -05: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
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
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
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
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
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
Tim Hockin
42c7fec490
Add a cloud-provider hook to scrub DNS for pods
...
GCE needs this hook and it seems general enough to include.
2015-10-23 17:01:49 -07:00
k8s-merge-robot
d453976e8a
Merge pull request #15918 from justinsb/fix_typos
...
Auto commit by PR queue bot
2015-10-20 13:37:14 -07:00
Justin Santa Barbara
67d3a93166
Fix misc typos
...
Mostly in comments, but also renamed the (test) function
migUdpateCmdBase -> migUpdateCmdBase.
2015-10-20 05:52:45 -04:00
Justin Santa Barbara
c465e91681
AWS: Log all calls at V(4), using a handler
...
Fixes #12122
2015-10-19 18:54:59 -04:00
k8s-merge-robot
a6634adc1c
Merge pull request #15435 from zhengguoyong/adjust_package_name_pkgcloudprovider
...
Auto commit by PR queue bot
2015-10-16 08:30:32 -07:00
combk8s
59b392c4fa
Capitalize the first letter in some log files
2015-10-15 11:03:56 +08:00
eulerzgy
8b174f7f33
adjust package name for pkg/cloudprovider
2015-10-10 16:44:54 +08:00
Trevor Pounds
5d5013a722
Remove unreachable panic statement.
...
The availability zone always exist since it is retrieved
from the instance's EC2 metadata service during cloud
provider construction.
2015-10-09 10:19:56 -07:00
Trevor Pounds
4407ca9a64
Remove unused method.
2015-10-09 10:19:56 -07:00
Trevor Pounds
f71533ce20
Remove unnecessary describe VPC call.
...
The external DescribeVPCs call is unnecessary since only the VPC ID
is used and it is retrieved from the EC2 metadata service.
2015-10-09 10:19:56 -07:00
Trevor Pounds
326dd7c1c0
Remove private struct field. It is only used at construction.
2015-10-09 10:19:56 -07:00
Michael Schmidt
48776f3feb
Fix for Invalidation of DeviceMapping-Cache
2015-10-06 09:58:04 +02:00
Alex Robinson
d578e7738d
Merge pull request #14242 from simonswine/fix_mulitple_subnets_per_az
...
aws: fixes ELB creation with multiple subnets per AZ
2015-10-05 13:06:19 -07:00
k8s-merge-robot
a34855e0d1
Merge pull request #14657 from justinsb/aws_more_regions
...
Auto commit by PR queue bot
2015-10-02 03:48:25 -07:00
Christian Simon
c1a14bd163
aws: fixes ELB creation with multiple subnets per AZ
...
Only takes the first available subnet in a AZ, ignore other subnets
and log warning about this.
Removes AWS region comparison for subnet AZs. A VPC is only in a single
AWS region.
Fixes #12381
2015-10-01 21:38:11 +01:00
eulerzgy
4c588d771c
ent
2015-09-30 14:49:19 +08:00
eulerzgy
71b96422f4
set capital in some files
2015-09-30 14:46:20 +08:00
Justin Santa Barbara
fda6243c5e
AWS: Recognize cn-north-1 & us-gov-west-1 regions
...
These two regions were accidentally omitted. This list now matches the
list we use elsewhere (e.g. when choosing an AMI).
Fixes #14420
2015-09-28 07:01:45 -07:00
Trevor Pounds
9cd91d111d
Use AWS SDK EC2 metadata client.
2015-09-25 17:03:22 -07:00
Trevor Pounds
df0718caa1
Migrate source to aws-sdk-go v0.9.9.
...
Upgrading to aws-sdk-go >= v0.9.0 requires a
source migration via awsmigrate-renamer tool.
see: http://aws.amazon.com/releasenotes/2948141298714307
2015-09-25 17:03:22 -07:00
Christopher Eck
511e3e1be9
Fix for issue #14466 . Don't use tag filtering when looking up which VPC an AWS node is attached to.
2015-09-24 09:51:35 -07:00
Trevor Pounds
1a7f8dc30c
Check load balancer and cluster have the same region.
2015-09-21 12:38:00 -07:00