> This page is for Upstream Kubernetes Deployment Guide.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/reference-architectures/llms.txt.

# Installation

This section provides a step-by-step process to successfully install Kubernetes via BCM on a standard
cluster based off the Enterprise RA Software BOM.

1. Log into BCM headnode as root.

   ![Running cm-kubernetes-setup on the BCM head node, connecting to CMDaemon](/reference-architectures/_fern-files/_img/1f189bf4b5530a24f641503deef10d79c1b0c8490fa55d922229ed06c4e69476.webp)

2. Use cmsh > device > list to confirm the nodes you want deployed (can be various).

   ![Output of the cmsh device list showing the head nodes and master/worker nodes](/reference-architectures/_fern-files/_img/213c1459415f1dbcff8be878cf23d60c26d44bade786678271877b13dd2f0998.webp)

3. Run the `cm-kubernetes-setup` command.

   ```bash
   root@pdx-289-bcm-01:# cm-kubernetes-setup
   ```

4. Wizard screen.

   a. Select **Deploy**, and click **OK**.

   ![Kubernetes operations wizard menu with the Deploy option](/reference-architectures/_fern-files/_img/e05d4e021766e21e1e062d5288f215bf4227bb30c5edb1bd87029531f8cb332b.webp)

5. Choose a target Kubernetes Version.

   a. Use the space key to check selected version.

   b. Click **OK**.

   ![Kubernetes version selection screen](/reference-architectures/_fern-files/_img/3b5ce7e2bf72e16be98555ae88a8acb45a1aaab8a3fc118230f3e262059f0ed2.webp)

   > **Note**
   >
   > According to the Enterprise RA Software BOM, we select Kubernetes v1.31. The version may
   > differ for your specific deployment. See [Appendix A](./appendix).

6. Type in docker registry mirror server address if needed (optional).

   a. This part can be skipped by clicking **OK**.

   ![Docker registry mirror server address entry screen](/reference-architectures/_fern-files/_img/129bf317358b0f5daea4562144ea7b7d308e2478f2bf9f12e47a4625dcbe732e.webp)

7. Give a cluster name, domain name, external FQDN and desired IP addresses.

   a. Type in all information required, then click **OK**.

   ![Cluster name, domain name, external FQDN, and IP address configuration screen](/reference-architectures/_fern-files/nvidia-reference-architectures.docs.buildwithfern.com/7901bad5c7102e7d71b31e8ae0a0f8d5a07414a0a7b6c0116cd80acb61318554/_dot_dot_/docs/upstream-kubernetes-enterprise-ra-deployment-guide/images/upstream-kubernetes-deployment-guide-p7-img99.png)

8. Expose Kubernetes API server to external network if needed.

   a. Select **yes**, and click **OK**.

   ![Expose Kubernetes API server to external network selection screen](/reference-architectures/_fern-files/_img/6852928b7466a4a063485532fa4bd3e1a71e9d1564070c842b7396598c8347b0.webp)

9. Select preferred internal network used by Kubernetes nodes.

   a. Choose **internalnet**, and click **OK**.

   ![Internal network selection screen with internalnet chosen](/reference-architectures/_fern-files/_img/250b355e8bca465e8a8a69d20485a14efb9734615e55a25161f7bb7863741ee7.webp)

10. Selecting master nodes.

    a. Use space key to toggle master nodes that are already deployed.

    b. Click **OK**.

    ![Master node selection screen](/reference-architectures/_fern-files/nvidia-reference-architectures.docs.buildwithfern.com/5ab42042496e214dbce0eb3e05db431b38c251d2bcba34899b5bdbf2d4683846/_dot_dot_/docs/upstream-kubernetes-enterprise-ra-deployment-guide/images/upstream-kubernetes-deployment-guide-p8-img103.png)

11. Choosing Kubernetes workers categories.

    a. Choose the category that was previously configured ([Prerequisites](./prerequisites)).

    b. Toggle with space key, then click **OK**.

    ![Kubernetes worker categories selection screen](/reference-architectures/_fern-files/_img/68592adebced07bd18501e5522276698ad3efc8ded85dd686e8b262053949ad0.webp)

