Mike Kovetsky
07/26/2022, 8:43 AMprefect storage create
in cli, but my 2.0b13 doesnโt have no such command returning the error Error: No such command โstorageโ.
Should I create the storage using this doc ? There is no example for GCP, i found this one in the community. But there is no
from prefect.blocks.storage import GoogleCloudStorageBlock
import in my venv ๐from prefect.flow_runners import KubernetesFlowRunner
since i upgraded from 2.0b11 to 2.0b13
The Kubernetes setup flow seems to be a bit screwed nowMathijs Carlu
07/26/2022, 9:30 AMKubernetesJob
from prefect.infrastructure
as flow_runners are deprecated too.
The community example you mentioned won't work, as DeploymentSpec
is deprecated since 2.0b9 as well.Mike Kovetsky
07/26/2022, 9:32 AMMathijs Carlu
07/26/2022, 10:12 AMclient = OrionClient(ORION_URL)
d = Deployment(
flow = FlowScript(path='./etl.py'),
name = "test",
tags=["orion"],
infrastructure = KubernetesJob(stream_output=True, namespace="orion",),
packager = DockerPackager(python_environment=PythonEnvironment(python_version='3.8'), registry_url="xxxx")
)
d.create(client=client)
Mike Kovetsky
07/26/2022, 10:13 AMRajvir Jhawar
07/26/2022, 10:20 AMDeployment(
name="example",
flow=example_flow,
infrastructure=KubernetesJob(customizations=resource_limits}),
packager=FilePackager(filesystem=RemoteFileSystem(basepath="gcs://<BUCKET_NAME>") ))
Mike Kovetsky
07/26/2022, 11:02 AMaiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host <http://storage.googleapis.com:443|storage.googleapis.com:443> ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]