Skip to content

Commit

Permalink
[Docs][flyteagent] Remove agent-service config in flyte agent documen…
Browse files Browse the repository at this point in the history
…tation (#5731)

Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier authored Sep 8, 2024
1 parent f7ce7eb commit 42642fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
22 changes: 4 additions & 18 deletions docs/flyte_agents/developing_agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,29 +159,15 @@ For flytekit versions `>v1.10.2`, use `pyflyte serve agent`.

### 4. Deploy Your Flyte agent

1. Update the FlyteAgent deployment's [image](https://github.com/flyteorg/flyte/blob/master/charts/flyteagent/templates/agent/deployment.yaml#L35)
Update the FlyteAgent deployment's [image](https://github.com/flyteorg/flyte/blob/master/charts/flyteagent/templates/agent/deployment.yaml#L35)

```bash
kubectl set image deployment/flyteagent flyteagent=ghcr.io/flyteorg/flyteagent:latest
```

2. Update the FlytePropeller configmap:

```YAML
tasks:
task-plugins:
enabled-plugins:
- agent-service
default-for-task-types:
- bigquery_query_job_task: agent-service
- custom_task: agent-service
```
3. Restart FlytePropeller:
```
kubectl rollout restart deployment flytepropeller -n flyte
```
:::{note}
Please make sure your propeller's image version is >= 1.13.0 so that the propeller can automatically fetch the supported task types from your agent deployment.
:::

### 5. Canary deployment

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,11 @@ flytectl demo start --dev
pyflyte serve agent
```

3. Update the config for the task handled by the agent in the single binary yaml file.
3. (Optional) Update the timeout configuration for each request to the agent deployment in the single binary YAML file:
```bash
cd flyte
vim ./flyte-single-binary-local.yaml
```

```yaml
:emphasize-lines: 9
tasks:
task-plugins:
enabled-plugins:
- agent-service
- container
- sidecar
- K8S-ARRAY
default-for-task-types:
- sensor: agent-service
- container: container
- container_array: K8S-ARRAY
```
```yaml
plugins:
# Registered Task Types
Expand Down

0 comments on commit 42642fd

Please sign in to comment.