当使用 GPU 添加新的池节点时,Google Kubernetes Engine 无法在这些新节点上安排需要 GPU 的新创建的 Pod,应该是自动的,但我猜不是 GPU 资源,新的 Pod 永远处于“待定”状态,如何解决这个问题?
编辑:这是部署 yaml 文件,我的目标是不将部署绑定到特定节点:
---
apiVersion: machinelearning.seldon.io/v1alpha2
kind: SldDeployment
metadata:
labels:
app: sld
name: trs-sld
namespace: trs
spec:
annotations:
project_name: Trs
deployment_version: v1.0
seldon.io/rest-connect-retries: '5'
seldon.io/grpc-connect-retries: '5'
seldon.io/istio-retries: '10'
seldon.io/istio-retries-timeout: '12'
name: trs
predictors:
- componentSpecs:
- spec:
containers:
- image: eu.gcr.io/trs-141513/trs-native:latest
imagePullPolicy: Always
name: classifier
resources:
limits:
nvidia.com/gpu: 2
volumeMounts:
- mountPath: /etc/google_storage/creds
name: service-account-creds
readOnly: true
volumes:
- name: service-account-creds
secret:
secretName: service-account-creds
terminationGracePeriodSeconds: 20
graph:
children: []
name: classifier
endpoint:
type: REST
type: MODEL
name: model
replicas: 1
annotations:
predictor_version: v1.0
---