Hi team, I would like to know how to change the li...
# flyte-support
g
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!
g
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
t
@billowy-sundown-31926, can we add this to the user guide env setup or troubleshooting guide?
👍 1
g
thanks @glamorous-carpet-83516 do you know where this config is located?
t
@glamorous-carpet-83516, the configmap edit command won’t work for a demo cluster, right?
g
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
👀 1
🙌 1
h
Can we not
docker exec
into the cluster and modify the
flyte.yaml
file, @glamorous-carpet-83516?
g
But how do we restart flyteadmin?
h
aha.. restsarting that will restart the container, won’t it?
perhaps mounting the file then?
docker run -v my_flyte.yaml:flyte.yaml …
?
g
You mean docker restart flyte-sandbox?
h
yeah…
g
I never try it. I can give it a try.
160 Views