Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deploy Airflow onto OpenShift with Helm

NotificationsYou must be signed in to change notification settings

opendatahub-io-contrib/airflow-on-openshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Airflow on OpenShift via Helm

Table of Contents

Requirements

  • OpenShift cluster with a project / namespace
  • oc - OpenShift CLI
  • helm

Compatibility

Tested with:

  • Airflow 2.6.2 - 2.7.0
  • OpenShift 4.11+
  • Helm chart 1.10.0

Install

Quickstart

scripts/easy_install.sh

Install Airflow viahelm

# add helm repohelm repo add apache-airflow https://airflow.apache.org# get projectPROJECT=$(oc project -q)# get openshift uid/gid rangeCHART_UID=$(oc get project ${PROJECT} -o jsonpath="{['metadata.annotations.openshift\.io/sa\.scc\.uid-range']}" | sed "s@/.*@@")CHART_GID=$(oc get project ${PROJECT} -o jsonpath="{['metadata.annotations.openshift\.io/sa\.scc\.supplemental-groups']}" | sed "s@/.*@@")echo "UID/GID: ${CHART_UID}/${CHART_GID}"# copy and edit values.yamlcp example_values.yaml values.yaml# edit values.yaml# install via helmhelm upgrade \    --install airflow apache-airflow/airflow \    --namespace ${PROJECT} \    --version 1.10.0 \    --set uid=${CHART_UID} \    --set gid=${CHART_GID} \    --set redis.securityContext.runAsUser=${CHART_UID} \    --values ./values.yaml

Create Routes

# create route for airflowoc create route edge \    --service=airflow-webserver \    --insecure-policy=Redirect \    --port=8080# create route for airflow floweroc create route edge \    --service=airflow-flower \    --insecure-policy=Redirect \    --port=5555# confirm routesoc get routes

References

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp