move to default pod options and add runtime class for nvidia
This commit is contained in:
parent
f0b9c7d560
commit
96724f8d41
1 changed files with 12 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue