You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/06/18 09:40:49 UTC
[GitHub] [airflow] hussein-awala commented on issue #31988: multiNamespaceMode not working with executor KubernetesExecutor, pod only run in the airflow namespace
hussein-awala commented on issue #31988:
URL: https://github.com/apache/airflow/issues/31988#issuecomment-1596067033
It seems that the legacy configuration method using `"KubernetesExecutor": <dict>` does not support overriding the namespace. However, as this method is deprecated and there is an alternative available, there is no need to fix it. Instead, you can try the following approach:
```python
k8s_resource_requirements = k8s.V1ResourceRequirements(
requests={"memory": "1G", "cpu": 0.5}
)
executor_config={
"pod_override": k8s.V1Pod(
metadata=k8s.V1ObjectMeta(namespace="othernamespace"),
spec=k8s.V1PodSpec(
containers=[
k8s.V1Container(
name="base",
resources=k8s_resource_requirements,
)
],
)
)
}
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org