Airflow KubernetesPodOperator: pass securityContext parameter
问题 Anyone could give me an example on passing some parameters as "runAsNonRoot" when creating a pod through KubernetesPodOperator ? I've tried to dig through the documentation but it is not clear. 回答1: At current this does not appear to be supported in the operator. You can see that the KubePodOp has an init that makes a PodGenerator. It then adds all the volumes and mounts to it before generating. This does not at any point call the only method in which you could pass a SecurityContext add_init