Doubt in qn 5 ll-1

question: 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.

solution : ```
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-alpha-pvc
namespace: alpha
spec:
accessModes:

  • ReadWriteOnce
    resources:
    requests:
    storage: 1Gi
    storageClassName: slow

1) where are we specifying the path  `/var/lib/mysql` and the env variable MYSQL_ALLOW_EMPTY_PASSWORD=1` in the solution we are just simply creating a pvc how does it fulfill the question.

Hello @ajey

If you get the YAML file of the specified deployment, you will find the mount path and env variable mentioned but the issue that the pvc is not existing so you have to create it using the YAML you mentioned above

$ kubectl get deployments.apps -n alpha alpha-mysql -o yaml > depl.yaml
$ cat depl.yaml

Can i have this question answer please

Note:- Please check storage should be 1GB because PV is having 1GB we PVC can’t be more than that