GPU Namespace as a Service - Rafay Product Documentation

Configure

The GPU NaaS template enables self service namespace creation within an existing shared host kubernetes cluster. The namespace comes preconfigured with a GPU instance with a predefined resource quota. The host cluster can be configured with full GPUs, MIG GPUs configured in a single strategy or timesliced GPUs. In this guide, we will be using Rafay's curated template for GPU NaaS available from the Template Catalog. The Org Admin for the user's Rafay Org has the privileges to share the system templates from Rafay's Catalog to specific/all projects.

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.


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,

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"

Name Label
namespace Namespace
kubeconfig Kubeconfig
ztka ZTKA Link

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 GPU namespaces on Kubernetes.