Google Kubernetes Engine无法动态配置卷

时间:2018-12-24 08:17:41

标签: google-cloud-platform google-kubernetes-engine

我正在尝试获取有关GKE的持久卷声明,并且根据我的理解,无论使用WARNING 2018-12-25 02:30:57,939 Method Not Allowed: /member/login/ WARNING 2018-12-25 02:30:57,940 "{"username":"superuser","password":"pass1234"}POST /member/login/ HTTP/1.1" 405 95 WARNING 2018-12-25 02:30:58,603 Method Not Allowed: /member/login/ WARNING 2018-12-25 02:30:58,603 "{"username":"superuser","password":"pass1234"}POST /member/login/ HTTP/1.1" 405 95 WARNING 2018-12-25 02:30:59,684 Method Not Allowed: /member/login/ WARNING 2018-12-25 02:30:59,685 "{"username":"superuser","password":"pass1234"}POST /member/login/ HTTP/1.1" 405 95 存储类还是建议的standard存储类,我都应该配置好磁盘,但是我已经等待了30分钟且未配置磁盘 enter image description here

我的存储类是文档中的类 enter image description here

此外,我尝试了两种方法

使用fast

faster

kind: PersistentVolumeClaim apiVersion: v1 metadata: name: postgres-pv-claim2 labels: app: postgres spec: storageClassName: faster accessModes: - ReadWriteMany resources: requests: storage: 30Gi

standard

已经很长时间了,我不认为这些卷会自动配置,我会丢失什么?

1 个答案:

答案 0 :(得分:0)

您需要将“ accessModes”更改为任何Access Modes,而不是“ ReadWriteMany”。 GCE永久磁盘不支持“ ReadWriteMany”访问模式。 您还可以运行以下命令:

Kubectl describe [Persistent Volume Claim NAME]

这将向您显示为什么它创建失败。