Skip to main content
FieldTypeDescriptionValue(s)
backendTypestringType of the Flannel backend to use.

See Flannel documentation for supported backend types.
The default value in generated machine configuration is “vxlan”.
backendPortuint16UDP port used by Flannel for encapsulating traffic (if the backend type requires encapsulation).

The default value in generated machine configuration is 4789.
backendMTUuint32Transport MTU to be used for the pod network.

Flannel will subtract encapsulation overhead from this MTU to calculate
the MTU of the pod interface.
If not set, the default is auto-detection of MTU by Flannel.
If KubeSpan is enabled, and the value is not set, defaults to KubeSpan MTU.
backendExtraConfigUnstructuredExtra configuration for Flannel backend.

The content of this field depends on the backend type used.
The value of this field will be patched into Flannel configuration ‘Backend’ section as-is.
resourcesResourcesConfigResources configuration for Flannel main container.
extraArgs[]stringExtra arguments for ‘flanneld’.
kubeNetworkPoliciesEnabledboolDeploys kube-network-policies along with Flannel.

This enables Kubernetes Network Policies support in the cluster.
kubeNetworkPoliciesArgs[]stringCommand-line arguments for kube-network-policies.

If set to a non-empty list, the arguments are passed to kube-network-policies exactly as specified,
replacing the default arguments completely.
If not set or set to an empty list, the default arguments are used: “—hostname-override=(MYNODENAME)"and"−−v=2".<br/><br/>TheenvironmentvariableMYNODENAMEissettothenameofthenode,<br/>so"−−hostname−override=(MY_NODE_NAME)" and "--v=2".<br /><br />The environment variable MY_NODE_NAME is set to the name of the node,<br />so "--hostname-override=(MY_NODE_NAME)” should always be included.
kube-network-policies always starts a metrics server, by default on “:9080” (all addresses),
use “—metrics-bind-address=127.0.0.1:9080” to restrict it to the host loopback interface.

resources

ResourcesConfig represents the pod resources.
FieldTypeDescriptionValue(s)
requestsUnstructuredRequests configures the reserved cpu/memory resources.
limitsUnstructuredLimits configures the maximum cpu/memory limits a pod can use.