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.