The Multus-CNI Addon allows automated installation of Multus-CNI
in KKP.
Prerequisites
Before installing the Multus Addon in a KKP user cluster, the following prerequisites have to be met:
KKP Version
This addon works with KKP version 2.16+.
Installing Multus Addon in KKP
Before this addon can be deployed in a KKP user cluster, the KKP installation has to be configured to enable Multus
as an accessible addon. This needs to be done by the KKP installation administrator,
once per KKP installation.
As an administrator you can find the AddonConfig for Multus at the end of this document.
Multus will be installed without a ConfigMap. This is done on purpose to allow users to customize the ConfigMap and Plugins as they wish. When no ConfigMap is installed, an error message will be printed in the KKP UI.
Deploying Multus Addon in a KKP User Cluster
Once the Multus Addon is installed in KKP, it can be deployed into a user cluster via the KKP UI as shown below:
Multus Addon Options
With the Multus Addon, we wanted to keep the user able to deploy whatever configuration he needs.
The addon will deploy Multus without the dynamic ConfigMap creation. A placeholder for the ConfigMap is used instead which will allow the kubelet to read it first (alphabetical order takes precedence CNI wise).
In short, there are no options from the KKP UI side, and we give free reigns to the cluster’s operators.
You can find multiple examples in the official repo, depending on your node’s architecture or the cloud provider. Click here for the examples provided by Multus.
Here is an example of a ConfigMap that uses flannel as the primary CNI:
kind: ConfigMap
apiVersion: v1
metadata:
name: multus-cni-config
namespace: kube-system
labels:
tier: node
app: multus
data:
cni-conf.json: |
{
"name": "multus-cni-network",
"type": "multus",
"capabilities": {
"portMappings": true
},
"delegates": [
{
"cniVersion": "0.3.1",
"name": "default-cni-network",
"plugins": [
{
"type": "flannel",
"name": "flannel.1",
"delegate": {
"isDefaultGateway": true,
"hairpinMode": true
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
}
]
}
],
"kubeconfig": "/etc/cni/net.d/multus.d/multus.kubeconfig"
}
AddonConfig
apiVersion: kubermatic.k8c.io/v1
kind: AddonConfig
metadata:
annotations:
name: multus
spec:
description: The Multus CNI allows pods to have multiple interfaces
and using features like SR-IOV.
shortDescription: Multus CNI
logoFormat: "svg+xml"
# The logo must be base64 encoded.
logo: |+
PD94bWwgdmVyc2lvbj0iMS4wIiBz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