Trying to install Prefect 2.08b on Kubernetes (EKS) using a different namespace - other than ‘default’.
Looks like the deployment was installed but did not configure the
prefect kubernetes manifest orion | kubectl apply -f - --namespace=prefect-server-2-0b
deployment.apps/orion created
service/orion created
the namespace from the provided object “default” does not match the namespace “prefect-server-2-0b”. You must pass ‘–namespace=default’ to perform this operation.
the namespace from the provided object “default” does not match the namespace “prefect-server-2-0b”. You must pass ‘–namespace=default’ to perform this operation.
Hey, Ravi! The prefect kubernetes manifest orion command produces a manifest that uses the “default” namespace. There isn’t currently a way to pass in a namespace to when generating the manifest.
One thing you could do is pipe the output to sed and do a string substitution. Something like this:
Or, you could output the file to disk first with prefect kubernetes manifest orion > manifest.yaml, change the usages of “default” to the namespace you want in that file, and then apply the file directly with e.g. kubectl apply -f orion-manifest.yaml.