From 4501b715c1e519d3ca6395b32ca3f70739b20ca4 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Fri, 4 Aug 2017 17:50:50 -0700 Subject: [PATCH] Update service.md (#4644) * Update service.md Put Internal Load Balancer YAML in tabs. * add the --- docs/concepts/services-networking/service.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/concepts/services-networking/service.md b/docs/concepts/services-networking/service.md index e55a084fb0..54007a67e5 100644 --- a/docs/concepts/services-networking/service.md +++ b/docs/concepts/services-networking/service.md @@ -435,7 +435,11 @@ In a split-horizon DNS environment you would need two services to be able to rou This can be achieved by adding the following annotations to the service based on cloud provider. -For GCP ([docs](https://cloud.google.com/container-engine/docs/internal-load-balancing)): +{% capture default_tab %} +Select one of the tabs. +{% endcapture %} + +{% capture gcp %} ```yaml [...] metadata: @@ -445,7 +449,10 @@ metadata: [...] ``` -For AWS: +For more information, see the [docs](https://cloud.google.com/container-engine/docs/internal-load-balancing). +{% endcapture %} + +{% capture aws %} ```yaml [...] metadata: @@ -454,8 +461,9 @@ metadata: service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 [...] ``` +{% endcapture %} -For Azure: +{% capture azure %} ```yaml [...] metadata: @@ -464,7 +472,11 @@ metadata: service.beta.kubernetes.io/azure-load-balancer-internal: "true" [...] ``` +{% endcapture %} +{% assign tab_names = 'Default,GCP,AWS,Azure' | split: ',' | compact %} +{% assign tab_contents = site.emptyArray | push: default_tab | push: gcp | push: aws | push: azure %} +{% include tabs.md %} #### SSL support on AWS For partial SSL support on clusters running on AWS, starting with 1.3 two