kuberay-apiserver

by CodeScriptum

Helm chartv1.8.0

A Helm chart for kuberay-apiserver

About this chart

KubeRay APIServer

A Helm chart for kuberay-apiserver

Introduction

This document provides instructions to install the KubeRay APIServer with a Helm chart. KubeRay APIServer V2 is enabled by default, for more information, please refer to the KubeRay APIServer V2 documentation.

Helm

Make sure the version of Helm is v3+. Currently, existing CI tests are based on Helm v3.4.1 and v3.9.4.

helm version

Install KubeRay APIServer

Without security proxy

  • Install a stable version via Helm repository
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm repo update
# Install KubeRay APIServer without security proxy
helm install kuberay-apiserver kuberay/kuberay-apiserver --version 1.8.0 --set security=null
  • Install the nightly version
# Step1: Clone KubeRay repository

# Step2: Navigate to `helm-chart/kuberay-apiserver`
cd helm-chart/kuberay-apiserver

# Step3: Install the KubeRay APIServer
helm install kuberay-apiserver . --set security=null

With security proxy

  • Install a stable version via Helm repository
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm repo update
# Install KubeRay APIServer
helm install kuberay-apiserver kuberay/kuberay-apiserver --version 1.8.0
  • Install the nightly version
# Step1: Clone KubeRay repository

# Step2: Navigate to `helm-chart/kuberay-apiserver`
cd helm-chart/kuberay-apiserver

# Step3: Install the KubeRay APIServer
helm install kuberay-apiserver .

[!IMPORTANT] If you receive an "Unauthorized" error when making a request, please add an authorization header to the request: -H 'Authorization: 12345' or install the APIServer without a security proxy.

List the chart

To list the kuberay-apiserver release:

helm ls
# NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART
# kuberay-apiserver       default         1               2025-08-08 17:07:51.472353906 +0000 UTC deployed        kuberay-apiserver-1.8.0

Uninstall the Chart

# Uninstall the `kuberay-apiserver` release
helm uninstall kuberay-apiserver

# The APIServer Pod should be removed.
kubectl get pods
# No resources found in default namespace.

Values

KeyTypeDefaultDescription
replicaCountint1
namestring"kuberay-apiserver"
image.repositorystring"quay.io/kuberay/apiserver"Image repository.
image.tagstring"v1.8.0"Image tag.
image.pullPolicystring"IfNotPresent"Image pull policy.
corsstringnil
labelsobject{}Extra labels.
annotationsobject{}Extra annotations.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring"kuberay-apiserver"The name of the service account to use. If not set and create is true, a name is generated using the fullname template
containerPort[0].namestring"http"
containerPort[0].containerPortint8888
containerPort[0].protocolstring"TCP"
containerPort[1].namestring"grpc"
containerPort[1].containerPortint8887
containerPort[1].protocolstring"TCP"
resourcesobject{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"300m","memory":"300Mi"}}Resource requests and limits for containers.
sidecarContainerslist[]Sidecar containers to run along with the main container.
nodeSelectorobject{}Node selector for pods.
affinityobject{}Affinity for pods.
tolerationslist[]Tolerations for pods.
service.typestring"ClusterIP"Service type.
service.portslist[{"name":"http","port":8888,"protocol":"TCP","targetPort":8888},{"name":"rpc","port":8887,"protocol":"TCP","targetPort":8887}]Service port.
ingress.enabledboolfalse
ingress.annotationsobject{}
ingress.classNamestring""
ingress.tlslist[]
route.enabledboolfalse
route.annotationsobject{}
rbacEnablebooltrueInstall Default RBAC roles and bindings
singleNamespaceInstallboolfalseThe chart can be installed by users with permissions to a single namespace only
enableAPIServerV2booltrueIf set to true, APIServer v2 would be served on the same port as the APIServer v1.
security.proxyobject{"pullPolicy":"IfNotPresent","repository":"quay.io/kuberay/security-proxy","tag":"nightly"}security proxy image.
security.envobject{"ENABLE_GRPC":"true","GRPC_LOCAL_PORT":8987,"HTTP_LOCAL_PORT":8988,"SECURITY_PREFIX":"/"}security proxy environment variables.

Deploy kuberay-apiserver with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kuberay-apiserver 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 chartkuberay-apiserver is pinned at v1.8.0 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