<@ULVA73B9P> I keep getting internal server error ...
# marvin-in-the-wild
m
@Marvin I keep getting internal server error when i try to instantiate a k8s workpool using the rest API as follow with my prefect 2.0 server: curl -X POST http://10.30.8.177:4200/api/work_pools/ \ -H "Content-Type: application/json" \ -d '{ "name": "test-k8s-work-pool", "type": "kubernetes", "base_job_template": { "job_configuration": { "pod_template": { "spec": { "containers": [ { "name": "base", "image": "docker.io/prefecthq/prefect:2-latest", "env": [ { "name": "KUBECONFIG", "value": "kube_config.yaml" }, { "name": "AWS_ACCESS_KEY_ID", "value": "minio" }, { "name": "AWS_SECRET_ACCESS_KEY", "value": "minio123" }, { "name": "MLFLOW_S3_ENDPOINT_URL", "value": "http://10.30.8.146:9000" } ], "args": ["your-args"] } ] } } }, "variables": { "env": { "KUBECONFIG": "kube_config.yaml", "AWS_ACCESS_KEY_ID": "minio", "AWS_SECRET_ACCESS_KEY": "minio123", <.... {"exception_message":"Internal Server Error"}%
m
Your message was too long by 53 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
I keep getting internal server error when i try to instantiate a k8s workpool using the rest API as follow with my prefect 2.0 server:
curl -X POST http://10.30.8.177:4200/api/work_pools/ \ -H "Content-Type: application/json" \ -d '{ "name": "test-k8s-work-pool", "type": "kubernetes", "base_job_template": { "job_configuration": { "pod_template": { "spec": { "containers": [ { "name": "base", "image": "docker.io/prefecthq/prefect:2-latest", "env": [ { "name": "KUBECONFIG", "value": "kube_config.yaml" }, { "name": "AWS_ACCESS_KEY_ID", "value": "minio" }, { "name": "AWS_SECRET_ACCESS_KEY", "value": "minio123" }, { "name": "MLFLOW_S3_ENDPOINT_URL", "value": "http://10.30.8.146:9000" } ], "args": ["your-args"] } ] } } }, "variables": { "env":