airflow: Airflow not running as root when deployed to k8s via helm
Apache Airflow version: v2.1.2
Deployment: Helm Chart + k8s
What happened:
helm install with values: uid=0 gid=0
Airflow pods must run as root.
error:
from container’s bash:
root@airflow-xxx-scheduler-7f49549459-w9s67:/opt/airflow# airflow
Traceback (most recent call last):
File "/home/airflow/.local/bin/airflow", line 5, in <module>
from airflow.__main__ import main
ModuleNotFoundError: No module named 'airflow'
What you expected to happen: should run as root
using airflow’s helm only
in pod’s describe I see:
securityContext:
fsGroup: 0
runAsUser: 0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (18 by maintainers)
Thanks @jedcunningham !
This reproduces it: