Skip to content

Deploy a Flower Server

Call function.run(action="deploy", ...) to deploy the server and coordinate federated-learning clients.

Parameters

Name Type Required Description
action str ✓ Action to execute. Must be deploy.
volumes list[dict] List of volumes for deployment.
resources dict Resource limits and requests.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.
auth_public_keys list[str] Public keys for client authentication.
insecure bool Disable TLS verification. Defaults to False.

Example

run = function.run(
    action="deploy",
    auth_public_keys=["client-public-key"],
)