mik-laj commented on pull request #8150: URL: https://github.com/apache/airflow/pull/8150#issuecomment-663685993
@xEviL I confirm that pod_template_file option does not affect kubernetesPodOperaator. It's only for KubernetesExecutor.. pod_mutation_hook is global and is used by both the operator and the executor. Wouldn't you like to write some documentation that explains how you set up Kubernetes executor? I know our documentation for an executor is incomplete, but even writing one section is a step forward. I will try to motivate other people to complete documentation for other sections. > Is it a fixed/hard-coded manifest file? If so, I'd think its use cases are very limited. @fengsi In most cases, a static configuration is sufficient. If you want more dynamic configuration, you can extend this with [the pod mutation hook](https://airflow.readthedocs.io/en/latest/kubernetes.html#pod-mutation-hook) or [executor_config](https://github.com/apache/airflow/blob/master/airflow/example_dags/example_kubernetes_executor_config.py). If you want to base your logic based on task attributes, you can modify executor_config with [the cluster policy](https://airflow.readthedocs.io/en/latest/concepts.html#cluster-policy). Of course we can think about improving this, but I think we need to focus on adding extra volumes first. ---------------------------------------------------------------- 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]