12. Choosing specific nodes if there are any.

    a. Any specific node included in the worker category can be chosen. In this case, none are available.

    b. Click **OK**.

    ![Specific node selection screen](/reference-architectures/_fern-files/nvidia-reference-architectures.docs.buildwithfern.com/d034748d70ccf8416f53f338bb2d2d6920801f2987a7221cfe89b305a22b1869/_dot_dot_/docs/upstream-kubernetes-enterprise-ra-deployment-guide/images/upstream-kubernetes-deployment-guide-p9-img106.png)

13. Choosing Etcd nodes.

    a. Toggle all three master nodes as Etcd nodes.

    b. Click **OK**.

    ![Etcd node selection screen with three master nodes toggled](/reference-architectures/_fern-files/nvidia-reference-architectures.docs.buildwithfern.com/560802851b6112b0ceda7cdca842341c5e39bf765f561609aedf20818940f661/_dot_dot_/docs/upstream-kubernetes-enterprise-ra-deployment-guide/images/upstream-kubernetes-deployment-guide-p10-img113.png)

    > **Note**
    >
    > etcd is the distributed key-value database that stores all Kubernetes cluster state (pods,
    > services, secrets, configs).
    >
    > For Small/medium cluster (≤ 200 worker nodes):
    >
    > * Just let etcd run on the control plane nodes (usually 3).
    > * Each control plane node runs both kube-apiserver and etcd.
    >
    > For Larger cluster (≥ 200+ worker nodes):
    >
    > * Create 3–5 dedicated etcd nodes.
    > * Deploy 3 or 5 separate nodes only running etcd.

14. Configuring API Server ports.

    a. There is only one API server in this case.

    b. Use default ports assigned, click **OK**.

    ![API server port configuration screen showing default ports](/reference-architectures/_fern-files/_img/8b1795dd6079f1c78b6d081d2f5ffe3b2e40b5196e316576ee88cff24828fd3a.webp)

    > **Note**
    >
    > If there are multiple Kubernetes clusters, please assign a unique port number for each API
    > server.

15. Choosing CNI (Container Network Interface) plugins.

    a. Toggle recommended **Calico** as CNI, click **OK**.

    ![CNI plugin selection screen with Calico selected](/reference-architectures/_fern-files/_img/d45acdf8bce03f965d3679356a957effc014598198ea126727e96f16abe1b8c1.webp)

    > **Note**
    >
    > Kubernetes itself doesn't handle pod networking directly — instead it relies on CNI
    > plugins to set up networking for pods and services.
    >
    > A CNI plugin is responsible for:
    >
    > * Assigning IP addresses to pods
    > * Setting up routes so pods can talk to each other across nodes
    > * Enforcing network policies (firewalls, isolation, etc.)

16. Installing Kyverno policy engine.

    a. Select **yes**, and click **OK**.

    ![Kyverno policy engine installation screen with yes selected](/reference-architectures/_fern-files/_img/7c2ef7a3c12726197fa1c29eb29f7d3111036606632f2ea49d84a6bd8eb83acd.webp)

    > **Note**
    >
    > Kyverno is a Kubernetes-native policy engine. It enables policy-as-code using YAML,
    > avoiding the need for new languages.

17. Installing Kyverno policies.

    a. This will be configured later, choose **no**, and click **OK**.

    ![Kyverno policies installation screen with no selected](/reference-architectures/_fern-files/_img/06b7f95256e40b6f3265ebd25b02f2704d6f46f8387177bbdbf1d74dad5634ef.webp)

    > **Note**
    >
    > The base installation can be performed without policy initialization, with policy Custom
    > Resource Definitions (CRD) applied subsequently through standard Kubernetes workflows.

18. Choosing the operators to install.

    As per the Enterprise RA Software BOM, we install following operators:

    * NVIDIA GPU Operator
    * Kubernetes Dashboard
    * Kubernetes Metric Server
    * Kubernetes State Metrics
    * MetalLB
    * Network Operator
    * NIM Operator
    * Prometheus Adapter
    * Prometheus Operator Stack

    a. Toggle selected Operators by Space key.

    b. Click **OK**.

    ![Operator selection screen with all required operators toggled](/reference-architectures/_fern-files/nvidia-reference-architectures.docs.buildwithfern.com/195c3c05b29261a30fad262525b3de71abd704060b69f10a68ef6fcad284f0eb/_dot_dot_/docs/upstream-kubernetes-enterprise-ra-deployment-guide/images/upstream-kubernetes-deployment-guide-p13-img121.png)

19. Choosing NVIDIA GPU Operator version.

    According to the Enterprise RA Software BOM, we chose v24.9.2.

    a. Toggle **v24.9.2**, and click **OK**.

    ![GPU Operator version selection screen with v24.9.2 selected](/reference-architectures/_fern-files/_img/04b308b5d2b520a2ae19cfdb3759e2b3f24ecac3ce5f85efdec9faba341f9536.webp)

20. Choosing Network Operator version.

    According to the Enterprise RA Software BOM, version v25.1.0 is selected.

    a. Toggle **v25.1.0**, and click **OK**.

    ![Network Operator version selection screen with v25.1.0 selected](/reference-architectures/_fern-files/_img/c6c597f4f29fb0586a76bec39cf9c7da833e7cc2fad86924e7d3d7a965157f69.webp)

21. Customizing YAML file for GPU Operator.

    If a custom YAML file is available, this is where the value can be passed to the Helm chart. In this
    case, standard configuration parameters are used.

    a. Leave it empty, and click **OK**.

    ![Custom YAML file entry screen for GPU Operator (left empty)](/reference-architectures/_fern-files/_img/f4f1b30a5033b299bb8c32422aa271dd0d417ac099a51001da86984b42d6ff9c.webp)

22. Configuring NVIDIA GPU Operator.

    In this case, direct access to the GPU is not required. Only discovering is needed.

    a. Toggle **nfd.enabled**.

    b. Click **OK**.

    ![GPU Operator configuration screen with nfd.enabled toggled](/reference-architectures/_fern-files/_img/213ec5e3e802c22341d5f29ae95005ae818ae76077aaae5bb2e4ee08d5dc1e29.webp)

    > **Note**
    >
    > In the special case that direct access to GPU is needed (e.g., upgrading GPU firmware),
    > then `cdi` needs to be toggled.

23. Customizing YAML file for Network Operator.

    If a custom YAML file is available, this is where the value can be passed to the Helm chart. In this
    case, standard configuration parameters are used.

    a. Leave it empty, and click **OK**.

    ![Custom YAML file entry screen for Network Operator (left empty)](/reference-architectures/_fern-files/_img/4f824a5b9c2002b6e5e6d2fa4ba30e13455a9a1ada68e541ef0fe0dcb3980e41.webp)

24. Configuring Network Operator.

    Both options need to be enabled: network discovery is required, and SR-IOV is necessary to
    perform RDMA and related functions.

    a. Toggle both, and click **OK**.

    ![Network Operator configuration screen with both options enabled](/reference-architectures/_fern-files/_img/0af3f1f16946e46b35eadf63da7a615c5aa9da938bf18b7933837a8ac5008bb3.webp)

25. Creating a MetalLB IP address Pool.

    a. Click **Add**, and click **OK**.

    ![MetalLB IP address pool creation screen with Add selected](/reference-architectures/_fern-files/_img/834de45e38597ce17dc453019d2cdf8838c06f24bc56073f73c1e22356b71411.webp)

    > **Note**
    >
    > MetalLB is a load-balancer implementation for bare-metal Kubernetes clusters.
    >
    > In cloud environments (AWS, GCP, Azure), Kubernetes Services of type LoadBalancer
    > automatically fetch a cloud provider's load balancer. On bare-metal or self-hosted clusters,
    > there's no built-in load balancer. That's where MetalLB comes in — it provides a way to
    > assign external IPs to services and handle traffic routing.
    >
    > Key Features:
    >
    > 1. Implements Service type LoadBalancer — exposes a Service to the outside world with an external IP.
    > 2. Two operating modes:
    >    * **ARP / Layer 2 mode** — Simple: one node advertises the external IP using ARP/NDP.
    >      Easy to set up but doesn't support advanced routing.
    >    * **BGP mode (Layer 3)** — MetalLB peers with the network routers using BGP.
    >      Scales better, provides true load balancing across nodes, integrates into enterprise networks.
    > 3. Supports address pools — it is possible to configure IP ranges (like `192.168.1.240-192.168.1.250`)
    >    that MetalLB assigns to Services.
    > 4. Works with standard Kubernetes resources — no need for special CRDs for basic use; it extends
    >    existing Service semantics.

