k8s-mongodb-cluster icon indicating copy to clipboard operation
k8s-mongodb-cluster copied to clipboard

不能创建suststatefulset.yaml

Open SirBlues opened this issue 5 years ago • 0 comments

error validating "statefulset.yaml": error validating data: [ValidationError(PersistentVolume.spec.nfs.path): invalid type for io.k8s.api.core.v1.NFSVolumeSource.path: got "array", expected "string", ValidationError(PersistentVolume.spec.nfs.server): invalid type for io.k8s.api.core.v1.NFSVolumeSource.server: got "array", expected "string"]; if you choose to ignore these errors, turn validation off with --validate=false

我用的nfs,k8s:1.16

apiVersion: v1 kind: PersistentVolume metadata: name: mongo-prod spec: capacity: storage: 20Gi accessModes: - ReadWriteMany nfs: path: [/data/mongos] server: [ip]

不知道怎么改

SirBlues avatar Jan 16 '20 05:01 SirBlues