Deploy Apache Airflow with Azure Kubernetes Services — 3

Liangjun Jiang
1 min readJan 30, 2020

--

We are getting close to finish this series.

## Mount a Shared Persistent Volume

I would recommend using this document: [Dynamically create and use a persistent volume with Azure Files in Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv) to understand more.

In short, you will use `install-azure-file-storage.md` in this repo to get your started.

## step 1

run `azure-file-sc.yaml` to create *kubernetes storage class*

## step 2

run `azure-pvc-roles.yaml` to create *cluster role and binding*

## step 3

run `azure-file-pvc.yaml` to create a *persistent volumn claim*

## step 4

run

```

kubectl get pvc azurefile

```

to view the status of the PVC

````

$ kubectl get pvc azurefile

| — — — | — — — — — — | — — — — — — — — — — — — — — — — — — — — — | — — — — — | — — — — — — — | — — — — — — — | — — -|

|NAME | STATUS| VOLUME | CAPACITY | ACCESS MODES | STORAGECLASS | AGE|

|azurefile | Bound | pvc-8436e62e-a0d9–11e5–8521–5a8664dc0477 | 5Gi | RWX | azurefile | 5m |

```

Then, open the `values.yaml` file, change line `372` to `storageClass: azurefile`. `azurefile` is what you defined `azure file class` name.

That’s it.

Once again, the repo is at here: git@github.com:loftyet/helm-airflow-with-azure-kubernets-service.git

--

--

No responses yet