virtual-kubelet / alibabacloud-eci

54 stars 9 forks source link

calculate gpu count error strconv.Atoi: parsing "": invalid syntax #6

Open TaylorHere opened 4 years ago

TaylorHere commented 4 years ago
apiVersion: v1
kind: Pod
metadata:
  name: tensorflow
  annotations:
    k8s.aliyun.com/eci-gpu-type : "T4"
spec:
  containers:
  - image: registry-vpc.cn-hangzhou.aliyuncs.com/ack-serverless/tensorflow
    name: tensorflow
    command:
    - "sh"
    - "-c"
    - "python models/tutorials/image/imagenet/classify_image.py"
    resources:
      limits:
        nvidia.com/gpu: "1"
  - image: some-other-container 
    name: no-gpu-limits

if apply this pod into the cluster, will cause

  Warning  ParamsAdapterFailed  26s   virtual-kubelet-0/pod-controller  calculate gpu count error strconv.Atoi: parsing "": invalid syntax
TaylorHere commented 4 years ago

this will cause a lot of issues, services such as Argo Work flow、JupyterHub, etc.. will lose ability to auto providing GPU node