kubectl create namespace airflow\ #네임스페이스 airflow 만들기
kubectl apply -f pv.yaml\ #pv 등록
kubectl apply -f pvc.yaml -n airflow #pvc 등록 pv와 다르게 네임스페이스를 적용시켜줘야함
4. ariflow Helm chart 실행및 values.yaml 불러오기
#helm chart 실행
helm upgrade --install airflow apache-airflow/airflow --namespace airflow
#values.yaml 파일 불러오기
helm get values airflow > values.yaml
5. values.yaml 수정 및 적용
#이 부분들 찾아서 수정
executor: "KubernetesExecutor"
dags:
persistence:
enabled: true
storageClassName: local-storage
# access mode of the persistent volume
accessMode: ReadWriteOnce
## the name of an existing PVC to use
existingClaim: airflow-local-dags-folder
#변경사항 적용
helm upgrade -f values.yaml airflow apache-airflow/airflow -n airflow
6. 결과 확인
#localhost:8080에 연결
kubectl port-forward svc/airflow-webserver 8080:8080 -n airflow