【问题标题】:getting pod has unbound immediate PersistentVolumeClaims with airflow helm2 chart使用气流 helm2 图表获取 pod 具有未绑定的即时 PersistentVolumeClaims
【发布时间】:2020-08-31 23:17:03
【问题描述】:

我的笔记本电脑上有一个在 3 个节点上运行 vagrants 的 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 pod 上收到“pod has unbound immediate PersistentVolumeClaims”。

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

但我不知道如何解决它,因为我无法更改依赖项配置?

谢谢

【问题讨论】:

  • 你能运行 kubectl get events -n namespace_name

标签: postgresql kubernetes airflow kubernetes-helm


【解决方案1】:

我运行 helm install 没有任何问题:

> 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。

参考:https://github.com/bitnami/charts/blob/master/bitnami/airflow/values.yaml#L9

【讨论】:

    猜你喜欢
    • 2022-10-18
    • 2020-12-27
    • 1970-01-01
    • 2020-12-19
    • 2021-01-06
    • 2019-12-07
    • 2019-03-11
    • 2020-11-03
    • 2021-04-07
    相关资源
    最近更新 更多