我在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?
谢谢
答案 0 :(得分:1)
我运行头盔时没有任何问题:
> 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