Hi team, I would like to know how to change the li...
# ask-the-community
c
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
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
@Smriti Satyan, can we add this to the user guide env setup or troubleshooting guide?
c
thanks @Kevin Su do you know where this config is located?
s
@Kevin Su, the configmap edit command won’t work for a demo cluster, right?
k
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
Can we not
docker exec
into the cluster and modify the
flyte.yaml
file, @Kevin Su?
k
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 …
?
k
You mean docker restart flyte-sandbox?
h
yeah…
k
I never try it. I can give it a try.
159 Views