r/KubernetesCerts • • 1d ago

CKA Kubectl explain problem

Hello i have a problem i had some certs, ansible, podman etc. It was easy, but how can i know to use kubectl explain? Can someone explain me? I don't know how to preserve the structure of the lines, indentations, etc. To be host i know that i should use kubectl explain pod /rs etc. and kubectl explain pod.apiVersion etc, but in practice? I want to understand it. I want to pass CKA

0 Upvotes

3 comments sorted by

2

u/dmitryaus 1d ago

If you're asking questions like this on Reddit rather than experimenting with kubectl explain in a lab environment, it might be an indication that you're not quite ready for the CKA. The ability to independently explore, troubleshoot and understand Kubernetes documentation is a fundamental skill the exam expects you to have.

1

u/amine250 1d ago

Respectfully, did you ask ChatGPT ?

1

u/Regular_List6034 kubestronaut 23h ago

I used kubectl explain when kubernetes.io doesn’t mention a field name in the sample code.

What you described makes it sound like you don’t know how to write YAML. In that case, it’s not a kubectl explain problem, but it’s a YAML problem. kubectl explain is not a YAML linting tool.

If you know Ansible, you should know how to write YAML tho. I’d suggest learning how to work with YAML first….