Multus CNI packaged by Bitnami¶
Multus is a CNI plugin for Kubernetes clusters. Written in Go, features adding multiple network interfaces to pods.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR¶
使用加速地址添加仓库:
Introduction¶
This chart bootstraps a Multus CNI deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Looking to use Multus CNI in production? Try VMware Application Catalog, the enterprise edition of Bitnami Application Catalog.
Prerequisites¶
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart¶
To install the chart with the release name my-release
:
The command deploys Multus CNI on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart¶
To uninstall/delete the my-release
deployment:
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters¶
Global parameters¶
Name | Description | Value |
---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters¶
Name | Description | Value |
---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override multus-cni.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override multus-cni.fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonAnnotations | Common annotations to add to all Multus CNI resources (sub-charts are not considered). Evaluated as a template | {} |
commonLabels | Common labels to add to all Multus CNI resources (sub-charts are not considered). Evaluated as a template | {} |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template). | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Multus CNI parameters¶
Name | Description | Value |
---|---|---|
image.registry | Multus CNI image registry | docker.io |
image.repository | Multus CNI Image name | bitnami/multus-cni |
image.tag | Multus CNI Image tag | 4.0.2-debian-11-r10 |
image.digest | Multus CNI image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Multus CNI image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
CNIVersion | CNI version | 0.3.0 |
hostCNIBinDir | CNI binary dir in the host machine to mount | /opt/cni/bin |
hostCNINetDir | CNI net.d dir in the host machine to mount | /etc/cni/net.d |
CNIMountPath | Path inside the container to mount the CNI dirs | /bitnami/multus-cni/host |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
priorityClassName | Multus CNI pods' priorityClassName | "" |
schedulerName | Name of the k8s scheduler (other than default) | "" |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
hostAliases | Add deployment host aliases | [] |
extraEnvVars | Extra environment variables | [] |
extraEnvVarsCM | ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Secret containing extra env vars (in case of sensitive data) | "" |
extraVolumes | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts | [] |
extraVolumeMounts | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes . | [] |
initContainers | Add additional init containers to the pod (evaluated as a template) | [] |
sidecars | Attach additional containers to the pod (evaluated as a template) | [] |
tolerations | Tolerations for pod assignment | [] |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
resources.requests | The requested resources for the init container | {} |
resources.limits | The resources limits for the init container | {} |
podSecurityContext.enabled | Enable Multus CNI pods' Security Context | true |
podSecurityContext.fsGroup | Multus CNI pods' group ID | 0 |
containerSecurityContext.enabled | Enable Multus CNI containers' Security Context | true |
containerSecurityContext.runAsUser | Multus CNI containers' Security Context | 0 |
containerSecurityContext.runAsNonRoot | Set Multus CNI container's Security Context runAsNonRoot | false |
containerSecurityContext.privileged | Set Multus CNI container's Security Context privileged | true |
startupProbe.enabled | Enable startupProbe | false |
startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 5 |
startupProbe.failureThreshold | Failure threshold for startupProbe | 5 |
startupProbe.successThreshold | Success threshold for startupProbe | 1 |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 5 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | false |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 5 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customStartupProbe | Override default startup probe | {} |
customLivenessProbe | Override default liveness probe | {} |
customReadinessProbe | Override default readiness probe | {} |
lifecycleHooks | LifecycleHook to set additional configuration at startup Evaluated as a template | {} |
podAnnotations | Pod annotations | {} |
podLabels | Add additional labels to the pod (evaluated as a template) | {} |
Other Parameters¶
Name | Description | Value |
---|---|---|
rbac.create | Specifies whether RBAC resources should be created | true |
serviceAccount.create | Enable creation of ServiceAccount for Multus CNI pod | true |
serviceAccount.name | The name of the ServiceAccount to use. | "" |
serviceAccount.automountServiceAccountToken | Allows auto mount of ServiceAccountToken on the serviceAccount created | true |
serviceAccount.annotations | Additional custom annotations for the ServiceAccount | {} |
Specify each parameter using the --set key=value[,key=value]
argument to helm install
. For example,
The above command sets the Multus CNI scheduler to high-priority.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
Tip: You can use the default values.yaml
Configuration and installation details¶
Rolling VS Immutable tags¶
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
Host configuration¶
Once installed, the helm chart will modify configuration files in the host nodes of the Kubernetes cluster. Ensure that the cluster allows root and privileged deployments.
Once the multus-cni configuration is installed, check the upstream Kubernetes documentation on how to modify the network settings of the cluster.
Important: Double check that the host CNI binary and configuration directories are properly configured, or the deployment will fail. This is done using the
hostCNINetDir
andhostCNIBinDir
values.
Image¶
The image
parameter allows specifying which image will be pulled for the chart.
Private registry¶
If you configure the image
value to one in a private registry, you will need to specify an image pull secret.
- Manually create image pull secret(s) in the namespace. See this YAML example reference. Consult your image registry's documentation about getting the appropriate secret.
-
Note that the
imagePullSecrets
configuration value cannot currently be passed to helm using the--set
parameter, so you must supply these using avalues.yaml
file, such as: -
Install the chart
Setting Pod's affinity¶
This chart allows you to set your custom affinity using the affinity
parameter. Find more information about Pod's affinity in the kubernetes documentation.
As an alternative, you can use of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset
, podAntiAffinityPreset
, or nodeAffinityPreset
parameters.
Troubleshooting¶
Find more information about how to deal with common errors related to Bitnami's Helm charts in this troubleshooting guide.
License¶
Copyright © 2023 VMware, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.