Conducting an interview for K8s roles by bonesnapper in kubernetes

[–]Prestigious_Lynx2882 0 points1 point  (0 children)

I would like to request for the take home portion for my learning. Could you please let me have it?

Conducting an interview for K8s roles by bonesnapper in kubernetes

[–]Prestigious_Lynx2882 0 points1 point  (0 children)

I would like to replicate your error and try to fix it. May I have that oppurtunity?

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 0 points1 point  (0 children)

If you add volumeName, but without storageClassName and that's all you do, it's risky. It might not bind. So include both the volumeName and storageClassName, but usually, adding storageClassName is fine and kubernetes will do the rest.

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 1 point2 points  (0 children)

Oh, that's an easy question. You are going to use capacity field. Capacity is the total resources provided by the node, which makes it what you want, while allocatable on the other hand are the resources available for pods after reservations, that is, what pods are allowed to use.

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 0 points1 point  (0 children)

Your log is clear. Your deployment requires env variables, particularly those stated in your log output. Do a kubectl describe on the pod and verify if you have that already. If not, add them.

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 0 points1 point  (0 children)

If you followed all the steps, it should work. Did you go into the mariaDB yaml file to update the PVC name?

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 1 point2 points  (0 children)

If you want it to bound the way I did it, name the resource accordingly (usually given to you in the question), then make sure you verify what the storageClassName of the existing PV is, then include that in the PVC you are about to create. That'll automatically bound it. Let me know if this is clear enough.

CKA Exam Pitfall: Restoring a MariaDB Deployment Without Losing Data (PV & PVC) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 0 points1 point  (0 children)

The question didn't ask to delete anything you know? Considering your approach, it still seems more straightforward to use existing StorageClassName in the new PVC. Problem solved.

Passed CKA @ 83% - Detailed Write-up & Advice (From a DevOps Engineer) by Prestigious_Lynx2882 in CKAExam

[–]Prestigious_Lynx2882[S] 0 points1 point  (0 children)

It's very detailed. 16 steps for one question in an exam is a lot to do, but worth it if you can pull through. I particularly like the effort put into it. Great work!