Back to Talos

KubeNetworkConfig

website/content/v1.14/reference/configuration/kubernetes/kubenetworkconfig.md

1.14.02.1 KB
Original Source
<!-- markdownlint-disable -->

{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeNetworkConfig dnsDomain: cluster.local # The domain used by Kubernetes DNS.

The pod subnet (CIDR), this can be a single value or two values for dual-stack clusters.

podSubnets: - 10.244.0.0/16

The service subnet (CIDR), this can be a single value or two values for dual-stack clusters.

serviceSubnets: - 10.96.0.0/12 {{< /highlight >}}

{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeNetworkConfig dnsDomain: cluster.local # The domain used by Kubernetes DNS.

The pod subnet (CIDR), this can be a single value or two values for dual-stack clusters.

podSubnets: - fc00:db8:10::/56

The service subnet (CIDR), this can be a single value or two values for dual-stack clusters.

serviceSubnets: - fc00:db8:20::/112 {{< /highlight >}}

{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeNetworkConfig dnsDomain: cluster.local # The domain used by Kubernetes DNS.

The pod subnet (CIDR), this can be a single value or two values for dual-stack clusters.

podSubnets: - 10.244.0.0/16 - fc00:db8:10::/56

The service subnet (CIDR), this can be a single value or two values for dual-stack clusters.

serviceSubnets: - 10.96.0.0/12 - fc00:db8:20::/112 {{< /highlight >}}

FieldTypeDescriptionValue(s)
dnsDomainstringThe domain used by Kubernetes DNS.
The default is cluster.local
podSubnets[]PrefixThe pod subnet (CIDR), this can be a single value or two values for dual-stack clusters.
serviceSubnets[]PrefixThe service subnet (CIDR), this can be a single value or two values for dual-stack clusters.
nodeCIDRMaskSizeIPv4intThe IPv4 per-node pod CIDR mask size, i.e. the size of the pod CIDR allocated to each node, from the IPv4 pod subnet.
The default is 24.
Must be between 1 and 32.
nodeCIDRMaskSizeIPv6intThe IPv6 per-node pod CIDR mask size, i.e. the size of the pod CIDR allocated to each node, from the IPv6 pod subnet.
The default is 64.
Must be between 1 and 128.