KubernetesPodOperator Pod Lifecycle

KubernetesPodOperator Pod Lifecycle An architecture diagram generated by Archify. Airflow worker · kpo_smoke.run_smoke · Architecture component Airflow worker kpo_smoke.run_smoke Execution API · Task SDK / supervisor · Architecture component Execution API Task SDK / supervisor KubernetesPodOperator · Build / observe workload Pod · Architecture component KubernetesPodOperator Build / observe workload Pod Workload Pod · airflow-workloads namespace · Architecture component · task pod Workload Pod airflow-workloads namespace task pod Workload ServiceAccount · workload-smoke; AWS role optional · Architecture component Workload ServiceAccount workload-smoke; AWS role optional Kubernetes placement · Optional NodePool constraints · Architecture component Kubernetes placement Optional NodePool constraints Template + merge + Kubernetes API runs as scheduled onto completion status Task state via supervisor Legend Frontend Backend Cloud Security

Pod configuration

  • • Lists may append; empty values may inherit
  • • Inspect dry_run and admitted pod

Placement

  • • Match selectors and tolerations to real nodes
  • • Account for capacity and interruption

Separate identities

  • • Airflow caller needs Kubernetes permissions
  • • Workload AWS access requires explicit setup