Summary
When trying to create a connection in Airbyte on Kubernetes, a KubernetesClientException is thrown due to missing CPU and memory limits and requests for connector-sidecar, init, and main containers.
Question
hello community,
I am new to airbyte and trying to deploy airbyte community edition on kubernetes.
I am able to deploy and all pods are up, but when I am try to create connection i am getting below error in workload-launcher.
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PATCH at: <https://10.100.0.1:443/api/v1/namespaces/data-engineering/pods/e-mongodb-v2-check-33a37202-430d-4270-b979-6c008749a86d-0-lnidc?fieldManager=fabric8>. Message: pods "e-mongodb-v2-check-33a37202-430d-4270-b979-6c008749a86d-0-lnidc" is forbidden: failed quota: data-engineering: must specify limits.cpu for: connector-sidecar,init,main; limits.memory for: connector-sidecar,init,main; requests.cpu for: connector-sidecar,init,main; requests.memory for: connector-sidecar,init,main. Received status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], group=null, kind=pods, name=e-mongodb-v2-check-33a37202-430d-4270-b979-6c008749a86d-0-lnidc, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=pods "e-mongodb-v2-check-33a37202-430d-4270-b979-6c008749a86d-0-lnidc" is forbidden: failed quota: data-engineering: must specify limits.cpu for: connector-sidecar,init,main; limits.memory for: connector-sidecar,init,main; requests.cpu for: connector-sidecar,init,main; requests.memory for: connector-sidecar,init,main, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Forbidden, status=Failure, additionalProperties={}).
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.requestFailure(OperationSupport.java:660) ~[kubernetes-client-6.12.1.jar:?]
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.requestFailure(OperationSupport.java:640) ~[kubernetes-client-6.12.1.jar:?]
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.assertResponseCode(OperationSupport.java:589) ~[kubernetes-client-6.12.1.jar:?]
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.lambda$handleResponse$0(OperationSupport.java:549) ~[kubernetes-client-6.12.1.jar:?]
i am using helm chart version 1.0.0
i can not find any properties which can specify limits for connector-sidecar. i tried suppling below extraEnv in workload-launcher but it didnt helped.
JOB_MAIN_CONTAINER_CPU_LIMIT: '200m'
JOB_MAIN_CONTAINER_CPU_REQUEST: '250m'
JOB_MAIN_CONTAINER_MEMORY_LIMIT: '1Gi'
JOB_MAIN_CONTAINER_MEMORY_REQUEST: '256Mi'```
does anybody have faced somthing like this?
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1731324661785739) if you want
to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["airbyte", "kubernetes", "connection", "error", "kubernetesclientexception", "cpu-limits", "memory-limits", "connector-sidecar"]
</sub>