[
https://issues.apache.org/jira/browse/AIRFLOW-6731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030546#comment-17030546
]
Kamil Bregula commented on AIRFLOW-6731:
----------------------------------------
For ad-hoc solution, you could use pod_mutation_hook
[https://airflow.readthedocs.io/en/latest/kubernetes.html#pod-mutation-hook]
I think, we should support configuration from yaml file:
[https://github.com/apache/airflow/pull/6230/files]
> kubernetes pod_generator: SIDECAR_CONTAINER image name should be configurable
> -----------------------------------------------------------------------------
>
> Key: AIRFLOW-6731
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6731
> Project: Apache Airflow
> Issue Type: Improvement
> Components: executor-kubernetes
> Affects Versions: 1.10.5, 1.10.6, 1.10.7
> Reporter: thierry accart
> Assignee: Daniel Imberman
> Priority: Major
>
> Hi
> Since v1.10.5, as side car container is added to KubernetesPodExecutor with a
> hardcoded image name (initially "python:3.5-alpine", updated to "alpine" with
> no version later.)
> Unfortunately, when running on a private cloud infrastructure not connected
> to internet, using such image name will fail. Moreover, some security
> policies could forbid usage of uncontrolled images.
> I think image name for sidecar containers should be part of airflow
> configuration file.
> ( Source code is airflow/kubernetes/pod_generator.py, see SIDECAR_CONTAINER
> object creation)
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)