The Gold storage policy has been assigned to the Web namespace, and the DevOps engineer wants to place a persistent volume for the Web application in the Gold storage class.
How should this goal be accomplished?
The Gold storage policy has been assigned to the Web namespace, and the DevOps engineer wants to place a persistent volume for the Web application in the Gold storage class.
How should this goal be accomplished?
To place a persistent volume for the Web application in the Gold storage class, the Gold storage class should be indicated in the persistent volume claim specification. In Kubernetes, the storage class is specified in the persistent volume claim (PVC) to ensure the persistent volume (PV) uses the desired storage class. This allows the PVC to request a PV that matches the specified storage class, in this case, the Gold storage class.
A. Indicate the Gold storage class in the persistent volume claim specification https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.5/vmware-tanzu-kubernetes-grid-15/GUID-tanzu-k8s-clusters-storage.html
Storage Classes are specified within the PVC YAML definition.
Storage Classes are defined on the PVCs
Storage Classes are related to PVC in K8S
C. Indicate the Gold storage class in the persistent volume specification. In Kubernetes, you specify the storage class in the persistent volume (PV) specification, not in the persistent volume claim (PVC) specification. The PV represents the actual storage resource, and you can define its storage class in its specification to ensure it uses the desired class, in this case, the Gold storage class.
https://itnext.io/kubernetes-tip-how-to-use-the-storageclass-attribute-75cf47e7c6b0
Agree with A