https://flyte.org logo
#ask-the-community
Title
# ask-the-community
c

Claudio Andres Gauna

09/02/2022, 4:07 AM
Hi team, I would like to know how to change the limit set in the platform configuration [1Gi] for memory in sandbox. Thanks in advance!
k

Kevin Su

09/02/2022, 5:30 AM
Copy code
$ k edit cm flyte-admin-config

  task_resource_defaults.yaml: |
    task_resources:
      defaults:
        cpu: 100m
        memory: 500Mi
        storage: 500Mi
      limits:
        cpu: 2
        gpu: 1
        memory: 1Gi <- change this value
        storage: 20Mi
s

Samhita Alla

09/02/2022, 5:31 AM
@Smriti Satyan, can we add this to the user guide env setup or troubleshooting guide?
c

Claudio Andres Gauna

09/02/2022, 8:57 AM
thanks @Kevin Su do you know where this config is located?
s

Samhita Alla

09/02/2022, 9:35 AM
@Kevin Su, the configmap edit command won’t work for a demo cluster, right?
k

Kevin Su

09/02/2022, 12:59 PM
sorry, I thought you’re using sandbox. for demo, IIUC, we can’t change the config at runtime, so you have to change config and build a custom image
Copy code
$ git clone git@github.com:flyteorg/flyte.git
$ cd flyte
$ vim flyte.yaml (update config)
$ docker build -t pingsutw/sandbox-lite-test -f docker/sandbox-lite/Dockerfile . # Build image
$ docker push pingsutw/sandbox-lite-test
$ flytectl demo start --image pingsutw/sandbox-lite-test
h

Haytham Abuelfutuh

09/02/2022, 6:35 PM
Can we not
docker exec
into the cluster and modify the
flyte.yaml
file, @Kevin Su?
k

Kevin Su

09/02/2022, 6:37 PM
But how do we restart flyteadmin?
h

Haytham Abuelfutuh

09/02/2022, 6:38 PM
aha.. restsarting that will restart the container, won’t it?
perhaps mounting the file then?
docker run -v my_flyte.yaml:flyte.yaml …
?
k

Kevin Su

09/02/2022, 6:39 PM
You mean docker restart flyte-sandbox?
h

Haytham Abuelfutuh

09/02/2022, 6:39 PM
yeah…
k

Kevin Su

09/02/2022, 6:40 PM
I never try it. I can give it a try.
71 Views