Hello ... In the lightning lab i am not able to fix below issue... can someone p . . .

Rustam:
Hello …
In the lightning lab i am not able to fix below issue… can someone please suggest what exactly needs to be done for below 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.

Important: Do not alter the persistent volume.

Trinetra S:

  1. First fix the pv volume and claim see if properly bound basically the attributes of pvc should match with pv
  2. Check if correct claim name is used in ur deployment manifests file…

Trinetra S:
Always a good starting point is to check the pods logs

Trinetra S:
No use full information check the main contaier logs on which the node the pods are scheduled!

Rustam:
ok my pvc is not getting bound to pv… somethign to do with storage class… what should be the default provisioner for storage class ?

Andrej Kohut:
u need to check that kind of storage class it is being used by PV,
the same needs to be set on PVC, along with other specification, RWO or RWX, or other, size
if there is empty/none storage class on PV, it must be also empty on PVC, or it will not bind to it

Then u add the PVC specification to POD and it should work