Skip to content

Commit 85dad54

Browse files
committed
feat: Add configurable device plugin resource name for node management port
Add nodeMgmtPortDpResourceName to the Helm chart to allow specifying a device plugin resource for the ovnkube-node management port container. When set, the resource is included in container requests/limits and exposed via the OVNKUBE_NODE_MGMT_PORT_DP_RESOURCE_NAME environment variable. Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
1 parent 8d35461 commit 85dad54

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

helm/ovn-kubernetes-dpf/templates/host-with-dpu-manifests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ spec:
159159
requests:
160160
cpu: 100m
161161
memory: 300Mi
162+
{{ if .Values.nodeWithDPUManifests.nodeMgmtPortDpResourceName }}
163+
{{ .Values.nodeWithDPUManifests.nodeMgmtPortDpResourceName }}: "1"
164+
{{ end }}
165+
{{ if .Values.nodeWithDPUManifests.nodeMgmtPortDpResourceName }}
166+
limits:
167+
{{ .Values.nodeWithDPUManifests.nodeMgmtPortDpResourceName }}: "1"
168+
{{ end }}
162169
env:
163170
- name: OVN_DAEMONSET_VERSION
164171
value: "1.2.0"
@@ -262,6 +269,8 @@ spec:
262269
value: "dpu-host"
263270
- name: OVNKUBE_NODE_MGMT_PORT_NETDEV
264271
value: {{ default "" .Values.nodeWithDPUManifests.nodeMgmtPortNetdev | quote }}
272+
- name: OVNKUBE_NODE_MGMT_PORT_DP_RESOURCE_NAME
273+
value: {{ default "" .Values.nodeWithDPUManifests.nodeMgmtPortDpResourceName | quote }}
265274
- name: OVN_HOST_NETWORK_NAMESPACE
266275
valueFrom:
267276
configMapKeyRef:

helm/ovn-kubernetes-dpf/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ nodeWithDPUManifests:
2020
tag: ${TAG}
2121
pullPolicy: IfNotPresent
2222
nodeMgmtPortNetdev: ""
23+
nodeMgmtPortDpResourceName: ""
2324
dpuServiceAccountName: ovn-dpu
2425
dpuServiceAccountNamespace: ovn-kubernetes
2526
cniBinDir: "/opt/cni/bin"

helm/ovn-kubernetes-dpf/values.yaml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ nodeWithDPUManifests:
2020
tag: ${TAG}
2121
pullPolicy: IfNotPresent
2222
nodeMgmtPortNetdev: ""
23+
nodeMgmtPortDpResourceName: ""
2324
dpuServiceAccountName: ovn-dpu
2425
dpuServiceAccountNamespace: ovn-kubernetes
2526
cniBinDir: "/opt/cni/bin"

0 commit comments

Comments
 (0)