k8s-mongodb-cluster
k8s-mongodb-cluster copied to clipboard
不能创建suststatefulset.yaml
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]
不知道怎么改