Matheus Moreno
04/27/2022, 6:50 PMkatrina
Matheus Moreno
04/27/2022, 8:43 PMkatrina
Matheus Moreno
04/27/2022, 9:43 PMkatrina
docker directly
?Matheus Moreno
04/27/2022, 10:01 PMdocker run ...
to start the serverkatrina
Matheus Moreno
04/27/2022, 10:03 PMdocker create --name flyte-sandbox \
--privileged \
--mount type=bind,src=$PWD,dst=/root \
-p 30081:30081 -p 30082:30082 -p 30084:30084 -p 30086-30088:30086-30088 \
<http://cr.flyte.org/flyteorg/flyte-sandbox:dind|cr.flyte.org/flyteorg/flyte-sandbox:dind>
docker run flyte-sandbox # Start sandbox
version: "3.5"
services:
sandbox:
image: <http://cr.flyte.org/flyteorg/flyte-sandbox:dind|cr.flyte.org/flyteorg/flyte-sandbox:dind>
container_name: flyte-sandbox
privileged: true
volumes:
- ../..:/root
ports:
- "30081:30081" # Console at <http://localhost:30081/console>
- "30082:30082"
- "30084:30084"
- "30086:30086"
- "30087:30087"
- "30088:30088"
katrina
Matheus Moreno
04/27/2022, 11:07 PMentrypoint: >
bash -c "
apk add --update py-pip &&
pip install yq &&
yq -i -y '.flyte.configmap.task_resource_defaults.task_resources.limits.memory = \"4Gi\"' /flyteorg/share/flyte/values.yaml &&
tini flyte-entrypoint.sh
"
katrina
Matheus Moreno
04/28/2022, 12:35 AM/flyteorg/share/flyte/values.yaml
and /flyteorg/share/flyte-core/values.yaml
and this error still happens during registration:
Error: rpc error: code = InvalidArgument desc = Requested MEMORY default [4Gi] is greater than current limit set in the platform configuration [1Gi]. Please contact Flyte Admins to change these limits or consult the configuration
.flyte.configmap.task_resource_defaults.task_resources.limits.memory
is configured to 4Gi to bothFLYTE_TEST
variable to local
, because the default is using the release valuesversion: "3.5"
services:
sandbox:
image: <http://cr.flyte.org/flyteorg/flyte-sandbox:dind|cr.flyte.org/flyteorg/flyte-sandbox:dind>
container_name: flyte-sandbox
privileged: true
volumes:
- ../..:/root
entrypoint: >
bash -c "
apk add --update py-pip &&
pip install yq &&
yq -i -y '.flyte.configmap.task_resource_defaults.task_resources.limits.memory = \"4Gi\"' /flyteorg/share/flyte/values.yaml &&
tini flyte-entrypoint.sh
"
environment:
- FLYTE_TEST=local
ports:
- "30081:30081" # Console at <http://localhost:30081/console>
- "30082:30082"
- "30084:30084"
- "30086:30086"
- "30087:30087"
- "30088:30088"
katrina