我有一个有状态的卡夫卡集。我需要扩大磁盘大小,我尝试使用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 conditionFileSystemResizePending
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/