Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs][flyteagent] Remove agent-service config in flyte agent documentation #5731

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
pingsutw marked this conversation as resolved.
Show resolved Hide resolved
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
Loading