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:
nvidia.com/gpu: 1 # requesting 1 GPU
memory: 4Gi
pod:
nodeSelector:
nvidia.com/gpu.present: "true"
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 10000]
seccompProfile: { type: RuntimeDefault }
nodeSelector:
nvidia.com/gpu.present: "true"
runtimeClassName: nvidia
service:
app:
controller: *app