Bruno Nunes
03/31/2022, 4:48 PMprefect orion kubernetes-manifest | kubectl apply -f -
I got an error pulling the container because it didn't find docker.io/prefecthq/prefect:dev-python3.8. I've edited the deployment manifest to use docker.io/prefecthq/prefect:latest-python3.8 instead but I'm guessing that this is not the correct container either since I'm now getting the following error in the pod logs:
Usage: prefect [OPTIONS] COMMAND [ARGS]...
Try 'prefect -h' for help.
Error: No such command 'orion'.
Anna Geller
03/31/2022, 4:49 PM--namespace yournamespacename
kubectl apply
commandBruno Nunes
03/31/2022, 4:50 PMdeployment.apps/orion created
service/orion created
the namespace from the provided object "default" does not match the namespace "d44242". You must pass '--namespace=default' to perform this operation.
the namespace from the provided object "default" does not match the namespace "d44242". You must pass '--namespace=default' to perform this operation.
Anna Geller
03/31/2022, 4:53 PMprefect orion kubernetes-manifest
, this should output a manifest with the image:
image: prefecthq/prefect:2.0b2-python3.9
if not, you are using some old Prefect 2.0 version. We are moving fast here with new releases 😄prefecthq/prefect:latest-python3.8
is for Prefect 1.0 - this explains why you got this error "No such command 'orion' " because 1.0 doesn't have orion commandsBruno Nunes
03/31/2022, 7:44 PMAnna Geller
03/31/2022, 7:51 PMpip install -U "prefect>=2.0b"
prefecthq/prefect:2.0b2-python3.9
also: you won't see No such command 'orion'
- this was only because you used 1.0 image rather than 2.0Bruno Nunes
03/31/2022, 8:20 PMdeployment.apps/orion created
service/orion created
the namespace from the provided object "default" does not match the namespace "d44242". You must pass '--namespace=default' to perform this operation.
the namespace from the provided object "default" does not match the namespace "d44242". You must pass '--namespace=default' to perform this operation.
prefect work-queue create kubernetes
. You'll want to ensure you're connected to your kubernetes API though." Do you know how do I ensure that I'm connected to my kubernetes API?Anna Geller
04/03/2022, 2:42 PM