[英]kubernetes-helm: formating do-block-storage with xfs format
i am trying to create mongodb-replicaset with kubernetes-helm on digitalocean using do-block-storage. 我正在尝试使用do-block-storage在digitalocean上用kubernetes-helm创建mongodb-replicaset。 since mongodb recommended to use xfs format, i try to format do-block-storage with xfs using configuration like below, but it seem didn't work.
由于mongodb建议使用xfs格式,因此我尝试使用如下配置使用xfs格式化do-block-storage,但似乎不起作用。 can you help?
你能帮我吗? thank you.
谢谢。
persistentVolume:
enabled: true
## mongodb-replicaset data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: "do-block-storage"
accessModes:
- ReadWriteOnce
size: 10Gi
parameters:
fsType: xfs
annotations: {}
There are two issues with your custom parameters (values.yaml): 自定义参数(values.yaml)有两个问题:
volumeClaimTemplates: - metadata: name: datadir annotations: spec: accessModes: - "ReadWriteOnce" resources: requests: storage: "10Gi" storageClassName: "do-block-storage"
I can see two possible workarounds for your issue: 对于您的问题,我可以看到两种可能的解决方法:
kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: do-block-storage-xfs namespace: kube-system annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: com.digitalocean.csi.dobs parameters: fstype: xfs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.