-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync pod sidecar containers do not have resources properly defined for k8s clusters with resource quotas #10589
Comments
I found the official walkthrough from Kubernetes that demonstrates how to build a namespace with resource quotas, which may be helpful in testing: https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/ |
It appears this was fixed in this PR: #10759. I will test this as soon as I can |
I don't see how this can be configured using env vars or config file. Is there any way I can help make this configurable? |
Closing due inactivity. @rcheatham-q please open a new issue if the error persists. |
@amitza hello! Did you solve this? |
not fixed -> |
@sookeke if the issue is not fixed please reopen adding more information and what version are you using today. |
Hi @marcosmarxm we are currently using Airbyte version 0.58.0 with Helm chart version 0.64.308 and this issue still persists.
So the init containers do not get an resource definition assigned. |
Environment
Current Behavior
Airbyte fails to create the sync pod because the sidecar and init containers do not have requests.cpu set. In Kubernetes clusters with resource quotas implemented for CPU requests, these values must be specified (see the fifth bullet point on the resource quotas page).
Expected Behavior
Airbyte creates the sync pod normally.
Logs
LOG
Steps to Reproduce
(these have not been explicitly tested but are the most likely steps to reproduce)
Are you willing to submit a PR?
Potentially. The code changes required are fairly simple. All changes would be made in ./airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java. The
DEFAULT_SIDECAR_RESOURCES
variable defined on line 104 would be changed to add CPU requests, and the init container defined on line 164 would need all resource requests defined.My current configuration only requires the resource request to be defined, but other resource quotas will require the resource limits to be defined, so a full fix will include all resource requests and limits.
The text was updated successfully, but these errors were encountered: