Difference between revisions of "The PersistentVolumeClaim XXX is invalid"

From wikieduonline
Jump to navigation Jump to search
Line 24: Line 24:
  
  
 +
 +
* {{PVC}}
 
== See also ==
 
== See also ==

Revision as of 12:33, 15 January 2024

The PersistentVolumeClaim "yoursstorage" is invalid: 
* spec: Forbidden: spec is immutable after creation except resources.requests for bound 
claims
  core.PersistentVolumeClaimSpec{
        AccessModes: {"ReadWriteOnce"},
        Selector:    nil,
        Resources: core.ResourceRequirements{
                Limits: nil,
-                Requests: core.ResourceList{
-                       s"storage": {i: resource.int64Amount{value: 1073741824}, s: "1Gi", 
Format: "BinarySI"},
-               },
+               Requests: core.ResourceList{
+                       s"storage": {i: resource.int64Amount{value: 5368709120}, s: "5Gi", 
Format: "BinarySI"},
+               },
        },
        VolumeName:       "",
        StorageClassName: &"yourclassname",
        ... // 3 identical fields
  }

* spec.resources.requests.storage: Forbidden: field can not be less than previous value


See also

Advertising: