The "OOMKilled" (Out of Memory Killed) error indicates that your Pod has consumed more memory than the configured limit and has been terminated by the Kubernetes system.
To resolve this issue:
1.
Increase Memory Limits: Ensure that your Pods have adequate memory limits set.
2.
Optimize Code: Review your code to make sure it’s not using unnecessary memory.
3.
Resource Requests and Limits: Set appropriate resource requests and limits in your Kubernetes Pod specification to ensure the Kubernetes scheduler assigns enough resources to your Pods.
Here are some useful references to guide you through this:
- For Prefect 2.x, configuring Kubernetes workers can be found
here
- For Prefect 3.x, you can refer to advanced settings and configurations
here
If you continue to face issues, please share more details about your current configurations and the memory requirements of your workloads.