NVIDIA NIM MicroServices - Rafay Product Documentation

Configure

The NIM Microservices framework enables self-service deployment and management of microservices within an existing shared host Kubernetes cluster. In this guide, we will use a curated template for NIM Microservices available from the Template Catalog. The Org Admin in the user’s Rafay Org has the necessary privileges to share system templates from Rafay’s Catalog to specific or all projects, enabling teams to quickly deploy NIM-compliant microservices with minimal setup.

Note that administrators can also create and configure Custom environment templates for use cases outside the list supported out of the box in Rafay's Template Catalog.

Info

Please check Rafay's Public Roadmap or contact support for details on additional templates for the Template Catalog.

Prerequisites

A shared host Kubernetes cluster with GPUs is required to use this template. The host cluster must have the NIM Operator (v2.0.2) preinstalled onto the cluster. The cluster should also have a one or more storage classes that will be used for the NIM Services and NIM Cache storage. The cluster should have an ingress controller installed with a wildcard DNS record pointing to the public IPs of the cluster. Along with the above infrastructure requirements, a valid NGC API key is required to pull models from.

Configure Template

When the template is executed by the Rafay agent operating behind the firewall, it will receive the configured template, the associated Infra as Code (IaC), credentials and policies from the Rafay Platform. It will then execute this code on the behalf of the user.

1. Specify Agent

Let's configure the template to be received and executed by the Rafay Agent we created in a prior step.

2. Config Context

The config context will typically encapsulate credentials and environment variables required for the agent to perform its job. In this case, we will configure the Rafay Agent with credentials so that it can make programmatic (API) calls to the Rafay controller.

To get the Rafay API Key for the administrator user,

Info

Click here to learn more about API Key & Secret for programmatic access.

Now, we are ready to configure our agent's config context.

Controller API Endpoint

For self-hosted Rafay Controller deployments, the agent will need to be configured to point to its URL. In our Get Started Guide, we will be using the URL for Rafay's SaaS option.

Configure PaaS

Next, we will configure a custom PaaS service profile to allow self-service users to deploy the template.

On the following screen, navigate to "Input Settings"

Next Step

At this time, the administrator is ready to open up this profile (SKU) for end users. Learn how end users can launch and use their NIM Microservices on Kubernetes.