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.
This commit is contained in:
Justin Santa Barbara
2015-03-09 20:31:57 -07:00
parent a4d871a100
commit 5d36d3cdbe
6 changed files with 24 additions and 21 deletions

View File

@@ -720,6 +720,9 @@ type ServiceSpec struct {
CreateExternalLoadBalancer bool `json:"createExternalLoadBalancer,omitempty"`
// PublicIPs are used by external load balancers, or can be set by
// users to handle external traffic that arrives at a node.
// For load balancers, the publicIP will usually be the IP address of the load balancer,
// but some load balancers (notably AWS ELB) use a hostname instead of an IP address.
// For hostnames, the user will use a CNAME record (instead of using an A record with the IP)
PublicIPs []string `json:"publicIPs,omitempty"`
// ContainerPort is the name or number of the port on the container to direct traffic to.