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