Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
# for a dedicated identity.
serviceAccountName: {{ .Values.accessControlService.serviceAccountName }}
{{- end }}
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.accessControlService.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.accessControlService.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.agentService.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.agentService.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.agentService.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.configService.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.configService.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.configService.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
metadata:
name: {{ .Release.Name }}-example-data-loader
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
restartPolicy: Never
containers:
- name: example-data-loader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.fileService.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.fileService.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.fileService.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
3 changes: 3 additions & 0 deletions bin/k8s/templates/base/lakefs/lakefs-setup-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
metadata:
name: {{ .Release.Name }}-lakefs-setup-job
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
restartPolicy: Never
containers:
- name: setup-lakefs
Expand Down
3 changes: 3 additions & 0 deletions bin/k8s/templates/base/litellm/litellm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.litellm.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.litellm.name }}
image: {{ .Values.litellm.image }}
Expand Down
3 changes: 3 additions & 0 deletions bin/k8s/templates/base/webserver/webserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.webserver.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.webserver.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.webserver.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.workflowCompilingService.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
containers:
- name: {{ .Values.workflowCompilingService.name }}
image: {{ .Values.texera.imageRegistry }}/{{ .Values.workflowCompilingService.imageName }}:{{ .Values.texera.imageTag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.workflowComputingUnitManager.name }}
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
serviceAccountName: {{ .Values.workflowComputingUnitManager.serviceAccountName }}
initContainers:
- name: wait-lakekeeper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
labels:
app: {{ .Release.Name }}-computing-unit-master-prepuller
spec:
{{- if .Values.global.texeraMicroServiceRuntimeClass }}
runtimeClassName: {{ .Values.global.texeraMicroServiceRuntimeClass | quote }}
{{- end }}
restartPolicy: Always
tolerations:
- operator: "Exists"
Expand Down
12 changes: 12 additions & 0 deletions bin/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ texera:
imageTag: 1.4.0-incubating-SNAPSHOT

global:
# If using VMs for texera specific microservices, change this to the desired runtime otherwise leave as "". Recommended: "kata-qemu-runtime-rs"
# Note: kata containers must be installed to use kata-qemu-runtime-rs
# Note: This does not change the runtime of dependencies or Compute Units.
texeraMicroServiceRuntimeClass: ""
# Required by the Bitnami postgresql sub-chart to allow custom images
security:
allowInsecureImages: true
Expand Down Expand Up @@ -509,6 +513,14 @@ texeraEnvVars:
- name: AUTH_JWT_SECRET
# Development-only default (256-bit HS256 secret). Production environments MUST override this with a different, securely generated secret.
value: "a7f3c8e9b14d2e6f5a0b9c3d8e1f4a6b2c5d7e9f0a3b6c8d1e4f7a9b2c5d8e1f"
- name: KUBERNETES_COMPUTING_UNIT_RUNTIME_CLASS_CPU
# If using VMs for CUs change this to the desired runtime otherwise leave as "". Recommended: "kata-qemu-runtime-rs"
# Note: kata containers must be installed to use kata-qemu-runtime-rs
value: ""
- name: KUBERNETES_COMPUTING_UNIT_RUNTIME_CLASS_GPU
# If using VMs for CUs change this to the desired runtime otherwise leave as "". Recommended: "kata-qemu-nvidia-gpu-runtime-rs"
# Note: kata containers must be installed to use kata-qemu-nvidia-gpu-runtime-r
value: ""

yWebsocketServer:
name: y-websocket-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,14 @@ class KubernetesClient(
.endMetadata()
.withNewSpec()

// Only add runtimeClassName when using NVIDIA GPU
if (gpuLimit != "0" && KubernetesConfig.gpuResourceKey.contains("nvidia")) {
specBuilder.withRuntimeClassName("nvidia")
val runtimeClassOpt: Option[String] = if (gpuLimit != "0") {
sys.env.get("KUBERNETES_COMPUTING_UNIT_RUNTIME_CLASS_GPU").filter(_.nonEmpty)
} else {
sys.env.get("KUBERNETES_COMPUTING_UNIT_RUNTIME_CLASS_CPU").filter(_.nonEmpty)
}

runtimeClassOpt.foreach { runtimeClass =>
specBuilder.withRuntimeClassName(runtimeClass)
}

val containerBuilder = specBuilder
Expand Down