Flannel
Versions Supported
- 0.23.x
- 0.22.x
- 0.21.x
- 0.20.x
- Deprecated
Change the Backend
If you need to change the backend type or update the backend port due to firewall or other restrictions, you can do so
by updating the pack YAML. The parameters charts.flannel.backend
and charts.flannel.backendPort
can be used to
change the default behavior. Refer to the official
backend documentation to learn more
about supported backends.
charts:
flannel:
backend: "vxlan"
backendPort: 8472
Change MTU
By default, Flannel will use the Maximum Transmission Unit (MTU) of the host interface. If you need to change the MTU,
you can do so by updating the pack YAML. The parameter charts.flannel.mtu
can be used to change the MTU value.
charts:
flannel:
mtu: 1500
VXLAN Configuration
Additional parameters can be used to configure the VXLAN backend. The VXLAN configuration is commented out by default in the pack YAML. Uncomment the parameters you want to use and update the values as needed. Refer to the VXLAN backend documentation for additional guidance.
charts:
flannel:
VXLAN Configs:
#VXLAN Identifier to be used. On Linux default is 1.
vni: 1
#Enable VXLAN Group Based Policy (Default false)
GBP: false
#Enable direct routes (default is false)
directRouting: false
#MAC prefix to be used on Windows. (Defaults is 0E-2A)
macPrefix: "0E-2A"
? Wireguard Configs
#UDP listen port used with IPv6
backendPortv6: 51821
#Pre shared key to use
psk: 0
#IP version to use on Wireguard
tunnelMode: "separate"
#Persistent keep interval to use
keepaliveInterval: 0
Change the Backend
If you need to change the backend type or update the backend port due to firewall or other restrictions, you can do so
by updating the pack YAML. The parameters charts.flannel.backend
and charts.flannel.backendPort
can be used to
change the default behavior. Refer to the official
backend documentation to learn more
about supported backends.
charts:
flannel:
backend: "vxlan"
backendPort: 8472
Change MTU
By default, Flannel will use the Maximum Transmission Unit (MTU) of the host interface. If you need to change the MTU,
you can do so by updating the pack YAML. The parameter charts.flannel.mtu
can be used to change the MTU value.
charts:
flannel:
mtu: 1500
VXLAN Configuration
Additional parameters can be used to configure the VXLAN backend. The VXLAN configuration is commented out by default in the pack YAML. Uncomment the parameters you want to use and update the values as needed. Refer to the VXLAN backend documentation for additional guidance.
charts:
flannel:
VXLAN Configs:
#VXLAN Identifier to be used. On Linux default is 1.
vni: 1
#Enable VXLAN Group Based Policy (Default false)
GBP: false
#Enable direct routes (default is false)
directRouting: false
#MAC prefix to be used on Windows. (Defaults is 0E-2A)
macPrefix: "0E-2A"
? Wireguard Configs
#UDP listen port used with IPv6
backendPortv6: 51821
#Pre shared key to use
psk: 0
#IP version to use on Wireguard
tunnelMode: "separate"
#Persistent keep interval to use
keepaliveInterval: 0
Change the Backend
If you need to change the backend type or update the backend port due to firewall or other restrictions, you can do so
by updating the pack YAML. The parameters charts.flannel.backend
and charts.flannel.backendPort
can be used to
change the default behavior. Refer to the official
backend documentation to learn more
about supported backends.
manifests:
flannel:
backend: "vxlan"
backendPort: 8472
Change MTU
By default, Flannel will use the Maximum Transmission Unit (MTU) of the host interface. If you need to change the MTU,
you can do so by updating the pack YAML. The parameter charts.flannel.mtu
can be used to change the MTU value.
manifests:
flannel:
mtu: 1500
Prerequisites
- Kubernetes version 1.22 or later.
Parameters
The following table lists commonly used parameters for Flannel version 0.20.x. Refer to the pack YAML file for the complete list of parameters.
Parameter | Description | Default |
---|---|---|
manifests.flannel.flannelNetwork | The IPv4 CIDR range to assign to the pod network. This should match the Kubernetes PodCIDR . | 192.168.0.0/16 |
manifests.flannel.cniPluginsImage | The image used for installing the core-cni-plugins through the initContainer. | gcr.io/spectro-images-public/release/cni-plugins/cni-plugins:v1.2.0 |
manifests.flannel.image_cni.repository | The Flannel CNI image repository. | docker.io/flannel/flannel-cni-plugin |
Usage
Change the Backend
If you need to change the backend type or update the backend port due to firewall or other restrictions, you can do so
by updating the pack YAML. The parameters charts.flannel.backend
and charts.flannel.backendPort
can be used to
change the default behavior. Refer to the official
backend documentation to learn more
about supported backends.
manifests:
flannel:
backend: "vxlan"
backendPort: 8472
Change MTU
By default, Flannel will use the Maximum Transmission Unit (MTU) of the host interface. If you need to change the MTU,
you can do so by updating the pack YAML. The parameter charts.flannel.mtu
can be used to change the MTU value.
manifests:
flannel:
mtu: 1500
All versions less than v0.20.x are considered deprecated. Upgrade to a newer version to take advantage of new features.
Terraform
Use the following Terraform snippet to reference the Flannel CNI pack in your Terraform template. Replace the version number with the version you want to use.
data "spectrocloud_registry" "public_registry" {
name = "Public Repo"
}
data "spectrocloud_pack_simple" "flannel" {
name = "cni-flannel"
version = "0.23.0"
type = "helm"
registry_uid = data.spectrocloud_registry.public_registry.id
}