got a question about using the documentation
apiVersion: v1 kind: PersistentVolumeClaim metadata: <...> spec: <...> resources: requests: storage: 3Gi
^ here’s the YAML for a PVC. I need to specify 50Mi of storage on the PVC for which the syntax is like:
spec: resources: requests: storage: 50Mi
Before extensive googling I wasn’t sure how to do the above so I tried using
k explain PersistentVolumeClaim.spec.resources
which gives me this:
FIELDS: limits <map[string]string> requests <map[string]string>
ok so I know that I need:
spec: resources: requests: <SOMETHING>
This documentation says that requests is a map of
string:string but it doesn’t tell me what the available options are and it definitely doesn’t seem to tell me that I need:
storage: in there.
k explain PersistentVolumeClaim.spec.resources.requests doesn’t seem to say that I need
how can I tell, from the
k explain response, what I’m meant to put inside
spec.resources.requests ? What goes inside
spec.resources.limts? and how can I tell from the docs?
I know that I can just google things until I find I example but that’s slow and might not always work.
*I want to know how I can use the docs to know what to put inside