Marwan Sarieddine
05/28/2020, 3:46 PMprefect install agent kubernetes
• --namespace
only applies to the rbac in the generated manifest but not to the deployment - [i.e agents always gets deployed to default namespace]
• --name
to the cli call - so the agent’s name always gets registered as agent
prefect agent start
- I stand correctedDylan
Marwan Sarieddine
05/28/2020, 3:51 PMDylan
Marwan Sarieddine
05/28/2020, 3:51 PMDylan
Marwan Sarieddine
05/28/2020, 3:57 PMcalling kubectl apply
should work fine - just a small gotcha I guessDylan
Marwan Sarieddine
05/28/2020, 3:59 PMMarwan Sarieddine
05/28/2020, 4:05 PMprefect agent install kubernetes -t MY_TOKEN | kubectl apply -f -
and if a namespace is specified it should be …
prefect agent install kubernetes -t MY_TOKEN --namespace $namespace | kubectl apply --namespace $namespace -f -
but I guess it’s fine not to explicitly mention this in docs - because it is not the default case -