Eduardo Fernández León
12/22/2021, 12:09 PMrunner token
that I couldn't be able to find in the Cloud UI. Thanks in advance.Anna Geller
prefect agent kubernetes install --rbac -k YOUR_API_KEY | kubectl apply --namespace=my-namespace -f -
This documentation page explains it in far more detail.
What you can also do is to first generate the YAML file for your agent and apply it only after you manually cross-checked everything in the YAML looks good.
prefect agent kubernetes install --rbac -k YOUR_API_KEY >> agent.yaml
Then you can adjust everything in the agent.yaml e.g. add your agent label (for instance “production” or “staging”), add env variables and then apply:
kubectl apply -f agent.yaml
Eduardo Fernández León
12/22/2021, 1:20 PM