You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/18 10:17:07 UTC

[GitHub] [airflow] potiuk edited a comment on issue #17679: Airflow not running as root when deployed to k8s via helm

potiuk edited a comment on issue #17679:
URL: https://github.com/apache/airflow/issues/17679#issuecomment-900994751


   Before I reopen it, I need to know what error do you have when you configure user as root and what kind of modifications you've made. 
   
   I think you could have jumped to conclusion that it does not work. If you enter the container via "/bin/bash"  you will indeed get this error. But you should only enter the bash image via Airflow's image /entrypoint not via `/bin/bash`. This is the only way that can make it openshift-compatible and allow to run airflow as arbitrary user (including root). You can see more what the entrypoint is doing in https://airflow.apache.org/docs/docker-stack/entrypoint.html
   
   `docker run -it <airflow_image> bash` as parameter will allow you to enter bash and utilising the entrypoint in the way that root user works (and all containers in the Helm Chart should use it).
   


-- 
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