织梦CMS - 轻松建站从此开始!

abg欧博官网|登陆|游戏|

Required value: must specify a volume type when s

时间:2025-07-21 16:01来源: 作者:admin 点击: 9 次
Trying to statically provision a PV with GCP SSD storage. Errors out with the following message: The PersistentVolume "monitoring" is invalid: spec:

Trying to statically provision a PV with GCP SSD storage. Errors out with the following message:

The PersistentVolume "monitoring" is invalid: spec: Required value: must specify a volume type

Steps to reproduce:

$ cat storage.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ssd provisioner: kubernetes.io/gce-pd parameters: type: pd-ssd reclaimPolicy: Retain $ kubectl apply -f storage.yaml storageclass.storage.k8s.io/ssd created $ cat pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: monitoring spec: storageClassName: ssd capacity: storage: 50Gi persistentVolumeReclaimPolicy: Retain accessModes: - ReadWriteOnce $ kubectl apply -f pv.yaml The PersistentVolume "monitoring" is invalid: spec: Required value: must specify a volume type

Kubernetes version:

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.6-gke.10", GitCommit:"aaf0906400b5fc1d858ce0566a571e4f3ed06b9f", GitTreeState:"clean", BuildDate:"2019-03-30T19:30:48Z", GoVersion:"go1.10.8b4", Compiler:"gc", Platform:"linux/amd64"}

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-08-23 17:08 最后登录:2025-08-23 17:08
栏目列表
推荐内容