1# Default values for kuberay-operator.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
5# -- String to partially override release name.
6nameOverride: kuberay-operator
7# -- String to fully override release name.
8fullnameOverride: kuberay-operator
9# -- String to override component name.
10componentOverride: kuberay-operator
11# -- Number of replicas for the KubeRay operator Deployment.
14 # -- Image repository.
15 repository: cgr.dev/chainguard-private/kuberay-operator
17 tag: 1.8.0-r0@sha256:9308414717cac37c506a946de7db02f69ebdb41fe88dc40464a32e63c8a41404
18 # -- Image pull policy.
19 pullPolicy: IfNotPresent
20# -- Secrets with credentials to pull images from a private registry
22# -- Restrict to run on particular nodes.
24# -- Pod priorityClassName
28# -- Extra annotations.
35 # -- Specifies whether a service account should be created.
37 # -- The name of the service account to use.
38 # If not set and create is true, a name is generated using the fullname template.
39 name: kuberay-operator
41 # -- Log encoder to use for stdout (one of `json` or `console`).
43 # -- Log encoder to use for file logging (one of `json` or `console`).
45 # -- Directory for kuberay-operator log file.
47 # -- File name for kuberay-operator log file.
49 # -- EmptyDir volume size limit for kuberay-operator log file.
51# Enable customized Kubernetes scheduler integration. If enabled, Ray workloads will be scheduled
52# by the customized scheduler.
53# * "enabled" is the legacy option and will be deprecated soon.
54# * "name" is the standard option, expecting a scheduler name, supported values are
55# "default", "volcano", "yunikorn", and "scheduler-plugins".
57# Note: "enabled" and "name" should not be set at the same time. If both are set, an error will be thrown.
60# 1. Use volcano (deprecated)
74# name: scheduler-plugins
80 # Deprecated. This option will be removed in the future.
81 # Note, for backwards compatibility. When it sets to true, it enables volcano scheduler integration.
83 # Set the customized scheduler name, supported values are "volcano", "yunikorn", "kai-scheduler" or "scheduler-plugins", do not set
84 # "batchScheduler.enabled=true" at the same time as it will override this option.
86# Configuration for the KubeRay operator.
88 # -- Whether to enable the configuration feature. If enabled, a ConfigMap will be created and mounted to the operator.
89 # When enabled, flag-based configuration values (leaderElectionEnabled, metrics.enabled, kubeClient.qps, etc.)
90 # will be injected into the ConfigMap. The operator will use the ConfigMap and ignore command-line flags.
92 # -- Default environment variables to inject into all Ray containers in all RayCluster CRs.
93 # This allows user to set feature flags across all Ray pods.
95 # defaultContainerEnvs:
96 # - name: RAY_enable_open_telemetry
98 # - name: RAY_metric_cardinality_level
99 # value: "recommended"
100 defaultContainerEnvs: []
101 # -- Default annotations to add to all Ray pod templates.
102 # User-specified annotations take precedence.
104 # defaultPodAnnotations:
105 # prometheus.io/scrape: "true"
106 # prometheus.io/port: "8080"
107 defaultPodAnnotations: {}
108 # -- Default labels to add to all Ray pod templates.
109 # User-specified labels take precedence.
112 # app.kubernetes.io/managed-by: kuberay
114 # -- Sidecar containers to inject into every Ray head pod.
116 # headSidecarContainers:
118 # image: fluent/fluent-bit:1.9
119 headSidecarContainers: []
120 # -- Sidecar containers to inject into every Ray worker pod.
122 # workerSidecarContainers:
124 # image: fluent/fluent-bit:1.9
125 workerSidecarContainers: []
126 # -- Node label keys worker groups may deliver as Ray node labels through workerGroupSpecs[].labelRefs.
127 # Enforced by the validating webhooks, so it requires ENABLE_WEBHOOKS to be enabled. Empty disables delivery.
130 # - nvidia.com/gpu.clique
131 # - topology.kubernetes.io/zone
132 allowedNodeLabels: []
133# Admission webhooks: validating webhooks for RayCluster, RayJob and RayService, and the pod mutating webhooks
134# that deliver node labels to Ray workers (workerGroupSpecs[].labelRefs, NodeLabelDelivery feature gate).
136 # -- Deploy the admission webhooks. Currently requires cert-manager in the cluster for the serving certificate
137 # and CA injection. The webhook configurations are cluster-scoped, so the install fails with singleNamespaceInstall.
138 # The pod webhooks for node label delivery are registered only when the NodeLabelDelivery feature gate is enabled.
141 - name: RayClusterStatusConditions
143 - name: RayJobDeletionPolicy
145 - name: RayMultiHostIndexing
147 - name: RayServiceIncrementalUpgrade
151 - name: RayClusterMTLS
153 - name: RayClusterNetworkPolicy
155 - name: RayClusterHistoryServer
157 - name: RayNodeEventForwarder
159 - name: NodeLabelDelivery
161# Configurations for KubeRay node event forwarder controller.
162# The controller forwards Kubernetes Node events to the corresponding RayCluster custom resources.
163# Ref: https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/k8s-events.html
164# Note: Node event forwarding is not supported when singleNamespaceInstall is true.
166 # -- Whether KubeRay operator should forward Kubernetes Node events to RayCluster custom resources. Note: not supported when singleNamespaceInstall is true.
168 # -- Only forward Node events emitted by these components, matched against both source.component and reportingController. Empty means all sources.
170 # - node-problem-detector
171 # - nvidia-gpu-device-plugin
172 # -- Only forward Node events with these reasons, e.g. ["XIDError"]. Empty means all reasons.
174 # -- Only forward Node events with these types. Valid values are "Warning" and "Normal". Empty means all types.
175 # Note: Removing the "Warning" filter (or including "Normal") may result in a large number of noisy Normal Node events being forwarded.
178# -- Default image for the History Server collector sidecar. A RayCluster can override it with
179# `spec.historyServerOptions.collectorOptions.image`. If empty, defaults to
180# `quay.io/kuberay/collector` with the tag matching the operator version.
182# Configurations for KubeRay operator metrics.
184 # -- Whether KubeRay operator should emit control plane metrics.
187 # -- Enable a prometheus ServiceMonitor
189 # -- Prometheus ServiceMonitor interval
191 # -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
193 # -- Additional labels to add to the ServiceMonitor's metadata.
195 # release: prometheus
196 # -- Prometheus ServiceMonitor namespace
197 namespace: "" # "monitoring"
198# -- Path to the operator binary
199operatorCommand: /manager
200# if userKubernetesProxy is set to true, the KubeRay operator will be configured with the --use-kubernetes-proxy flag.
201# Using this option to configure kuberay-operator to comunitcate to Ray head pods by proxying through the Kubernetes API Server.
202# useKubernetesProxy: true
204# -- If leaderElectionEnabled is set to true, the KubeRay operator will use leader election for high availability.
205leaderElectionEnabled: true
206# -- The maximum number of reconcile operations that can be performed simultaneously.
207# This setting controls the concurrency of the controller reconciliation loops.
208# Higher values can improve throughput in clusters with many resources, but may increase resource consumption.
209reconcileConcurrency: 1
210# -- Kube Client configuration for QPS and burst settings.
211# This setting controls the QPS and burst rate of the kube client when sending requests to the Kubernetes API server.
212# If the QPS and burst values are too low, we may easily hit rate limits on the API server and slow down the controller reconciliation loops.
214 # -- The QPS value for the client communicating with the Kubernetes API server.
215 # Must be a float number.
217 # -- The maximum burst for throttling requests from this client to the Kubernetes API server.
218 # Must be a non-negative integer.
220# -- If rbacEnable is set to false, no RBAC resources will be created, including the Role for leader election, the Role for Pods and Services, and so on.
222# -- When crNamespacedRbacEnable is set to true, the KubeRay operator will create a Role for RayCluster preparation (e.g., Pods, Services)
223# and a corresponding RoleBinding for each namespace listed in the "watchNamespace" parameter. Please note that even if crNamespacedRbacEnable
224# is set to false, the Role and RoleBinding for leader election will still be created.
227# (1) This variable is only effective when rbacEnable and singleNamespaceInstall are both set to true.
228# (2) In most cases, it should be set to true, unless you are using a Kubernetes cluster managed by GitOps tools such as ArgoCD.
229crNamespacedRbacEnable: true
230# -- When singleNamespaceInstall is true:
231# - Install namespaced RBAC resources such as Role and RoleBinding instead of cluster-scoped ones like ClusterRole and ClusterRoleBinding so that
232# the chart can be installed by users with permissions restricted to a single namespace.
233# (Please note that this excludes the CRDs, which can only be installed at the cluster scope.)
234# - If "watchNamespace" is not set, the KubeRay operator will, by default, only listen
235# to resource events within its own namespace.
236# - Node event forwarding (nodeEventForwarder.enabled) is not supported when singleNamespaceInstall is true.
237singleNamespaceInstall: false
238# The KubeRay operator will watch the custom resources in the namespaces listed in the "watchNamespace" parameter.
243# -- Environment variables.
245# If not set or set to true, kuberay auto injects an init container waiting for ray GCS.
246# If false, you will need to inject your own init container to ensure ray GCS is up before the ray workers start.
247# Warning: we highly recommend setting to true and let kuberay handle for you.
248# - name: ENABLE_INIT_CONTAINER_INJECTION
250# If set to true, kuberay creates a normal ClusterIP service for a Ray Head instead of a Headless service. Default to false.
251# - name: ENABLE_RAY_HEAD_CLUSTER_IP_SERVICE
253# If not set or set to "", kuberay will pick up the default k8s cluster domain `cluster.local`
254# Otherwise, kuberay will use your custom domain
255# - name: CLUSTER_DOMAIN
257# If not set or set to false, when running on OpenShift with Ingress creation enabled, kuberay will create OpenShift route
258# Otherwise, regardless of the type of cluster with Ingress creation enabled, kuberay will create Ingress
259# - name: USE_INGRESS_ON_OPENSHIFT
261# Unconditionally requeue after the number of seconds specified in the
262# environment variable RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV. If the
263# environment variable is not set, requeue after the default value (300).
264# - name: RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV
266# If not set or set to "true", KubeRay will clean up the Redis storage namespace when a GCS FT-enabled RayCluster is deleted.
267# - name: ENABLE_GCS_FT_REDIS_CLEANUP
269# For LLM serving, some users might not have sufficient GPU resources to run two RayClusters simultaneously.
270# Therefore, KubeRay offers ENABLE_ZERO_DOWNTIME as a feature flag for zero-downtime upgrades.
271# - name: ENABLE_ZERO_DOWNTIME
273# This environment variable for the KubeRay operator is used to determine whether to enable
274# the injection of readiness and liveness probes into Ray head and worker containers.
275# Enabling this feature contributes to the robustness of Ray clusters.
276# - name: ENABLE_PROBES_INJECTION
278# DEPRECATED: this environment variable will be removed in release 1.10.0.
279# Use the RayJob spec.deletionStrategy API instead (a deletionRules entry with the DeleteSelf policy).
280# If set to true, the RayJob CR itself will be deleted if shutdownAfterJobFinishes is set to true. Note that all resources created by the RayJob CR will be deleted, including the K8s Job. Otherwise, only the RayCluster CR will be deleted. Default is false.
281# - name: DELETE_RAYJOB_CR_AFTER_JOB_FINISHES
283# If set to true, we will use deterministic name for head pod. Otherwise, the non-deterministic name is used.
284# - name: ENABLE_DETERMINISTIC_HEAD_POD_NAME
286# This environment variable determines whether to enable a login shell by passing the -l option to the container command /bin/bash.
287# The -l flag was added by default before KubeRay v1.4.0, but it is no longer added by default starting with v1.4.0.
288# - name: ENABLE_LOGIN_SHELL
290# This KubeRay operator environment variable is used to determine if random Pod
291# deletion should be enabled. Note that this only takes effect when autoscaling
292# is enabled for the RayCluster.
293# - name: ENABLE_RANDOM_POD_DELETE
295# If JobDeploymentStatus does not transition to Complete or Failed within
296# this grace period seconds after JobStatus reaches a terminal state,
297# KubeRay will update JobDeploymentStatus directly.
298# - name: RAYJOB_DEPLOYMENT_STATUS_TRANSITION_GRACE_PERIOD_SECONDS
300# If job status checks keep failing for longer than this timeout in seconds,
301# KubeRay will transition the RayJob's JobDeploymentStatus to Failed. Default is 300.
302# - name: RAYJOB_STATUS_CHECK_TIMEOUT_SECONDS
305# -- Resource requests and limits for containers.
309 # Anecdotally, managing 500 Ray pods requires roughly 500MB memory.
310 # Monitor memory usage and adjust as needed.
315# @Ignore -- Pod liveness probe configuration.
317 initialDelaySeconds: 10
320# @Ignore -- Pod readiness probe configuration.
322 initialDelaySeconds: 10
325# -- Set up `securityContext` to improve Pod security.
326podSecurityContext: {}
327# @ignore -- Set up `securityContext` to improve container security.
329 allowPrivilegeEscalation: false
330 readOnlyRootFilesystem: true