https://prefect.io logo
Title
m

Marwan Sarieddine

05/28/2020, 3:46 PM
Hello everyone - I think I found two issues in
prefect 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] • Can’t specify a
--name
to the cli call - so the agent’s name always gets registered as
agent
- apparently this is done in
prefect agent start
- I stand corrected
👀 1
d

Dylan

05/28/2020, 3:51 PM
Hi @Marwan Sarieddine!
m

Marwan Sarieddine

05/28/2020, 3:51 PM
hi @Dylan!
d

Dylan

05/28/2020, 3:51 PM
Would. you mind opening an issue describing the problem in a little more detail?
m

Marwan Sarieddine

05/28/2020, 3:51 PM
sure
d

Dylan

05/28/2020, 3:52 PM
Thanks, this definitely seems like something you should be able to configure
m

Marwan Sarieddine

05/28/2020, 3:57 PM
@Dylan - rethinking the first issue - (the namespace issue)- I think it is more of an inconvenience /non-issue - i.e. if the context is switched before deployment then
calling kubectl apply
should work fine - just a small gotcha I guess
d

Dylan

05/28/2020, 3:58 PM
Hmm, maybe it’s something we should point out in our documentation
m

Marwan Sarieddine

05/28/2020, 3:59 PM
hmm - perhaps yes …
this is the default in docs
prefect 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 -
👍 1