- Take me to Practice Test
-
Check the Solution
Details
0 -
Check the Solution
Details
2 -
Check the Solution
Details
local-storage -
Check the Solution
Details
WaitForFirstConsumer -
Check the Solution
Details
portworx-volume -
Check the Solution
Details
NO -
Check the Solution
Details
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: local-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 500Mi storageClassName: local-storage -
Check the Solution
Details
Pending -
Check the Solution
Details
A Pod consuming the volume in not scheduled -
Check the Solution
Details
The Storage Class called local-storage makes use of VolumeBindingMode set to WaitForFirstConsumer. This will delay the binding and provisioning of a PersistentVolume until a Pod using the PersistentVolumeClaim is created. -
Check the Solution
Details
apiVersion: v1 kind: Pod metadata: name: nginx labels: name: nginx spec: containers: - name: nginx image: nginx:alpine volumeMounts: - name: local-persistent-storage mountPath: /var/www/html volumes: - name: local-persistent-storage persistentVolumeClaim: claimName: local-pvc -
Check the Solution
Details
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: delayed-volume-sc provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer