Zookeeper Pods在AWS EKS部署strimzi的sample kafka-persistent-single.yaml时处于挂起状态。

huangapple go评论69阅读模式
英文:

Zookeeper Pods are in pending state when strimzi's sample kafka-persistent-single.yaml is deployed in AWS EKS

问题

我正在使用0.33版本的Strimzi在AWS EKS上,配合Kubernetes 1.24版本。

尝试部署kafka-persistent-single.yaml时,zookeeper pods 处于挂起状态。存储类显示为gp2。

Pod中的事件显示:

运行PreBind插件"VolumeBinding":绑定卷:PVC"data-my-cluster-zookeeper-0"的配置失败

PVC中的事件显示:

等待卷被创建,可以是由外部供应程序"ebs.csi.aws.com"创建,或者由系统管理员手动创建

然而,kafka-ephemeral-single.yaml正常运行。这种情况需要进行哪些配置?

英文:

I am using 0.33 strimzi in AWS EKS with kubernetes 1.24 version.
When I try to deploy kafka-persistent-single.yaml the zookeeper pods are in pending state. Storage class showing as gp2.

Events in pod says

running PreBind plugin "VolumeBinding": binding volumes: provisioning failed for PVC "data-my-cluster-zookeeper-0"

Events in PVC says

waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator

However kafka-ephemeral-single.yaml works fine. What is the provision to be done for this?

答案1

得分: 1

The kafka-persistent-single.yaml 使用需要由您或您的集群进行预配的持久存储。它使用持久卷声明和存储类机制来实现。Kubernetes 事件表明存储提供程序未创建它。这可能有多种原因:存储类错误、提供程序出现问题、AWS 帐户出现问题,如遇到某些限制等。因此,您应该在这里查看更多详细信息和日志。

kafka-ephemeral-single.yaml 使用emptyDir 存储。因此,它不需要预配任何持久磁盘(但它也不提供任何可靠性,并且仅适用于短暂的临时集群,如 CI、集成测试或开发等)。这就是它能正常工作的原因。

英文:

The kafka-persistent-single.yaml uses persistent storage which has to be provisioned by you or your cluster. It uses the Persistent volume Claims and Storage class mechanism to do so. The Kubernetes events suggest that the storage provisioner didn't create it. This could have variety of reasons: Wrong storage class, some issues with the provisioner, some issues with your AWS account such as running into some limits etc. So that is where you should check for more details and logs.

kafka-ephemeral-single.yaml is using the emptyDir storage. So it does not need any proper persistent disks to be provisioned (but it also does not offer any kind of reliability and is suitable only for shortlived ephemeral clusters such as CIs, integration tests or development etc.). That is why it works.

huangapple
  • 本文由 发表于 2023年2月18日 01:09:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/75487295.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定