26. Configuring MetalLB IP address pool.

    a. Type in a name for the IP address pool.

    b. Type in an IP range that was reserved for MetalLB.

    c. Click **OK**.

    ![MetalLB IP address pool configuration screen showing name and IP range fields](/reference-architectures/_fern-files/_img/76585e24894a615e1b1c02c6179c406972c7911950d0275e53ccbb960c4231d7.webp)

27. Confirming the IP address pool created.

    a. The name of IP address pool should appear here and click **OK**.

    ![IP address pool confirmation screen showing the newly created pool](/reference-architectures/_fern-files/_img/76a21435af4f9a42ba434d0f93927abfb72f62029b4866caa6ef4e794183f53d.webp)

28. Creating MetalLB L2 advertisements.

    a. Click **Add**, and click **OK**.

    ![MetalLB L2 advertisement creation screen with Add selected](/reference-architectures/_fern-files/_img/a8f1d50f8c6cf46bcbc4cd12b00ec567ea633f023e8190914324724e7e1ca852.webp)

    > **Note**
    >
    > An L2Advertisement is not typically required in this scenario. If a dedicated service network
    > is being used, then L2Advertisement becomes necessary. In this case, since both the Kubernetes
    > control plane and the services are running on the same network, explicit advertisement is not
    > required. However, it is being configured as a best practice.

29. Configuring MetalLB L2 advertisements.

    a. Type in a name for L2 advertisements.

    b. Toggle the IP address pool that was previously created, and click **OK**.

    ![MetalLB L2 advertisement configuration screen with name and IP address pool selected](/reference-architectures/_fern-files/_img/cb3ac59e00c3b905e9ddbdb57348737d99c267a416d9bcb3700a0e647d704384.webp)

30. Confirming the L2 advertisements.

    a. The name of L2 advertisements should appear, and click **OK**.

    ![L2 advertisement confirmation screen showing the newly created advertisement](/reference-architectures/_fern-files/_img/b7ce6311c5b2d6c40ae81d9ae1a60b083243fe225a7fe803c030380b85cb6bf2.webp)

31. Installing Ingress Controller.

    Instead of directly exposing NGINX via Service, use Ingress resources with the NGINX Ingress
    Controller for routing multiple apps behind one IP/hostname.

    a. Toggle it, and click **OK**.

    ![Ingress Controller installation screen with NGINX Ingress Controller toggled](/reference-architectures/_fern-files/_img/fcd8d9c3a565d52699a67dcf8cf79a23f31c7ddb6340a94d781a8eac44cc0377.webp)

    > **Note**
    >
    > * NGINX Service = exposes NGINX pods internally/externally.
    > * NGINX Ingress Controller = smart entrypoint that routes multiple domains/paths to different services.
    > * In production environment, it is best to almost always use Ingress instead of exposing
    >   each Service separately.

Exposing Kubernetes Ingress to default HTTPS port

a. Choose **yes**, and click **OK**.

![Expose Kubernetes Ingress to default HTTPS port selection screen](/reference-architectures/_fern-files/_img/74bde91f86f6ceb55df8f4dea622fec2871d839a6ca2a534b50ff467092a9590.webp)

33. Configuring Ingress port for Kubernetes Cluster.

    a. Keep default values, and click **OK**.

    ![Ingress port configuration screen showing default port values](/reference-architectures/_fern-files/_img/a6d2916b770a38372388373ffdbf06fb9ddedcd221edabcb30e89db21f433b8f.webp)

34. Installing BCM NVIDIA Packages.

    Not all packages are needed. However, container-toolkit runtime is required for the GPU
    (worker) nodes.

    a. Choose **yes**, and click **OK**.

    ![BCM NVIDIA Packages installation screen with yes selected](/reference-architectures/_fern-files/_img/91d55c6fe76cefc312f8f56924e29f6204c0d773657d1f29a4324020363000ab.webp)

    > **Note**
    >
    > On newer versions of BCM (BCM 11.x), it is possible to pick and choose packages individually.

35. Installing Permission Manager.

    This is necessary for creating users, managing users, groups, and ServiceAccounts. It is also
    useful for shared clusters among multiple teams.

    a. Choose **yes**, and click **OK**.

    ![Permission Manager installation screen with yes selected](/reference-architectures/_fern-files/_img/344a898bb90091713d2a869d6a925b33ecf6637f555f383720c770d60263abc7.webp)

