PersistentVolumeClaim fails to create on Alicloud Kubernetes
I am trying to create a Dynamic storage volume on Kubernetes in Ali cloud.
First I have created a storage class.
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: alicloud-pv-class
provisioner: alicloud/disk
parameters:
type: cloud_ssd
regionid: cn-beijing
zoneid: cn-beijing-b
Then, tried creating a persistence volume claim as per below.
apiVersion: v1
kind: List
items:
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-pv
spec:
accessModes:
- ReadWriteOnce
storageClassName: alicloud-pv-class
resources:
requests:
storage: 64Mi
Creation of persistence volume fails with the following error.
Warning ProvisioningFailed 0s alicloud/disk alicloud-disk-controller-68dd8f98cc-z6ql5 5ef317c7-f110-11e8-96de-0a58ac100006 Failed to provision volume with StorageClass "alicloud-pv-class": Aliyun API Error: RequestId: 7B2CA409-3FDE-4BA1-85B9-80F15109824B Status Code: 400 Code: InvalidParameter Message: The specified parameter "Size" is not valid.
I am not sure where this Size parameter is specified. Did anyone come across a similar problem?
add a comment |
I am trying to create a Dynamic storage volume on Kubernetes in Ali cloud.
First I have created a storage class.
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: alicloud-pv-class
provisioner: alicloud/disk
parameters:
type: cloud_ssd
regionid: cn-beijing
zoneid: cn-beijing-b
Then, tried creating a persistence volume claim as per below.
apiVersion: v1
kind: List
items:
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-pv
spec:
accessModes:
- ReadWriteOnce
storageClassName: alicloud-pv-class
resources:
requests:
storage: 64Mi
Creation of persistence volume fails with the following error.
Warning ProvisioningFailed 0s alicloud/disk alicloud-disk-controller-68dd8f98cc-z6ql5 5ef317c7-f110-11e8-96de-0a58ac100006 Failed to provision volume with StorageClass "alicloud-pv-class": Aliyun API Error: RequestId: 7B2CA409-3FDE-4BA1-85B9-80F15109824B Status Code: 400 Code: InvalidParameter Message: The specified parameter "Size" is not valid.
I am not sure where this Size parameter is specified. Did anyone come across a similar problem?
add a comment |
I am trying to create a Dynamic storage volume on Kubernetes in Ali cloud.
First I have created a storage class.
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: alicloud-pv-class
provisioner: alicloud/disk
parameters:
type: cloud_ssd
regionid: cn-beijing
zoneid: cn-beijing-b
Then, tried creating a persistence volume claim as per below.
apiVersion: v1
kind: List
items:
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-pv
spec:
accessModes:
- ReadWriteOnce
storageClassName: alicloud-pv-class
resources:
requests:
storage: 64Mi
Creation of persistence volume fails with the following error.
Warning ProvisioningFailed 0s alicloud/disk alicloud-disk-controller-68dd8f98cc-z6ql5 5ef317c7-f110-11e8-96de-0a58ac100006 Failed to provision volume with StorageClass "alicloud-pv-class": Aliyun API Error: RequestId: 7B2CA409-3FDE-4BA1-85B9-80F15109824B Status Code: 400 Code: InvalidParameter Message: The specified parameter "Size" is not valid.
I am not sure where this Size parameter is specified. Did anyone come across a similar problem?
I am trying to create a Dynamic storage volume on Kubernetes in Ali cloud.
First I have created a storage class.
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: alicloud-pv-class
provisioner: alicloud/disk
parameters:
type: cloud_ssd
regionid: cn-beijing
zoneid: cn-beijing-b
Then, tried creating a persistence volume claim as per below.
apiVersion: v1
kind: List
items:
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-pv
spec:
accessModes:
- ReadWriteOnce
storageClassName: alicloud-pv-class
resources:
requests:
storage: 64Mi
Creation of persistence volume fails with the following error.
Warning ProvisioningFailed 0s alicloud/disk alicloud-disk-controller-68dd8f98cc-z6ql5 5ef317c7-f110-11e8-96de-0a58ac100006 Failed to provision volume with StorageClass "alicloud-pv-class": Aliyun API Error: RequestId: 7B2CA409-3FDE-4BA1-85B9-80F15109824B Status Code: 400 Code: InvalidParameter Message: The specified parameter "Size" is not valid.
I am not sure where this Size parameter is specified. Did anyone come across a similar problem?
asked Nov 26 '18 at 7:30
ygnrygnr
409
409
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
As pointed out in the docs, the minimum size for SSD is 20Gi, so I'd suggest to change storage: 64Mi to storage: 20Gi to fix it.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53476478%2fpersistentvolumeclaim-fails-to-create-on-alicloud-kubernetes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As pointed out in the docs, the minimum size for SSD is 20Gi, so I'd suggest to change storage: 64Mi to storage: 20Gi to fix it.
add a comment |
As pointed out in the docs, the minimum size for SSD is 20Gi, so I'd suggest to change storage: 64Mi to storage: 20Gi to fix it.
add a comment |
As pointed out in the docs, the minimum size for SSD is 20Gi, so I'd suggest to change storage: 64Mi to storage: 20Gi to fix it.
As pointed out in the docs, the minimum size for SSD is 20Gi, so I'd suggest to change storage: 64Mi to storage: 20Gi to fix it.
answered Nov 26 '18 at 10:53
Michael HausenblasMichael Hausenblas
6,44622243
6,44622243
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53476478%2fpersistentvolumeclaim-fails-to-create-on-alicloud-kubernetes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown