adventurous-van-8963
08/10/2023, 7:37 AMUpdate the FlyteAgent deployment's image
. From that manifest I understand the command is pyflyte serve <my-docker-image>
but none of the k8s Deployments I have running do run that cmd 🤔
https://docs.flyte.org/projects/cookbook/en/latest/auto_examples/extend_flyte/agent_service.html#update-flyteagentadventurous-van-8963
08/10/2023, 8:18 AMadventurous-van-8963
08/10/2023, 8:21 AMtall-lock-23197
glamorous-carpet-83516
08/11/2023, 7:22 AMglamorous-carpet-83516
08/11/2023, 7:24 AMadventurous-van-8963
08/11/2023, 7:53 AMagent-service:
supportedTaskTypes:
- default_task
- bacalhau_task
# By default, all the request will be sent to the default agent.
defaultAgent:
endpoint: "dns:///flyteagent.flyte.svc.cluster.local:8000"
insecure: true
timeouts:
GetTask: 200ms
defaultTimeout: 50ms
agents:
bacalhau_agent:
endpoint: "dns:///myagent-flyteagent.flyte.svc.cluster.local:8000"
insecure: true
defaultServiceConfig: '{"loadBalancingConfig": [{"round_robin":{}}]}'
timeouts:
GetTask: 100ms
defaultTimeout: 20ms
agentForTaskTypes:
# It will override the default agent for custom_task, which means propeller will send the request to this agent.
- mytask_task: mytask_agent
reference: https://docs.flyte.org/projects/cookbook/en/stable/auto_examples/extend_flyte/agent_service.html#update-flyteagentadventurous-van-8963
08/11/2023, 7:54 AMglamorous-carpet-83516
08/11/2023, 1:26 PMhelm install flytekit-core
will create agent deployment. the configmap stuff is to enable agent service, and add your custom agent config in the flytepropellerglamorous-carpet-83516
08/11/2023, 1:29 PMAlso, how to add my custom agent in https://github.com/flyteorg/flyte/blob/dfb56f4639a57d519d8fc48cae7d192a385fc160/charts/flyte-core/values.yaml#L211 ?you need to create a dockerfile, and install your custom flytekit plugin containing your agent. Then, replace the default image
flyteorg/flyteagent
with your new image. The gRPC server will automatically load your agent when it’s running