KCNA · Question #44
How do you deploy a workload to Kubernetes without additional tools?
The correct answer is C. Create a manifest and apply it with kubectl.. To deploy a workload to Kubernetes without additional tools, you create a manifest file, typically in YAML format, and apply it using the kubectl command.
Question
How do you deploy a workload to Kubernetes without additional tools?
Options
- ACreate a Bash script and run it on a worker node.
- BCreate a Helm Chart and install it with helm.
- CCreate a manifest and apply it with kubectl.
- DCreate a Python script and run it with kubectl.
How the community answered
(43 responses)- A2% (1)
- B2% (1)
- C95% (41)
Why each option
To deploy a workload to Kubernetes without additional tools, you create a manifest file, typically in YAML format, and apply it using the `kubectl` command.
Running a Bash script directly on a worker node bypasses the Kubernetes control plane and is not how workloads are managed within the Kubernetes ecosystem.
Helm Charts are a package manager for Kubernetes and are considered an 'additional tool,' making this answer incorrect for deploying without such tools.
`kubectl` is the primary command-line tool for interacting with a Kubernetes cluster, and creating a manifest file (e.g., YAML) that defines Kubernetes objects (like Deployments, Pods, Services) and then applying it with `kubectl apply -f <manifest-file.yaml>` is the native, out-of-the-box way to deploy workloads.
Running a Python script with `kubectl` is not a standard Kubernetes deployment method; `kubectl` executes commands against the cluster API, not arbitrary scripts for deployment logic.
Concept tested: Kubernetes native workload deployment
Source: https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/
Topics
Community Discussion
No community discussion yet for this question.