说明
Apache Airflow按照官网文档部署后,无法跨集群访问web界面。采用以下方法解决。
配置
文件airflow-nodeport.yaml
bash
apiVersion: v1
kind: Service
metadata:
name: airflow-ui-nodeport
namespace: airflow
spec:
type: NodePort
selector:
tier: airflow
component: api-server
ports:
- port: 8080
targetPort: 8080
# nodePort: 30880 # 外部访问端口
部署
bash
kubectl apply -f airflow-nodeport.yaml -n airlfow