获取包具有未绑定的具有气流helm2图表的PersistentVolumeClaims

问题描述 投票:1回答:1

我在3个节点上有一个k8s集群,在我的笔记本电脑中游荡着]

我正在关注本教程:https://docs.bitnami.com/tutorials/deploy-apache-airflow-kubernetes-helm/

在第二个命令处:

helm install myrelease bitnami/airflow 
--set airflow.cloneDagFilesFromGit.enabled=true 
--set airflow.cloneDagFilesFromGit.repository=REPOSITORY_URL  
--set airflow.cloneDagFilesFromGit.branch=master 
--set airflow.baseUrl=http://127.0.0.1:8080 

我在myrelease-postgresql-0吊舱上收到“吊舱具有未绑定的即时PersistentVolumeClaims”。

我可以看到postgresql是一个依赖项:https://github.com/astronomer/airflow-chart/blob/master/requirements.yaml

但是我不知道如何解决它,因为我没有可能更改依赖项conf?

谢谢

postgresql kubernetes airflow kubernetes-helm
1个回答
0
投票

我运行头盔安装时没有任何问题:

> helm list
NAME        NAMESPACE   REVISION    UPDATED                                 STATUS      CHART           APP VERSION
myrelease   kafka       1           2020-05-18 12:34:17.448554945 +0530 IST deployed    airflow-6.2.2   1.10.10

> kubectl get pv,pvc -n kafka
NAME                                                        CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                       STORAGECLASS   REASON   AGE
persistentvolume/pvc-dedbb5f6-844d-4e34-8eae-21e8187afd24   8Gi        RWO            Delete           Bound    kafka/data-myrelease-postgresql-0           local-path              2m12s
persistentvolume/pvc-22222462-1a42-476a-a5dc-5fd0dc6a6e6b   8Gi        RWO            Delete           Bound    kafka/redis-data-myrelease-redis-slave-0    local-path              2m10s
persistentvolume/pvc-c1c216a3-92e6-4c88-bd1c-670fe25c3c12   8Gi        RWO            Delete           Bound    kafka/redis-data-myrelease-redis-master-0   local-path              2m10s
persistentvolume/pvc-535672be-64c0-4551-99b0-9cc0ca8fbbd1   8Gi        RWO            Delete           Bound    kafka/redis-data-myrelease-redis-slave-1    local-path              83s

NAME                                                        STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
persistentvolumeclaim/data-myrelease-postgresql-0           Bound    pvc-dedbb5f6-844d-4e34-8eae-21e8187afd24   8Gi        RWO            local-path     2m19s
persistentvolumeclaim/redis-data-myrelease-redis-slave-0    Bound    pvc-22222462-1a42-476a-a5dc-5fd0dc6a6e6b   8Gi        RWO            local-path     2m19s
persistentvolumeclaim/redis-data-myrelease-redis-master-0   Bound    pvc-c1c216a3-92e6-4c88-bd1c-670fe25c3c12   8Gi        RWO            local-path     2m19s
persistentvolumeclaim/redis-data-myrelease-redis-slave-1    Bound    pvc-535672be-64c0-4551-99b0-9cc0ca8fbbd1   8Gi        RWO            local-path     92s

我相信您可能没有storageClass为PostgreSQL pod所请求的PV设置PVC。

© www.soinside.com 2019 - 2024. All rights reserved.