CKA · Question #64
You must connect to the correct host. Failure to do so may result in a zero score. [candidate@base] $ ssh cka000059 Task Verify the cert-manager application has been deployed to your cluster . Using k
Task Summary You need to: SSH into the correct node: cka000055 Use kubectl to list all cert-manager CRDs, and save that list to ~/resources.yaml Do not use any output format flags like -o yaml Extract the documentation for the spec.subject field of the Certificate custom resource
Question
Exhibit
Explanation
Task Summary You need to: SSH into the correct node: cka000055 Use kubectl to list all cert-manager CRDs, and save that list to ~/resources.yaml Do not use any output format flags like -o yaml Extract the documentation for the spec.subject field of the Certificate custom resource and save it to ~/subject.yaml
Step-by-Step Instructions Step 1: SSH into the node ssh cka000055 Step 2: List cert-manager CRDs and save to a file First, identify all cert-manager CRDs: kubectl get crds | grep cert-manager Then extract them without specifying an output format: kubectl get crds | grep cert-manager | awk '{print $1}' | xargs kubectl get crd > ~/resources.yaml This saves the default kubectl get output to the required file without formatting flags. Step 3: Get documentation for spec.subject in the Certificate CRD Run the following command: kubectl explain certificate.spec.subject > ~/subject.yaml This extracts the field documentation and saves it to the specified file. If you're not sure of the resource, verify it exists: kubectl get crd certificates.cert-manager.io
Final Command Summary ssh cka000055 kubectl get crds | grep cert-manager | awk '{print $1}' | xargs kubectl get crd > ~/resources.yaml kubectl explain certificate.spec.subject > ~/subject.yaml
Topics
Community Discussion
No community discussion yet for this question.
