InseeFrLab / onyxia

🔬 Data science environment for k8s
https://onyxia.sh
MIT License
440 stars 79 forks source link

onyxia ui don't show RAM quota #841

Closed titigmr closed 1 month ago

titigmr commented 1 month ago

When we configure quota in region parameters on onyxia api, onyxia ui don't show memory quota.

The configuration:

  "quotas": {
    "userEnabled": true,
    "groupEnabled": false,
    "allowUserModification": false,
    "user": {
      "count/pods": 100,
      "requests.memory": "32Gi",
      "requests.cpu": 16,
      "limits.memory": "32Gi",
      "limits.cpu": 16,
      "requests.storage": "500Gi"
      }
  }

Check quota on namespace

 $ kubectl get quota
NAME           AGE   REQUEST
LIMIT
onyxia-quota   3d    count/pods: 4/100, requests.cpu: 800m/16, requests.memory: 2G/32Gi, requests.storage: 78Gi/500Gi   limits.cpu: 8/16, limits.memory: 16G/32Gi

On the ui:

image

garronej commented 1 month ago

Thank you for reporing.

@olevitt @fcomte, the API does not give this info to onyxia web:

image
titigmr commented 1 month ago

In my instance, the api return this:

attatchment CRKKPo

the console raise:

image

garronej commented 1 month ago

Hum ok thank you, I can probably fix that then!

garronej commented 1 month ago

It's fixed, thanks a lot for reporting!