-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New agents guide and deployment config docs updates (#4822)
* small update to start PR Signed-off-by: nikki everett <[email protected]> * add airflow and snowflake agent pages and update existing agents docs Signed-off-by: nikki everett <[email protected]> * small updates Signed-off-by: nikki everett <[email protected]> * [Doc] Airflow agent deployment (#4831) Signed-off-by: Kevin Su <[email protected]> * [Doc] Snowflake agent deployment (#4832) Signed-off-by: Kevin Su <[email protected]> * copyedits Signed-off-by: nikki everett <[email protected]> * move agents guide to flyte Signed-off-by: nikki everett <[email protected]> * rename directory and add guide to toctree Signed-off-by: nikki everett <[email protected]> * stub out async vs sync agents content Signed-off-by: nikki everett <[email protected]> * link to list of agents Signed-off-by: nikki everett <[email protected]> * edits for sync vs async agents Signed-off-by: nikki everett <[email protected]> * add visible TOC table to index page Signed-off-by: nikki everett <[email protected]> * update for async vs sync tasks Signed-off-by: nikki everett <[email protected]> * Update async agent example (#4906) * Add sync agent example Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> --------- Signed-off-by: Kevin Su <[email protected]> * formatting and copy updates Signed-off-by: nikki everett <[email protected]> * fix formatting in snowflake doc, small fixes in agents procedural docs Signed-off-by: nikki everett <[email protected]> * fix toctree Signed-off-by: nikki everett <[email protected]> * add link Signed-off-by: nikki everett <[email protected]> * fix links Signed-off-by: nikki everett <[email protected]> * update link Signed-off-by: nikki everett <[email protected]> * import blog content Signed-off-by: nikki everett <[email protected]> * rename agent creation doc, small content updates Signed-off-by: nikki everett <[email protected]> * fix article title Signed-off-by: nikki everett <[email protected]> * fix link Signed-off-by: nikki everett <[email protected]> * undo unnecessary formatting change in unrelated file Signed-off-by: nikki everett <[email protected]> --------- Signed-off-by: nikki everett <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]>
- Loading branch information
Showing
12 changed files
with
426 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
.. _deployment-agent-setup-airflow: | ||
|
||
Airflow agent | ||
================= | ||
|
||
This guide provides an overview of how to set up the Airflow agent in your Flyte deployment. | ||
Please note that the you don't need an Airflow cluster to run the Airflow tasks, since Flytekit will | ||
automatically compile Airflow tasks to Flyte tasks and execute them on the Flyte cluster. | ||
|
||
Specify agent configuration | ||
---------------------------- | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: Flyte binary | ||
|
||
Edit the relevant YAML file to specify the agent. | ||
|
||
.. code-block:: bash | ||
kubectl edit configmap flyte-sandbox-config -n flyte | ||
.. code-block:: yaml | ||
:emphasize-lines: 7,11,16 | ||
tasks: | ||
task-plugins: | ||
enabled-plugins: | ||
- container | ||
- sidecar | ||
- k8s-array | ||
- agent-service | ||
default-for-task-types: | ||
- container: container | ||
- container_array: k8s-array | ||
- airflow: agent-service | ||
plugins: | ||
agent-service: | ||
supportedTaskTypes: | ||
- airflow | ||
.. group-tab:: Flyte core | ||
|
||
Create a file named ``values-override.yaml`` and add the following configuration to it. | ||
|
||
.. code-block:: yaml | ||
configmap: | ||
enabled_plugins: | ||
# -- Tasks specific configuration [structure](https://pkg.go.dev/github.com/flyteorg/flytepropeller/pkg/controller/nodes/task/config#GetConfig) | ||
tasks: | ||
# -- Plugins configuration, [structure](https://pkg.go.dev/github.com/flyteorg/flytepropeller/pkg/controller/nodes/task/config#TaskPluginConfig) | ||
task-plugins: | ||
# -- [Enabled Plugins](https://pkg.go.dev/github.com/flyteorg/flyteplugins/go/tasks/config#Config). Enable sagemaker*, athena if you install the backend | ||
enabled-plugins: | ||
- container | ||
- sidecar | ||
- k8s-array | ||
- agent-service | ||
default-for-task-types: | ||
container: container | ||
sidecar: sidecar | ||
container_array: k8s-array | ||
airflow: agent-service | ||
plugins: | ||
agent-service: | ||
supportedTaskTypes: | ||
- airflow | ||
Upgrade the Flyte Helm release | ||
------------------------------ | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: Flyte binary | ||
|
||
.. code-block:: bash | ||
helm upgrade <RELEASE_NAME> flyteorg/flyte-binary -n <YOUR_NAMESPACE> --values <YOUR_YAML_FILE> | ||
Replace ``<RELEASE_NAME>`` with the name of your release (e.g., ``flyte-backend``), | ||
``<YOUR_NAMESPACE>`` with the name of your namespace (e.g., ``flyte``), | ||
and ``<YOUR_YAML_FILE>`` with the name of your YAML file. | ||
|
||
.. group-tab:: Flyte core | ||
|
||
.. code-block:: bash | ||
helm upgrade <RELEASE_NAME> flyte/flyte-core -n <YOUR_NAMESPACE> --values values-override.yaml | ||
Replace ``<RELEASE_NAME>`` with the name of your release (e.g., ``flyte``) | ||
|
||
and ``<YOUR_NAMESPACE>`` with the name of your namespace (e.g., ``flyte``). | ||
|
||
For Airflow agent on the Flyte cluster, see `Airflow agent <https://docs.flyte.org/en/latest/flytesnacks/examples/airflow_agent/index.html>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
.. _deployment-agent-setup-snowflake: | ||
|
||
Snowflake agent | ||
================= | ||
|
||
This guide provides an overview of how to set up the Snowflake agent in your Flyte deployment. | ||
|
||
1. Set up the key pair authentication in Snowflake. For more details, see the `Snowflake key-pair authentication and key-pair rotation guide <https://docs.snowflake.com/en/user-guide/key-pair-auth>`__. | ||
2. Create a secret with the group "snowflake" and the key "private_key". For more details, see `"Using Secrets in a Task" <https://https://docs.flyte.org/en/latest/flytesnacks/examples/productionizing/use_secrets.html>`__. | ||
|
||
.. code-block:: bash | ||
kubectl create secret generic snowflake-private-key --namespace=flytesnacks-development --from-file=your_private_key_above | ||
Specify agent configuration | ||
---------------------------- | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: Flyte binary | ||
|
||
Edit the relevant YAML file to specify the agent. | ||
|
||
.. code-block:: bash | ||
kubectl edit configmap flyte-sandbox-config -n flyte | ||
.. code-block:: yaml | ||
:emphasize-lines: 7,11,16 | ||
tasks: | ||
task-plugins: | ||
enabled-plugins: | ||
- container | ||
- sidecar | ||
- k8s-array | ||
- agent-service | ||
default-for-task-types: | ||
- container: container | ||
- container_array: k8s-array | ||
- snowflake: agent-service | ||
plugins: | ||
agent-service: | ||
supportedTaskTypes: | ||
- snowflake | ||
.. group-tab:: Flyte core | ||
|
||
Create a file named ``values-override.yaml`` and add the following configuration to it. | ||
|
||
.. code-block:: yaml | ||
configmap: | ||
enabled_plugins: | ||
# -- Tasks specific configuration [structure](https://pkg.go.dev/github.com/flyteorg/flytepropeller/pkg/controller/nodes/task/config#GetConfig) | ||
tasks: | ||
# -- Plugins configuration, [structure](https://pkg.go.dev/github.com/flyteorg/flytepropeller/pkg/controller/nodes/task/config#TaskPluginConfig) | ||
task-plugins: | ||
# -- [Enabled Plugins](https://pkg.go.dev/github.com/flyteorg/flyteplugins/go/tasks/config#Config). Enable sagemaker*, athena if you install the backend | ||
enabled-plugins: | ||
- container | ||
- sidecar | ||
- k8s-array | ||
- agent-service | ||
default-for-task-types: | ||
container: container | ||
sidecar: sidecar | ||
container_array: k8s-array | ||
snowflake: agent-service | ||
plugins: | ||
agent-service: | ||
supportedTaskTypes: | ||
- snowflake | ||
Ensure that the propeller has the correct service account for BigQuery. | ||
|
||
Upgrade the Flyte Helm release | ||
------------------------------ | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: Flyte binary | ||
|
||
.. code-block:: bash | ||
helm upgrade <RELEASE_NAME> flyteorg/flyte-binary -n <YOUR_NAMESPACE> --values <YOUR_YAML_FILE> | ||
Replace ``<RELEASE_NAME>`` with the name of your release (e.g., ``flyte-backend``), | ||
``<YOUR_NAMESPACE>`` with the name of your namespace (e.g., ``flyte``), | ||
and ``<YOUR_YAML_FILE>`` with the name of your YAML file. | ||
|
||
.. group-tab:: Flyte core | ||
|
||
.. code-block:: bash | ||
helm upgrade <RELEASE_NAME> flyte/flyte-core -n <YOUR_NAMESPACE> --values values-override.yaml | ||
Replace ``<RELEASE_NAME>`` with the name of your release (e.g., ``flyte``) | ||
|
||
and ``<YOUR_NAMESPACE>`` with the name of your namespace (e.g., ``flyte``). | ||
|
||
For Snowflake agent on the Flyte cluster, see `Snowflake agent <https://docs.flyte.org/en/latest/flytesnacks/examples/snowflake_integration/snowflake_agent.html>`_. |
Oops, something went wrong.