Hi @Mumshad Mannambeth @unnivkn all.. This is w.r.t practice question 5 around . . .

Ashwin Dora:
Hi @Mumshad Mannambeth @unnivkn all… This is w.r.t practice question 5 around PVC in the lighteningLab . ‘A new deployment called alpha-mysql has been deployed in the alpha namespace. However, the pods are not running. Troubleshoot and fix the issue. The deployment should make use of the persistent volume alpha-pv to be mounted at /var/lib/mysql and should use the environment variable MYSQL_ALLOW_EMPTY_PASSWORD=1 to make use of an empty root password.’ … I created the PVC with the right namespace and storage class name but it fails complaining storage class not found. Trying to understand the error/problem. Please find the snapshots below. Any clues
image.png
image.png

unnivkn:
Could you please try again from scratch… Important: Do not alter the persistent volume. please don’t delete any PV, PVC or SC in between. k get pv,pvc,sc
kubectl get deployments.apps -n alpha
kubectl -n alpha describe pod alpha-mysql-XXXXXXXXX-XXXXX

Ashwin Dora:
@unnivkn figured out the problem . I had created a pvc in default namespace and then released and tried to recreate in alpha namespace but the pv policy doesnt allow it. Now i did it right so its working . Thankyou

1 Like