operator icon indicating copy to clipboard operation
operator copied to clipboard

Pools.0.tolerations.0.tolerationSeconds.seconds in body is required when trying to specify NoSchedule without seconds

Open VPelmeSHko opened this issue 1 year ago • 4 comments

Got Pools.0.tolerations.0.tolerationSeconds.seconds in body is required. when trying to specify NoSchedule without seconds in PodPlacement -> Tolerations screen. Specifying seconds to 0 this will cause invalid: spec.tolerations[0].effect issue on statefulset

kubectl minio version v4.5.0

kubectl -n test describe statefulset test-pool-0

Events:
  Type     Reason            Age                  From                    Message
  ----     ------            ----                 ----                    -------
  Warning  FailedCreate      2m6s (x69 over 37m)  statefulset-controller  create Pod test-pool-0-3 in StatefulSet test-pool-0 failed error: Pod "test-pool-0-3" is invalid: spec.tolerations[0].effect: Invalid value: "NoSchedule": effect must be 'NoExecute' when `tolerationSeconds` is set

kubectl -n test get statefulset test-pool-0 -o yaml

tolerations:                          
      - effect: NoSchedule                                                                                            
        key: nvidia.com/gpu                            
        operator: Equal              
        tolerationSeconds: 0
        value: "true"

VPelmeSHko avatar Sep 21 '22 18:09 VPelmeSHko