Abhas P
11/17/2021, 10:50 PMKevin Kho
Abhas P
11/17/2021, 11:09 PMrun_config=KubernetesRun(
labels=["dask"],
image="<image-for-docker-pods>",
),Kevin Kho
Abhas P
11/17/2021, 11:16 PMexecutor=DaskExecutor(
cluster_class=lambda: KubeCluster(make_pod_spec(image=prefect.context.image)),
adapt_kwargs={"minimum": 2, "maximum": 3},
),
run_config=KubernetesRun(
labels=["dask"],
image="<image-for-docker-pods>",
)
Also I understand how my local agent will be able to look for a local K8s cluster - but how does it look for a specific GKE cluster that's already running ?Kevin Kho
Abhas P
11/18/2021, 7:49 PMKevin Kho
kubectl get pods
in your command line, you are already connected to a cluster. So Prefect uses whatever you are already connected to.Anna Geller
kubectl config current-context
Anna Geller
kubectl config use-context SOME_CONTEXT_NAME
Abhas P
11/18/2021, 9:03 PM