Skip to content
Closed
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
2 changes: 2 additions & 0 deletions deploy/helm/charts/snapshot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ reads for rootfs-diff capture, and CRI-O config.json fallback).
{{- if eq .Values.runtime.type "crio" -}}/var/lib/containers{{- else -}}/var/lib/containerd{{- end -}}
{{- end }}

{{- define "snapshot.pageBrokerControlPath" -}}/pagebroker/control{{- end -}}
{{- define "snapshot.pageBrokerStagingPath" -}}/pagebroker/staging{{- end -}}
9 changes: 9 additions & 0 deletions deploy/helm/charts/snapshot/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ kind: ConfigMap
{{- if not (has .Values.storage.accessMode (list "agentMount" "podMount")) }}
{{- fail (printf "snapshot.storage.accessMode=%q is not supported; expected agentMount or podMount" .Values.storage.accessMode) }}
{{- end }}
{{- if and .Values.pageBroker.enabled (ne .Values.storage.accessMode "agentMount") }}
{{- fail "snapshot.pageBroker requires storage.accessMode=agentMount" }}
{{- end }}
metadata:
name: {{ include "snapshot.fullname" . }}-config
namespace: {{ .Release.Namespace }}
Expand All @@ -26,6 +29,12 @@ data:
overlay:
exclusions: {{ toYaml .Values.config.overlay.exclusions | nindent 8 }}

pageBroker:
enabled: {{ .Values.pageBroker.enabled }}
{{- if .Values.pageBroker.enabled }}
controlSocketPath: {{ printf "%s/pagebroker.sock" (include "snapshot.pageBrokerControlPath" .) | quote }}
{{- end }}

restore:
restoreTimeoutSeconds: {{ .Values.config.restore.restoreTimeoutSeconds }}

Expand Down
27 changes: 27 additions & 0 deletions deploy/helm/charts/snapshot/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{{- $socket := include "snapshot.runtimeSocket" . -}}
{{- $socketDir := $socket | dir -}}
{{- $storageDir := include "snapshot.runtimeStorageDir" . -}}
{{- $pageBrokerControlPath := include "snapshot.pageBrokerControlPath" . -}}
{{- $pageBrokerStagingPath := include "snapshot.pageBrokerStagingPath" . -}}
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -95,6 +97,19 @@ spec:
mountPath: /host-seccomp
{{- end }}
containers:
{{- if .Values.pageBroker.enabled }}
- name: pagebroker
image: "{{ .Values.pageBroker.image.repository }}:{{ .Values.pageBroker.image.tag }}"
imagePullPolicy: {{ .Values.pageBroker.image.pullPolicy }}
args:
- {{ printf "%s/pagebroker.sock" $pageBrokerControlPath | quote }}
- {{ $pageBrokerStagingPath | quote }}
volumeMounts:
- name: pagebroker
mountPath: /pagebroker
- name: checkpoints
mountPath: {{ .Values.storage.pvc.basePath }}
{{- end }}
- name: agent
image: "{{ .Values.daemonset.image.repository }}:{{ .Values.daemonset.image.tag }}"
imagePullPolicy: {{ .Values.daemonset.image.pullPolicy }}
Expand Down Expand Up @@ -125,6 +140,10 @@ spec:
- name: config
mountPath: /etc/snapshot
readOnly: true
{{- if .Values.pageBroker.enabled }}
- name: pagebroker
mountPath: /pagebroker
{{- end }}
{{- if and (eq .Values.storage.type "pvc") (eq .Values.storage.accessMode "agentMount") }}
# Mount the checkpoint PVC directly in namespace-local agent mode
- name: checkpoints
Expand Down Expand Up @@ -171,6 +190,14 @@ spec:
- name: config
configMap:
name: {{ include "snapshot.fullname" . }}-config
{{- if .Values.pageBroker.enabled }}
- name: pagebroker
emptyDir:
medium: Memory
{{- with .Values.pageBroker.stagingSizeLimit }}
sizeLimit: {{ . | quote }}
{{- end }}
{{- end }}
Comment thread
dfeigin-nv marked this conversation as resolved.
{{- if .Values.seccomp.deploy }}
# Seccomp profile ConfigMap (used by initContainer)
- name: seccomp-profiles
Expand Down
9 changes: 9 additions & 0 deletions deploy/helm/charts/snapshot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ storage:
oci:
uri: ""

pageBroker:
enabled: false
# Optional maximum size for tmpfs staging, for example "100Gi".
stagingSizeLimit: ""
image:
repository: nvcr.io/nvidia/ai-dynamo/pagebroker
tag: 1.4.0
pullPolicy: Always

# DaemonSet configuration for snapshot (checkpoint/restore) agent
daemonset:
# Container image
Expand Down
Loading