amazon-ec2 - 在k8s 1.9上扩展statefulset的PVC大小

标签 amazon-ec2 kubernetes aws-ebs

我有一个有状态的卡夫卡集。我需要扩大磁盘大小,我尝试使用k8s 1.9的自动调整大小功能但没有成功

这里:https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims

我确实激活了功能门和准入插件,我认为这是有效的,因为我可以在修改后成功更改 PVC 的大小。

但是什么也没发生,我已经将 PVC 的大小从 50Gi 修改为 250Gi。

pvc 中各处的容量确实发生了变化,但在 AWS 上没有变化,EBS 卷仍然是 50gb,pod 中的 df -h 仍然显示 50gb

我错过了什么吗?我必须在 aws 上手动调整大小吗?

谢谢

最佳答案

这是一个 alpha 功能,有一些问题和限制。

尝试在 Github 上查找与您的问题相关的问题信息:

另外,请检查 comment ,它可能很有用:

@discordianfish please try EBS PVC resize with 1.10. Currently the user experience of resizing volumes with file systems is not ideal. You will have to edit the pvc and then wait for FileSystemResizePending condition to appear on PVC and then delete and recreate the pod that was using the PVC. If there was no pod using the PVC, then once condition FileSystemResizePending appears on PVC then you will have to start a pod using it for file system resize to finish.

关于amazon-ec2 - 在k8s 1.9上扩展statefulset的PVC大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50497513/

相关文章:

amazon-web-services - CloudFormation 模板不选择 key 对

kubernetes - kubectl apply 与 kubectl create?

amazon-web-services - 安全删除 cloudformation 堆栈中的 EBS 卷

amazon-ec2 - 连接到 AWS 上的 Windows Server 服务总线

hadoop - AWS EMR 验证错误

kubernetes - 来自服务器的错误 (BadRequest) : pod kubia-zgxn9 does not have a host assigned

kubernetes - 节点状态在高资源需求 pod 上变为未知

amazon-web-services - 创建 AWS 服务器、框架和配置的模板/镜像

python - 如何在 AWS EC2 服务器上启动时运行命令(python 文件)

kubernetes - Helm,Promethus:在EC2实例上使用数据/默认目录安装Prometheus