From 2f50a22c94af0009b7a4e6aabe54846816165a0c Mon Sep 17 00:00:00 2001 From: Dong Liu Date: Fri, 28 Jul 2017 04:39:53 +0800 Subject: [PATCH] Update document for Azure LoadBalancer support. (#4082) * Add doc for azure internal load balancer support. * Add note for user-specified 'loadBalancerIP' support on Azure. * Fix comment. * Fix comment --- docs/concepts/services-networking/service.md | 23 +++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/concepts/services-networking/service.md b/docs/concepts/services-networking/service.md index 729c1bed44bd5..25369691059d1 100644 --- a/docs/concepts/services-networking/service.md +++ b/docs/concepts/services-networking/service.md @@ -427,10 +427,18 @@ with the user-specified `loadBalancerIP`. If the `loadBalancerIP` field is not s an ephemeral IP will be assigned to the loadBalancer. If the `loadBalancerIP` is specified, but the cloud provider does not support the feature, the field will be ignored. -#### Internal load balancer on AWS +Special notes for Azure: To use user-specified public type `loadBalancerIP`, a static type +public IP address resource needs to be created first, and it should be in the same resource +group of the cluster. Then you could specify the assigned IP address as `loadBalancerIP`. + +#### Internal load balancer In a mixed environment it is sometimes necessary to route traffic from services inside the same VPC. -This can be achieved by adding the following annotation to the service: +In a split-horizon DNS environment you would need two services to be able to route both external and internal traffic to your endpoints. + +This can be achieved by adding the following annotations to the service based on cloud provider. + +For AWS: ```yaml [...] metadata: @@ -439,7 +447,16 @@ metadata: service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 [...] ``` -In a split-horizon DNS environment you would need two services to be able to route both external and internal traffic to your endpoints. + +For Azure: +```yaml +[...] +metadata: + name: my-service + annotations: + service.beta.kubernetes.io/azure-load-balancer-internal: "true" +[...] +``` #### SSL support on AWS