Shivarp1 opened a new issue #10722:
URL: https://github.com/apache/airflow/issues/10722
Apache Airflow version: 1.10.12
kubernetes Version: 10.0.1
OpenAPI spec version: v1.14.5
OS: Linux Red Hat 7.x
---
Enabling the do_xcom=True with default configuration parameters for pod
throws the 403 forbidden error as below
--
HTTP response body:
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods
\"xyz..\" is forbidden: failed quota: default: must specify
requests.memory","reason":"Forbidden","details":{"name":"xyz..","kind":"pods"},"code":403}
---
*What you expected to happen**: Create the default side car object with
alpine image and launch the pod
--
What do you think went wrong?
In airflow.kubernetes.pod_generator the PodDefaults.SIDECAR_CONTAINER's
resources does not include requests memory and limits memory.cpu. These are
checked by the Kubernetes client api later and throws this error
--
**How to reproduce it**: A simple XCom test reproduces it
--
**How to resolve it**
Add requests memory, and limits to the resources to the
PodDefaults.SIDECAR_CONTAINER as below..
--
resources=k8s.V1ResourceRequirements(
requests={
"cpu": "10m",
"memory":"32Mi"
},
limits={
"cpu": "0.25",
"memory":"32Mi"
}
),
----------------------------------
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]