Skip to content

Commit

Permalink
Add note on updating sandbox cluster configuration (#4510)
Browse files Browse the repository at this point in the history
* Add note on updating sandbox cluster configuration

Signed-off-by: Jeev B <[email protected]>

* fixes

Signed-off-by: Jeev B <[email protected]>

---------

Signed-off-by: Jeev B <[email protected]>
  • Loading branch information
jeevb authored Dec 1, 2023
1 parent 64f097f commit a8f4904
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions rsts/deployment/deployment/sandbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ who wish to dig deeper into the storage layer.
🐋 Flyte sandbox ships with a Docker registry. Tag and push custom workflow images to localhost:30000
📂 The Minio API is hosted on localhost:30002. Use http://localhost:30080/minio/login for Minio console
Configuration
______________
Flytectl/Flyte-remote Configuration
___________________________________

The ``config-sandbox.yaml`` file contains configuration for **FlyteAdmin**,
which is the Flyte cluster backend component that processes all client requests
such as workflow executions. The default values are enough to let you connect and use Flyte:
The ``config-sandbox.yaml`` file contains configuration for clients to communicate with **FlyteAdmin**, which is the Flyte cluster backend component that processes all client requests such as workflow executions. The default values are enough to let you connect and use Flyte:


.. code-block:: yaml
Expand All @@ -107,6 +105,41 @@ such as workflow executions. The default values are enough to let you connect an
Learn more about the configuration settings in the
{ref}`Deployment Guide <flyte:flyteadmin-config-specification>`

Flyte Cluster Configuration
___________________________

Flyte Sandbox ships with a reasonable default configuration. However, you can specify overrides as necessary to fit your use case, in the ``~/.flyte/sandbox/config.yaml`` file. See the following example for enabling the Ray plugin (requires `kuberay-operator <https://github.com/ray-project/kuberay>`__ to also be installed):

.. code-block:: shell
> cat ~/.flyte/sandbox/config.yaml
tasks:
task-plugins:
default-for-task-types:
ray: ray
enabled-plugins:
- container
- sidecar
- k8s-array
- agent-service
- ray
plugins:
ray:
ttlSecondsAfterFinished: 60
You can also specify additional cluster resource templates in the ``~/.flyte/sandbox/cluster-resource-templates`` directory. See the following example:

.. code-block:: shell
> cat ~/.flyte/sandbox/cluster-resource-templates/001-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: flyte-worker
namespace: {{ namespace }}
Once you are happy with the changes, simply run ``flytectl demo reload`` to trigger a reload of the sandbox with the updated configuration.


Now that you have the sandbox cluster running, you can now go to the :ref:`User Guide <cookbook:userguide>` or
:ref:`Tutorials <cookbook:tutorials>` to run tasks and workflows written in ``flytekit``, the Python SDK for Flyte.
:ref:`Tutorials <cookbook:tutorials>` to run tasks and workflows written in ``flytekit``, the Python SDK for Flyte.

0 comments on commit a8f4904

Please sign in to comment.