36. Configuring Kubernetes StorageClass.

    In this case, there aren't any other StorageClass on the local path.

    a. Toggle **local path**, and click **OK**.

    ![Kubernetes StorageClass configuration screen with local path selected](/reference-architectures/_fern-files/_img/8ccfbca7880073c5c0fdaf2dfa8e4971dd25c4471b0e8840297436a741134b0e.webp)

37. Configuring local path storage pool for Kubernetes.

    In this case, use default value.

    a. Click **OK**.

    ![Local path storage pool configuration screen with default value](/reference-architectures/_fern-files/_img/d11ade5f1e3cbbd0a8242d6179dc1203efe9437d5afdac2b6d974cb6d0515311.webp)

38. Summary.

    a. Toggle **Save config & deploy**.

    b. Click **OK**.

    ![Summary screen with Save config & deploy toggled](/reference-architectures/_fern-files/_img/193e5563c25a1f71417ee3e2c39f6db002f7db917b186a17579b848c77a6a877.webp)

39. Saving the config file.

    A `.conf` file will be saved into the root folder.

    a. Name the config file.

    b. Click **OK**.

    ![Config file naming screen](/reference-architectures/_fern-files/_img/d7edaeff7138778fa6d20ac53456d8695e5c9f2512bdb0e963a1087e21bfd20a.webp)

40. Rebooting.

    ![Deployment progress screen showing nodes being rebooted](/reference-architectures/_fern-files/_img/1d301c28ebeb47a5c998e05e8c3230c051d7af4985e83fdb174c1491af55fe6e.webp)

    All master nodes and worker nodes will be deployed and rebooted automatically.

    > **Note**
    >
    > If there is an error during deployment, a command line will pop up and ask what to do. Try
    > Retry **r** first, sometimes it's just a connection issue to pull the packages, if it doesn't
    > resolve it, enter **d** for Debugging to see where the issue is.

    ![The deployment error prompt showing the Undo/Abort/Skip/Retry/Info/Debug/Remote debug options](/reference-architectures/_fern-files/_img/04b5d5f19a9966fc26036038686b3373f9aa08552e96916acf16d3cf313e738b.webp)

41. Deploying MetalLB Load Balancer service.

    The `cm-kubernetes-setup` wizard sets up the Ingress Controller to operate as a NodePort service.
    After deployment, deploy a MetalLB LoadBalancer service to make the Ingress Controller
    accessible externally. This assigns an external IP address, enabling traffic from outside the
    Kubernetes cluster to reach the Controller.

    a. Log in BCM head node.

    b. Type in `cmsh`.

    c. Inside cmsh, type in `kubernetes`, then `appgroups`.

    d. Inside appgroups, type in `use system`.

    e. Inside system, type in `applications`.

    f. Inside applications, type in `use ingress_controller`.

    g. Inside ingress_controller, type in `set config`.

    h. Looking for section of port type: `NodePort`, change it to `LoadBalancer`.

    i. Save the changes, commit and quit.

    ![cmsh sequence for deploying MetalLB LoadBalancer service](/reference-architectures/_fern-files/_img/649047b7c5f33655a8df6695625d38c9b28a00017935990851d149434b37b6f6.webp)

    ![The ingress-nginx-controller service config with the port type set to LoadBalancer](/reference-architectures/_fern-files/_img/12501d1242564c320a79927da84c773d8faa41c90e95b2db519a224bb35954c8.webp)

    To verify changes, the ingress controller nginx service external-IP will change from "none" to the
    first IP address that was previously set in the MetalLB address pool. The pod IP address will
    change from internal IP to external IP.

    j. Type `kubectl get svc -n ingress-nginx` to check ingress controller nginx service.

    ![Output of kubectl get svc -n ingress-nginx showing the external IP assigned](/reference-architectures/_fern-files/_img/445205a0349e3de0ae0a60440e8d0245514a18f9c670e79ecd0da0d9c257ef9f.webp)

    k. Or type `kubectl get ingress -A` to check pod IP address.

    ![Output of kubectl get ingress -A showing the ingress resources and addresses](/reference-architectures/_fern-files/_img/8354a2b462a233bf616fddfa2cab70ec35c79b010d115990e2202b8fe0e3a64b.webp)