我按照k8s官方文档,用kubeadm安装好了k8s,创建正常的无状态应用是ok的,集群没有配置storageclass。
ES官网文档地址: guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html然后我按照上面ECK文档部署quickstart例子,pod一直是pending状态,提示:
no persistent volumes available for this claim and no storage class is set
然后我就按照k8s官方文档安装了local storageclass,然后设置成default。
再次部署以后还是一直卡着,提示是这样
ECK官方文档里的quickstart例子很简单,文档里也没有提到默认的存储应该配置成什么样,我上面的配置有什么问题吗?
ES官网文档地址: guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html然后我按照上面ECK文档部署quickstart例子,pod一直是pending状态,提示:
no persistent volumes available for this claim and no storage class is set
然后我就按照k8s官方文档安装了local storageclass,然后设置成default。
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
再次部署以后还是一直卡着,提示是这样
# kubectl get events
LAST SEEN TYPE REASON OBJECT MESSAGE
3m44s Normal WaitForPodScheduled persistentvolumeclaim/elasticsearch-data-quickstart-es-default-0 waiting for pod quickstart-es-default-0 to be scheduled
23m Normal WaitForFirstConsumer persistentvolumeclaim/elasticsearch-data-quickstart-es-default-0 waiting for first consumer to be created before binding
ECK官方文档里的quickstart例子很简单,文档里也没有提到默认的存储应该配置成什么样,我上面的配置有什么问题吗?
1 个回复
wangxinrong
赞同来自: