@Marvin when I try to create a k8s workpool using the python SDK I get a 500 internal error.
async def create_k8s_wp(kube_config_path: str):
async with get_client() as client:
work_pool_create = WorkPoolCreate(
name="my-k8s-work-pool",
description="A work pool for Kubernetes jobs",
type="kubernetes", # Specify that this is a Kubernetes work pool
base_job_template={
"job_configuration": { # Include job configuration
"kind": "Job",
"apiVersion": "batch/v1",
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "base_image",
"image": "
docker.io/prefecthq/prefect:2-latest", # Replace with your Docker image
"args": [], # Specify any arguments you want to pass
}
],
"restartPolicy": "Never",
}
}
}
},
"variables": { # Include variables if needed
"example_variable": "example_value" # Replace with your variables
},
}
)
work_pool = await client.create_work_pool(work_pool=work_pool_create)
return work_pool
this is the method I'm using