Hello Prefect Team, I hope everyone is doing fine ...
# ask-community
c
Hello Prefect Team, I hope everyone is doing fine ! Recently we have deployed a self-hosted Prefect in our Kubernetes Cluster through helm chart and I am trying to run a Kubernetes Job but facing an issue. Please let me know if i can get any help from this community and I will post more details about the error over here
j
hi! can you share the error here?
c
Sure, I am trying to run a k8 job using below code: job = KubernetesJob.from_yaml_file( credentials=k8s_credentials, manifest_path="/usr/src/app/sample_file.yaml", ) # Save the job for reuse job.save("my-k8s-job", overwrite=True) @flow def kubernetes_orchestrator(): run_namespaced_job(job) and getting below error in when running run_namespaced_job(job): File "/usr/local/lib/python3.11/site-packages/kubernetes_asyncio/config/kube_config.py", line 413, in load_and_set self._load_cluster_info() File "/usr/local/lib/python3.11/site-packages/kubernetes_asyncio/config/kube_config.py", line 387, in _load_cluster_info self.cert_file = FileOrData( ^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/kubernetes_asyncio/config/kube_config.py", line 81, in init if data_key_name in obj: ^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'NoneType' is not iterable
Created a bug (https://github.com/PrefectHQ/prefect/issues/15793) , could someone please help.
b
Hi Chaitanya, thanks for your message. It looks like our engineering team is taking a look. When you get a chance, please share your
prefect-kubernetes
version in the issue 🙌
c
Hello Bianca , Yes i have added that details in the issue. Thank you for the message !