move to default pod options and add runtime class for nvidia

This commit is contained in:
Joseph Hanson 2024-10-23 22:50:20 -05:00
parent f0b9c7d560
commit 96724f8d41
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -67,16 +67,18 @@ spec:
limits: limits:
nvidia.com/gpu: 1 # requesting 1 GPU nvidia.com/gpu: 1 # requesting 1 GPU
memory: 4Gi memory: 4Gi
pod: defaultPodOptions:
nodeSelector:
nvidia.com/gpu.present: "true"
securityContext: securityContext:
runAsNonRoot: true
runAsUser: 568 runAsUser: 568
runAsGroup: 568 runAsGroup: 568
runAsNonRoot: true
fsGroup: 568 fsGroup: 568
fsGroupChangePolicy: OnRootMismatch fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 10000] supplementalGroups: [44, 10000]
seccompProfile: { type: RuntimeDefault }
nodeSelector:
nvidia.com/gpu.present: "true"
runtimeClassName: nvidia
service: service:
app: app:
controller: *app controller: *app