改进
This commit is contained in:
parent
69067d948f
commit
d49f0c1fb3
@ -27,6 +27,7 @@ spec:
|
|||||||
app: text-classification
|
app: text-classification
|
||||||
tier: backend
|
tier: backend
|
||||||
spec:
|
spec:
|
||||||
|
runtimeClassName: "nvidia"
|
||||||
volumes:
|
volumes:
|
||||||
- name: text-classification-models
|
- name: text-classification-models
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@ -53,10 +54,10 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
# resources:
|
resources:
|
||||||
# requests:
|
limits:
|
||||||
# cpu: 1000m
|
nvidia.com/gpu: "1"
|
||||||
# memory: 1024Mi
|
nvidia.com/gpumem: "1000"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/models
|
- mountPath: /app/models
|
||||||
name: text-classification-models
|
name: text-classification-models
|
||||||
|
Loading…
Reference in New Issue
Block a user