prefect-agent

by prefect

Helm chartv2024.8.30163822App 2.20.4Verified publisher

Prefect Agent application bundle

About this chart

prefect-agent

Prefect Agent application bundle

Homepage: https://github.com/PrefectHQ

Maintainers

NameEmailUrl
jamiezieziula[email protected]
jimid27[email protected]
parkedwards[email protected]
mitchnielsen[email protected]

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamicommon2.20.5

Values

KeyTypeDefaultDescription
agent.affinityobject{}affinity for agent pods assignment
agent.apiConfigstring"cloud"one of 'cloud' or 'server'
agent.cloudApiConfig.accountIdstring""prefect account ID
agent.cloudApiConfig.apiKeySecret.keystring"key"prefect API secret key
agent.cloudApiConfig.apiKeySecret.namestring"prefect-api-key"prefect API secret name
agent.cloudApiConfig.cloudUrlstring"https://api.prefect.cloud/api"prefect cloud API url; the full URL is constructed as https://cloudUrl/accounts/accountId/workspaces/workspaceId
agent.cloudApiConfig.workspaceIdstring""prefect workspace ID
agent.clusterUidstring""unique cluster identifier, if none is provided this value will be infered at time of helm install
agent.config.http2booltrueconnect using HTTP/2 if the server supports it (experimental)
agent.config.limitstringnilMaximum number of flow runs to start simultaneously (default: unlimited)
agent.config.prefetchSecondsint10when querying for runs, how many seconds in the future can they be scheduled
agent.config.queryIntervalint5how often the agent will query for runs
agent.config.workPoolstring""name of prefect workpool the agent will poll; if workpool or workqueues is not provided, we use the default queue
agent.config.workQueueslist[]names of prefect workqueues the agent will poll; if workpool or workqueues is not provided, we use the default queue
agent.containerSecurityContext.allowPrivilegeEscalationboolfalseset agent containers' security context allowPrivilegeEscalation
agent.containerSecurityContext.capabilitiesobject{}set agent containers' security context capabilities
agent.containerSecurityContext.readOnlyRootFilesystembooltrueset agent containers' security context readOnlyRootFilesystem
agent.containerSecurityContext.runAsNonRootbooltrueset agent containers' security context runAsNonRoot
agent.containerSecurityContext.runAsUserint1001set agent containers' security context runAsUser
agent.extraArgslist[]array with extra Arguments for the agent container to start with
agent.extraContainerslist[]additional sidecar containers
agent.extraEnvVarslist[]array with extra environment variables to add to agent nodes
agent.extraEnvVarsCMstring""name of existing ConfigMap containing extra env vars to add to agent nodes
agent.extraEnvVarsSecretstring""name of existing Secret containing extra env vars to add to agent nodes
agent.extraVolumeMountslist[]array with extra volumeMounts for the agent pod
agent.extraVolumeslist[]array with extra volumes for the agent pod
agent.image.debugboolfalseenable agent image debug mode
agent.image.prefectTagstring"2-latest"prefect image tag (immutable tags are recommended)
agent.image.pullPolicystring"IfNotPresent"agent image pull policy
agent.image.pullSecretslist[]agent image pull secrets
agent.image.repositorystring"prefecthq/prefect"agent image repository
agent.nodeSelectorobject{}node labels for agent pods assignment
agent.podAnnotationsobject{}extra annotations for agent pod
agent.podLabelsobject{}extra labels for agent pod
agent.podSecurityContext.fsGroupint1001set agent pod's security context fsGroup
agent.podSecurityContext.runAsNonRootbooltrueset agent pod's security context runAsNonRoot
agent.podSecurityContext.runAsUserint1001set agent pod's security context runAsUser
agent.priorityClassNamestring""priority class name to use for the agent pods; if the priority class is empty or doesn't exist, the agent pods are scheduled without a priority class
agent.replicaCountint1number of agent replicas to deploy
agent.resources.limitsobject{"cpu":"1000m","memory":"1Gi"}the requested limits for the agent container
agent.resources.requestsobject{"cpu":"100m","memory":"256Mi"}the requested resources for the agent container
agent.serverApiConfig.apiUrlstring"http://127.0.0.1:4200/api"prefect API url (PREFECT_API_URL); should be in-cluster URL if the agent is deployed in the same cluster as the API
agent.tolerationslist[]tolerations for agent pods assignment
commonAnnotationsobject{}annotations to add to all deployed objects
commonLabelsobject{}labels to add to all deployed objects
fullnameOverridestring"prefect-agent"fully override common.names.fullname
nameOverridestring""partially overrides common.names.name
namespaceOverridestring""fully override common.names.namespace
role.extraPermissionslist[]array with extra permissions to add to the agent role
serviceAccount.annotationsobject{}additional service account annotations (evaluated as a template)
serviceAccount.createbooltruespecifies whether a ServiceAccount should be created
serviceAccount.namestring""the name of the ServiceAccount to use. if not set and create is true, a name is generated using the common.names.fullname template

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy prefect-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prefect-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprefect-agent is pinned at v2024.8.30163822 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply