Useful Resources: Persistent Volumes Claim , Pod to Use a PV
题干
For this question, please set this context (In exam, diff cluster name)
kubectl config use-context kubernetes-admin@kubernetes
A Kubernetes pod definition file named nginx-pod-cka.yaml
is available. Your task is to make the following modifications to the manifest file:
- Create a Persistent Volume Claim (PVC) with the name
nginx-pvc-cka
. This PVC should request80Mi
of storage from an existing Persistent Volume (PV) named nginx-pv-cka and Storage Class namednginx-stc-cka
. Use the access modeReadWriteOnce
. - Add the created
nginx-pvc-cka
PVC to the existingnginx-pod-cka
POD definition. - Mount the volume claimed by
nginx-pvc-cka
at the path/var/www/html
within thenginx-pod-cka
POD. - Add tolerations with the key
node-role.kubernetes.io/control-plane
set toExists
and effectNoSchedule
to