CKA · Question #60
You must connect to the correct host. Failure to do so may result in a zero score. [candidate@base] $ ssh Cka000060 Task Install Argo CD in the cluster by performing the following tasks: Add the…
The candidate must use Helm commands in the provided web terminal to add the Argo CD repository, then template the Argo CD chart (version 7.7.3) into a YAML file, ensuring CRD installation is skipped and the output is saved to the specified location.
Question
Exhibits
Explanation
The candidate must use Helm commands in the provided web terminal to add the Argo CD repository, then template the Argo CD chart (version 7.7.3) into a YAML file, ensuring CRD installation is skipped and the output is saved to the specified location.
Approach. The core task is to install Argo CD using Helm, specifically templating its chart. The steps, executed in the web terminal after connecting to the target host, are:
-
Connect to the target host: The question explicitly states 'You must connect to the correct host. [candidate@base] $ ssh Cka000060'. Assuming the web terminal is the
candidate@basehost, the first command to type is:ssh Cka000060(All subsequent commands are executed after successfully SSHing intoCka000060). -
Add the Argo CD Helm repository: The task requires adding the official Argo CD Helm repository with the name
argo. The command for this is:helm repo add argo https://argoproj.github.io/argo-helm -
Update Helm repositories (good practice): While not explicitly stated, it's good practice to update the repository index to ensure the latest chart versions are available:
helm repo update -
Generate the Helm chart template: The task requires generating a template of the Argo CD Helm chart (version 7.7.3) for the
argocdnamespace, saving it to~/argo-helm.yaml, and crucially, configuring it to not install CRDs because they are pre-installed. The correct command incorporating all these requirements is:helm template argo/argo-cd --version 7.7.3 --namespace argocd --skip-crds > ~/argo-helm.yamlhelm template: Command to render a chart locally.argo/argo-cd: Specifies the chart name from theargorepository.--version 7.7.3: Ensures the specific chart version is used.--namespace argocd: Specifies the target namespace for the resources (even though it's a template, this configures the namespace field in the YAML).--skip-crds: This is the critical flag to prevent Helm from rendering CRD definitions, aligning with the prompt's instruction that CRDs are 'pre-installed'.> ~/argo-helm.yaml: Redirects the generated YAML output to the specified file in the user's home directory.
Common mistakes.
- common_mistake. Common mistakes include:
- Forgetting to SSH to the correct host (
Cka000060): The question explicitly states this as a critical first step. - Not adding the Helm repository: Failing to execute
helm repo add argo https://argoproj.github.io/argo-helmbefore attempting to template the chart will result in Helm not finding the 'argo/argo-cd' chart. - Incorrectly handling CRDs: Using
--no-hooksinstead of--skip-crds, or forgetting to include any flag to prevent CRD installation.--no-hooksprevents pre/post-install hooks, not CRD installation. Installing CRDs when they are pre-installed can lead to conflicts or errors. Omitting the flag would include CRDs in the template. - Missing or incorrect chart version/namespace: Not specifying
--version 7.7.3or--namespace argocdwould result in a template that doesn't meet the requirements. - Forgetting to redirect output: Not using
> ~/argo-helm.yamlwill print the YAML to the console instead of saving it to the required file. - Using
helm installinstead ofhelm template: The task specifically asks to 'Generate a template' and 'save it to ~/argo-helm.yaml', indicating a templating operation, not a direct installation into the cluster.
Concept tested. This question tests the candidate's proficiency in managing Kubernetes applications using Helm, specifically:
- Helm repository management (adding and updating).
- Generating Helm chart templates (
helm template). - Configuring Helm charts with specific versions and namespaces.
- Understanding and correctly applying Helm flags to control chart behavior, especially regarding Custom Resource Definitions (CRDs) with
--skip-crds. - Basic command-line operations, including output redirection and SSH connectivity in a multi-host lab environment.
Topics
Community Discussion
No community discussion yet for this question.

