Skip to main content
This guide walks you through hosted SambaStack set up by preparing your configuration, setting up authentication, and verifying deployment to start managing your instance effectively.

Prerequisites

Setup

1

Configure Kubeconfig Credentials

To interact with the cluster, you need valid kubeconfig credentials. SambaNova will provide both the kubeconfig file and the base64-encoded password.
  1. Save the provided kubeconfig file securely (e.g.~/.sambastack/kubeconfig.yaml)
  2. Decode the base64-encoded password and save it to a YAML file.
    Store both the password and kubeconfig file securely and do not share them with unauthorized users; the password is required to access cluster nodes.
  3. Set the kubeconfig variable:
  4. Your credentials file should resemble this example.
2

Configure and install `sambastack.yaml`

  1. Configure a minimum viable sambastack.yaml file:
    See the SambaStack.yaml Reference for a full example.
    Update the version field to match the version provided by your SambaNova representative.
  2. Apply the file
    If successful, you will see
  3. Verify success by running the following commands and observing expected outputs:

    Check installer logs and retrieve UI/API domain names with:
    expected response:

    Verify cluster pods are running:
    expected response:
    It usually takes about 5-10 minutes for all the pods to reach their desired Running state.
    See the Pods reference table for more details.
3

Authentication Setup and User Management

For hosted SambaStack, SambaNova provides a default Keycloak instance for authentication. If you would like to set up a custom OIDC configuration, please refer to the Authentication Page.

Key considerations and common issues

  • Email is required: Users without an email cannot log in.
  • Unique usernames: Duplicate usernames are disallowed; keep username and email aligned.
  • Permanent passwords: Initial passwords should not be temporary unless a user reset is desired.
  • Browser tip: Use Chrome for Keycloak admin UI when port-forwarding to avoid session cookie issues.
  1. Retrieve admin credentials:
    expected output:
  2. Port-forward Keycloak service
  3. Visit http://localhost:8080 and log in using retrieved credentials.
  4. Manage users by following the Keycloak Server Administration Guide.
4

Log into SambaStack UI and Create API Key

  1. Obtain the UI domain from the installer logs (see Step 2.3) Installguide 1
    Access the UI domain using Google Chrome to avoid compatibility issues.
  2. Log in using your credentials via the authentication flow. Installguide 2
  3. Navigate to the API Keys page, create API key, and save securely!
5

Query Deployed Model Bundle

  1. Set your API key:
  2. Run a test query against the deployed model bundle with either cURL or a python script:
    Run the following cURL command, making sure to enter the correct domain:
    Your response should resemble the following:

Next steps

Congrats! You’ve set up your SambaStack cluster to a baseline running state. At this point, what you configure next depends on your goals. The following is a list of common configurations you can set up next:

Appendix

Example kubeconfig structure

The following sample kubeconfig file shows how clusters, users, and contexts are defined for Kubernetes authentication and access.

Kubeconfig fields

KeywordDescription
apiVersion / kindDefines the type of Kubernetes config.
clustersContains cluster names, endpoints, and certificate authority information.
usersSpecifies users and their authentication method (e.g., token).
contextsMaps a user to a cluster and may include a default namespace.
current-contextThe active context used by kubectl.

Command reference table

TaskExample command
Set kubeconfigexport KUBECONFIG=<Path for kubeconfig file>
Check installer logs and get domain nameskubectl -n sambastack-installer logs -l sambanova.ai/app=sambastack-installer -f
Verify cluster podskubectl get pods
List nodeskubectl get nodes
Apply / update manifestkubectl apply -f <sambastack.yaml>
View applied manifestkubectl get configmap sambastack -o yaml
Retrieve Keycloak admin credentialskubectl get secret keycloak-initial-admin -o go-template='username: {{.data.username | base64decode}} password: {{.data.password | base64decode}}'
Access Keycloak as an adminkubectl port-forward svc/keycloak-service 8080