在AWS上动态配置卷时发出问题,Kubernetes

时间:2017-07-11 06:23:12

标签: amazon-web-services kubernetes

我正在尝试按照本教程在AWS上使用kubernetes创建Galera集群,但我发现卷的动态配置失败,这是我在kube-controller-manager.log中看到的错误

0711 06:12:21.065942       6 aws_ebs.go:434] Provision failed: claim.Spec.Selector is not supported for dynamic provisioning on AWS
I0711 06:12:21.066003       6 pv_controller.go:1312] failed to provision volume for claim "default/mysql-datadir-galera-ss-1" with StorageClass "gp2": claim.Spec.Selector is not supported for dynamic provisioning on AWS
E0711 06:12:21.065942       6 aws_ebs.go:434] Provision failed: claim.Spec.Selector is not supported for dynamic provisioning on AWS
I0711 06:12:21.066227       6 pv_controller.go:1312] failed to provision volume for claim "default/mysql-datadir-galera-ss-0" with StorageClass "gp2": claim.Spec.Selector is not supported for dynamic provisioning on AWS
E0711 06:12:21.066006       6 aws_ebs.go:434] Provision failed: claim.Spec.Selector is not supported for dynamic provisioning on AWS
I0711 06:12:21.066303       6 pv_controller.go:1312] failed to provision volume for claim "default/mysql-datadir-galera-ss-2" with StorageClass "gp2": claim.Spec.Selector is not supported for dynamic provisioning on AWS

我不确定有什么问题,它使用的是'gp2'类型的默认存储类。对此有何建议?

1 个答案:

答案 0 :(得分:1)

看起来像配置问题,“claim.Spec.Selector”不应该在AWS的StorageClass / PVC yaml中设置。