website/content/en/docs/concepts/services-networking/dual-stack.md

106 lines
5.3 KiB
Markdown
Raw Normal View History

IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
---
reviewers:
- lachie83
- khenidak
- aramase
title: IPv4/IPv6 dual-stack
feature:
title: IPv4/IPv6 dual-stack
description: >
Allocation of IPv4 and IPv6 addresses to Pods and Services
content_template: templates/concept
weight: 70
---
{{% capture overview %}}
{{< feature-state for_k8s_version="v1.16" state="alpha" >}}
IPv4/IPv6 dual-stack enables the allocation of both IPv4 and IPv6 addresses to {{< glossary_tooltip text="Pods" term_id="pod" >}} and {{< glossary_tooltip text="Services" term_id="service" >}}.
If you enable IPv4/IPv6 dual-stack networking for your Kubernetes cluster, the cluster will support the simultaneous assignment of both IPv4 and IPv6 addresses.
{{% /capture %}}
{{% capture body %}}
## Supported Features
Enabling IPv4/IPv6 dual-stack on your Kubernetes cluster provides the following features:
* Dual-stack Pod networking (a single IPv4 and IPv6 address assignment per Pod)
* IPv4 and IPv6 enabled Services (each Service must be for a single address family)
* Pod off-cluster egress routing (eg. the Internet) via both IPv4 and IPv6 interfaces
## Prerequisites
The following prerequisites are needed in order to utilize IPv4/IPv6 dual-stack Kubernetes clusters:
* Kubernetes 1.16 or later
* Provider support for dual-stack networking (Cloud provider or otherwise must be able to provide Kubernetes nodes with routable IPv4/IPv6 network interfaces)
* A network plugin that supports dual-stack (such as Kubenet or Calico)
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
## Enable IPv4/IPv6 dual-stack
To enable IPv4/IPv6 dual-stack, enable the `IPv6DualStack` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the relevant components of your cluster, and set dual-stack cluster network assignments:
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
* kube-apiserver:
* `--feature-gates="IPv6DualStack=true"`
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
* kube-controller-manager:
* `--feature-gates="IPv6DualStack=true"`
* `--cluster-cidr=<IPv4 CIDR>,<IPv6 CIDR>` eg. `--cluster-cidr=10.244.0.0/16,fc00::/48`
* `--service-cluster-ip-range=<IPv4 CIDR>,<IPv6 CIDR>` eg. `--service-cluster-ip-range=10.0.0.0/16,fd00::/108`
Official 1.17 Release Docs (#18011) * feat: graduate TaintNodesByCondition to GA (#17073) * Promote StartupProbe to beta (enabled by default). (#17164) * Watch bookmarks to GA (#17026) * feat: graduate ScheduleDaemonSetPods to GA (#17350) * Update Docker installation instructions (#17405) * Use exact version numbers for installing Docker in Ubuntu (#17428) * Move CSIMigration and CSIMigrationGCE to Beta in Kubernetes v1.17 (#17478) * Promote NodeLease feature to GA (#17189) * Update docs for csi topology ga (#17408) * Update RunAsUsername to beta (#17460) * doc:Update RunAsUsername to beta * doc: update samples - kubernetes.io/os is no longer beta * Updating based on review feedback * Promote Node-specific volume limits to GA (#17432) * Promote PodShareProcessNamespace to stable (#17192) * Promote PodShareProcessNamespace to stable * Add for_k8s_version to feature-state label Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Readd version-check to shareProcessNamespace task * Update service load balancer finalizer doc for GA (#17438) * Update Topology Manager docs (#17451) * Added information on how device plugins can take advantage of Topology Manager * Updated the Topology Manager documentation to include additionalinformation and update some out of date sections * Fix broken Topology Manager link (#17746) Part of What's Next Device Plugin section * Update CRD defaulting docs for GA (#17450) * Add documentation for VolumeSnapshot Beta (#17233) * Updating EndpointSlice documentation for beta release in 1.17 (#17411) * (docs/dualstack): v1.17 updates (#17457) * Add placehold doc updates for dualstack in 1.17 Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Downward API and /etc/hosts Pod IP validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * remove addressed known issue via k/k pr 85246 Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove known issue and add flag as part of k/k 79993 Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * remove follow up placeholders Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update verbiage Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Make IP addressing consistent throughout the task Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update to status.podIPs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update content/en/docs/tasks/network/validate-dual-stack.md Use set instead of env Co-Authored-By: Khaled Henidak (Kal) <khnidk@outlook.com> * add topology.kubernetes.io/zone, topology.kubernetes.io/region and node.kubernetes.io/instance-type labels to docs (#17498) Signed-off-by: Andrew Sy Kim <kiman@vmware.com> * Service topology alpha documentation (#17459) * Update list of feature flags for in-tree plugins migrated to CSI (#17533) Signed-off-by: Deep Debroy <ddebroy@docker.com> * Update Node concept for TaintNodesByCondition going GA (#17577) * feat: graduate ResourceQuotaScopeSelectors to GA in 1.17 (#17554) * kubeadm: update the upgrade documentation for 1.17 (#17587) * doc: Simplify Windows deployments with RuntimeClass (#16697) * doc: Simplify Windows deployments with RuntimeClass * Updating on review feedback * doc: Adding windows-build label from enhancement 1301 * update doc for kubelet option --reserved-cpus (#17648) * feat: update TaintNodesByCondition in feature gates table (#17377) * Update docs for v1 resource quota configuration (#17547) * AdmissionConfiguration v1 (#17548) * Update WebhookAdmissionConfiguration examples (#17549) * Update AWS EBS Migration Feature state (#16126) * Add resource version section to api-concepts documentation (#16910) * Add Resource Version semantics section to api concepts * Clarify risks of going back in time, add details about compaction and watch cache sizes * Apply suggestions from liggitt Co-Authored-By: Jordan Liggitt <jordan@liggitt.net> * remove pesudocode, apply feedback * Fix typo * Clarify equality rules * Cleanup kubectl generators docs (#17609) * Write ReplicationController without a space * Drop mentioning unsupported cluster versions * Fix capitalization for “API group” * Tweak wording * Avoid using deprecated generator in example * add Antrea description in dev-1.17 (#17919) * Promote VolumeSubpathEnvExpansion to GA * Reference Documentation for the Kubernetes API for 1.17 (#18019) * Update feature-gates.md (#18033) * Reference Documentation for kubectl Commands for 1.17 (#18017) * Update for v1.17 (#18034) * Update config.toml(release-1.17) for 1.17 (#18031)
2019-12-10 00:11:29 +00:00
* `--node-cidr-mask-size-ipv4|--node-cidr-mask-size-ipv6` defaults to /24 for IPv4 and /64 for IPv6
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
* kubelet:
* `--feature-gates="IPv6DualStack=true"`
* kube-proxy:
* `--cluster-cidr=<IPv4 CIDR>,<IPv6 CIDR>`
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
* `--feature-gates="IPv6DualStack=true"`
## Services
If your cluster has IPv4/IPv6 dual-stack networking enabled, you can create {{< glossary_tooltip text="Services" term_id="service" >}} with either an IPv4 or an IPv6 address. You can choose the address family for the Service's cluster IP by setting a field, `.spec.ipFamily`, on that Service.
You can only set this field when creating a new Service. Setting the `.spec.ipFamily` field is optional and should only be used if you plan to enable IPv4 and IPv6 {{< glossary_tooltip text="Services" term_id="service" >}} and {{< glossary_tooltip text="Ingresses" term_id="ingress" >}} on your cluster. The configuration of this field not a requirement for [egress](#egress-traffic) traffic.
{{< note >}}
The default address family for your cluster is the address family of the first service cluster IP range configured via the `--service-cluster-ip-range` flag to the kube-controller-manager.
{{< /note >}}
You can set `.spec.ipFamily` to either:
* `IPv4`: The API server will assign an IP from a `service-cluster-ip-range` that is `ipv4`
* `IPv6`: The API server will assign an IP from a `service-cluster-ip-range` that is `ipv6`
The following Service specification does not include the `ipFamily` field. Kubernetes will assign an IP address (also known as a "cluster IP") from the first configured `service-cluster-ip-range` to this Service.
{{< codenew file="service/networking/dual-stack-default-svc.yaml" >}}
The following Service specification includes the `ipFamily` field. Kubernetes will assign an IPv6 address (also known as a "cluster IP") from the configured `service-cluster-ip-range` to this Service.
{{< codenew file="service/networking/dual-stack-ipv6-svc.yaml" >}}
2020-01-08 22:09:40 +00:00
For comparison, the following Service specification will be assigned an IPv4 address (also known as a "cluster IP") from the configured `service-cluster-ip-range` to this Service.
IPv4/IPv6 dual stack docs (#16010) * initial commit for IPv4/IPv6 dual stack docs Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove warning, Add What's next section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add Service section Add Provising a dual stack Kubernetes cluster section Add Ecosystem tooling section Update prerequisites Update flags Update supported features Move validation to task Add Service validation Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Remove ecosystem tooling Remove provisioning tools Add backtics to ipFamily values Update loadbalancer section Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Fix feature gate link typo Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Update to dual-stack Add default use-case to Service validation Add note to default Service behaviour Add default Service example Update egress routing description Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update api-server to the API server Fix small typo based on feedback Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Add for_k8s_version feature state Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Update service IP address verbiage to be more concise Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Move to tasks/network Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Move dual-stack under services-networking Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Remove dual-stack from glossary Add codenew blocks Split command from output Renamed pod name Created subheading to validate node and pod addressing Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com> * Verbiage update based on review Co-Authored-By: Tim Bannister <tim@scalefactory.com> Signed-off-by: Lachlan Evenson <lachlan.evenson@microsoft.com> * Apply suggestions from code review Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-09 15:27:19 +00:00
{{< codenew file="service/networking/dual-stack-ipv4-svc.yaml" >}}
### Type LoadBalancer
On cloud providers which support IPv6 enabled external load balancers, setting the `type` field to `LoadBalancer` in additional to setting `ipFamily` field to `IPv6` provisions a cloud load balancer for your Service.
## Egress Traffic
The use of publicly routable and non-publicly routable IPv6 address blocks is acceptable provided the underlying {{< glossary_tooltip text="CNI" term_id="cni" >}} provider is able to implement the transport. If you have a Pod that uses non-publicly routable IPv6 and want that Pod to reach off-cluster destinations (eg. the public Internet), you must set up IP masquerading for the egress traffic and any replies. The [ip-masq-agent](https://github.com/kubernetes-incubator/ip-masq-agent) is dual-stack aware, so you can use ip-masq-agent for IP masquerading on dual-stack clusters.
## Known Issues
* Kubenet forces IPv4,IPv6 positional reporting of IPs (--cluster-cidr)
{{% /capture %}}
{{% capture whatsnext %}}
* [Validate IPv4/IPv6 dual-stack](/docs/tasks/network/validate-dual-stack) networking
{{% /capture %}}