cluster-nmstate

by startxfr

Helm chartv21.3.418App 4.21.0GPL-3.0-or-laterVerified publisher

Configure the NMState network operator for declarative node-level network interface configuration

About this chart

Cluster Chart : NMState

Configure the NMState network operator for declarative node-level network interface configuration.

This chart is part of the cluster-xxx startx helm chart series that doesn't necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use these resources.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/cluster-nmstate

4. Install this chart

Default values

Complete deployment of a project with the following characteristics:

  • Deploy the NMState CR (nmstate/nmstate) to activate the operator daemonset on all nodes
  • The operator subscription and namespace are managed separately via the operator and project sub-charts (both disabled by default)
# base configuration running default configuration
helm install cluster-nmstate startx/cluster-nmstate

Full deployment with operator and project

Enable the operator subscription and project namespace alongside the NMState CR:

helm install cluster-nmstate startx/cluster-nmstate \
  --set project.enabled=true \
  --set operator.enabled=true

Other available values

helm install cluster-nmstate startx/cluster-nmstate -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-nmstate/values-startx.yaml

Values files

Example values files shipped with the chart, to use with helm install -f <file> :

  • startx : context startx/default/infra; against values.yaml: differ on 18 keys, by top-level key: operator (6), project (6), context (4), nmstate (1), ... (see values-startx.yaml)
  • examples/argocd/ : 5 example manifest(s) (see the ArgoCD or usage sections)
helm install cluster-nmstate startx/cluster-nmstate -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-nmstate/values-startx.yaml

Values dictionary

context values dictionary

KeyDefaultDescription
context.scopemyscopeName of the global scope for this application
context.clusterdefaultName of the cluster running this application
context.environmentmyenvName of the environment (dev, factory, preprod, prod)
context.componentmycomponentComponent name of this application
context.appdefault-nmstateApplication name
context.version4.21.0Version name of this application

nmstate values dictionary

KeyDefaultDescription
nmstate.enabledtrueEnable the creation of the NMState CR to activate the operator
nmstate.hookedfalseDeploy as a Helm/ArgoCD post-sync hook
nmstate.namenmstateName of the NMState instance (must be nmstate for the operator to reconcile)

nncp values dictionary

KeyDefaultDescription
nncp.enabledfalseEnable the deployment of a NodeNetworkConfigurationPolicy
nncp.hookedfalseDeploy as a Helm/ArgoCD post-sync hook
nncp.namedefault-network-policyName of the NodeNetworkConfigurationPolicy
nncp.nodeSelector{}Node selector to target specific nodes (empty = all)
nncp.desiredStateinterfaces: []Desired network state in NMState YAML format

nads values dictionary

KeyDefaultDescription
nads.enabledfalseEnable the creation of the NetworkAttachmentDefinition list
nads.hookedfalseDeploy the resources as a Helm/ArgoCD post-sync hook
nads.list[]List of NetworkAttachmentDefinition to create
nads.list[].nameName of the NetworkAttachmentDefinition
nads.list[].namespacedefaultNamespace of the NetworkAttachmentDefinition (default = usable from every namespace)
nads.list[].annotations{}Additional annotations (ex: k8s.v1.cni.cncf.io/resourceName for SR-IOV networks)
nads.list[].configCNI configuration (YAML/JSON text or map), stored as the JSON string expected by Multus

A network attachment usually completes a NodeNetworkConfigurationPolicy: the policy creates the bridge or the VLAN interface on the nodes, the network attachment exposes it to the pods and virtual machines (the attachments are synced after the policies, ArgoCD wave 35). The config field accepts any CNI type (bridge, macvlan, ipvlan, sriov, ovn-k8s-cni-overlay...); its name defaults to the resource name.

nncp:
  enabled: true
  name: br1-policy
  desiredState: |
    interfaces:
      - name: br1
        type: linux-bridge
        state: up
        bridge:
          options:
            stp:
              enabled: false
          port:
            - name: bond1
nads:
  enabled: true
  list:
    - name: br1-network
      config: |
        cniVersion: "0.3.1"
        type: bridge
        bridge: br1
        macspoofchk: true
        ipam: {}

Deploy with ArgoCD

Deploy via ArgoCD Application

Deploy cluster-nmstate using three dedicated ArgoCD Applications - one per concern - all sharing the same AppProject:

git clone https://gitlab.com/startx1/helm.git
cd helm-repository/charts/cluster-nmstate/examples/argocd/
oc apply -k .

The automated sync policy ensures ArgoCD reconciles each concern independently whenever the chart or values drift from the desired state.

History

ReleaseDateDescription
21.3.32026-06-16Initial chart creation for NMState operator on OCP 4.21
21.3.42026-06-17Improve cluster-nmstate options
21.3.2782026-08-14add centigpu
21.3.3002026-10-21Add new charts and align all to this release
21.3.3092026-10-27Adding new charts perconna and align all to v21.3.309
21.3.3212026-11-08Add the NetworkAttachmentDefinition list (nads)
21.3.3712026-11-19Add Sail, oauthProxy, DSCInitialization, spot machines and annotations support
21.3.3772026-11-19full repository release: aligned pins, ArgoCD source fix, schemas and docs
21.3.3792026-11-19conventions wave: spelling, READMEs, ArgoCD examples and values-app, oauth switch
21.3.3892026-11-19full repository release: HTTPS dependency URLs, dependency-ordered release, schema guard, docs and examples
21.3.3902026-11-20full repository release: test fix, keepalived README, aligned pins
21.3.3922026-11-21full repository release: chaos-pipeline run parameters and authenticated health check, aligned pins
21.3.3972026-11-21stable repository release 21.3.397: all charts aligned, unifai delegation cap documentation
21.3.3982026-11-21project: dockercfg existingSecret; chaos-pipeline: empty default for scenarios, optional ClusterOperator final check; chaos schemas regenerated
21.3.4102026-11-22full repository release: README conventions (Values files, Deploy with ArgoCD), conventions page
21.3.4122026-11-22full repository release: internal pins on the previous published version (ADR-0006)
21.3.4162026-11-23stable update: chart fixes (project, cluster-mongo, cluster-oadp, cluster-pipeline, cluster-machine, example-catalog); cluster-dvo accepts the grafana keys next to its historical keys, which keep priority
21.3.4182026-11-23commit a stable release of all charts

Deploy cluster-nmstate with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-nmstate on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcluster-nmstate is pinned at v21.3.418 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply