Hello everyone - I think I found two issues in `pr...
# prefect-community
m
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
Hi @Marwan Sarieddine!
m
hi @Dylan!
d
Would. you mind opening an issue describing the problem in a little more detail?
m
sure
d
Thanks, this definitely seems like something you should be able to configure
m
@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
Hmm, maybe it’s something we should point out in our documentation
m
hmm - perhaps yes …
this is the default in docs
Copy code
prefect agent install kubernetes -t MY_TOKEN | kubectl apply -f -
and if a namespace is specified it should be …
Copy code
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