Kubectl
kubectl is the Kubernetes command-line client for communicating with the Kubernetes API and managing cluster resources.
Road to Kubernetes
kubectl is the command-line client for interacting with Kubernetes clusters and their resources through the Kubernetes API.
- How it is used
- Manages and inspects Kubernetes resources from a terminal during manual and automated deployments.
- How deep it goes
- Walks through installation, kubeconfig setup, resource commands, troubleshooting, and CI/CD use; defers service-account creation.
- Examples
- Uses an NGINX Pod manifest, a ConfigMap-backed deployment, a temporary test Pod, and a GitHub Actions workflow.
- What you can do after
- Operate/configure it to connect to a cluster, apply and inspect resources, troubleshoot Pods, and automate deployment commands.
Acing the Certified Kubernetes Administrator Exam, Second Edition
kubectl is the Kubernetes command-line tool for interacting with Kubernetes clusters and their API objects.
- How it is used
- Uses kubectl to interact with Kubernetes API objects during administration and CKA tasks.
- How deep it goes
- Explains resource discovery and manifest commands, then uses inspection and verification commands in a DNS configuration procedure.
- Examples
- Shows an nginx Pod manifest, create output, and Service CIDR and Service queries during DNS configuration.
- What you can do after
- Operate/configure Kubernetes resources with kubectl, choosing create, apply, or replace and checking resulting cluster state.
Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains kubectl →
Kubernetes for Developers
kubectl is the Kubernetes command-line client for creating, reading, updating, deleting, and otherwise managing Kubernetes resources.
- How it is used
- Provides the command-line way to interact with a Kubernetes cluster and manage application resources.
- How deep it goes
- Works through connection, resource commands, rollout checks, context switching, and port forwarding; defers detailed rollout strategies.
- Examples
- Shows Service creation and inspection, a Deployment image update, and port forwarding to a local Service.
- What you can do after
- Operate/configure it to submit YAML, inspect resources and rollouts, switch clusters, and access a Service locally.
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
kubectl is the Kubernetes command-line tool for communicating with a Kubernetes cluster and managing its resources and workloads.
- How it is used
- Deploys, inspects, and removes microservices on local and Azure Kubernetes clusters.
- How deep it goes
- Walks through installation checks, context selection, YAML deployment, resource inspection, and cleanup; does not explain kubectl internals.
- Examples
- Uses a video-streaming microservice, Docker Desktop cluster, Azure cluster, and `kubectl apply`, `get`, and `delete` commands.
- What you can do after
- Operate/configure kubectl to select a cluster, deploy YAML, verify running resources, and clean up the deployment.
Cyber Threat Hunting
kubectl is the Kubernetes command-line tool for communicating with and managing Kubernetes clusters through the Kubernetes API.
- How it is used
- Supports Kubernetes cluster administration while supplying auditable API activity for cloud threat hunting.
- How deep it goes
- Demonstrates operational inspection, permission checks, container searches, and audit-log investigation rather than kubectl installation or command syntax comprehensively.
- Examples
- Uses cluster-info, node and service listings, service-account permission checks, container binary searches, and a malicious deployment command.
- What you can do after
- Diagnose/debug with it by baselining cluster resources, checking service-account permissions, and correlating kubectl activity with API and runtime alerts.
Learn Docker in a Month of Lunches, Second Edition
kubectl is the command-line tool for querying and managing Kubernetes clusters through the Kubernetes API.
- How it is used
- Uses kubectl to send application YAML to a cluster and query the resulting Kubernetes resources.
- How deep it goes
- Works through context selection, deployment, inspection, logs, port forwarding and container commands without explaining kubectl internals.
- Examples
- Deploys a Pod, watches its restarts, forwards traffic to an HTTP Pod and checks ConfigMap values inside a container.
- What you can do after
- Apply it via kubectl to deploy YAML, verify resources, inspect failures and run checks inside containers.
Read how Learn Docker in a Month of Lunches, Second Edition explains kubectl →
Machine Learning Platform Engineering
kubectl is the command-line client for communicating with the Kubernetes API and managing cluster resources.
- How it is used
- Manages and diagnoses Kubernetes cluster resources from the command line across deployment, scaling, monitoring, and debugging workflows.
- How deep it goes
- Demonstrates runnable commands and configuration for pods, ReplicaSets, and deployments, stopping short of comprehensive command coverage.
- Examples
- Uses node inspection, cluster information, a FastAPI pod, image-pull failure, port forwarding, ReplicaSet scaling, and deployment rollback.
- What you can do after
- Operate Kubernetes workloads, apply resource manifests, inspect runtime state, expose pods locally, and diagnose or reverse deployment changes.
Read how Machine Learning Platform Engineering explains kubectl →
Kubernetes in Action, Second Edition
kubectl is the Kubernetes command-line client for submitting requests to and managing resources through the Kubernetes API.
- How it is used
- Uses a command-line interface to deploy applications and inspect, modify, and troubleshoot Kubernetes resources.
- How deep it goes
- Explains installation, kubeconfig, aliases, completion, connectivity, listing, and inspection, while deferring the many other commands.
- Examples
- Demonstrates cluster-info, get nodes, describe node, deployment creation, service exposure, scaling, logs, file copying, and command execution.
- What you can do after
- Operate/configure Kubernetes by installing kubectl, connecting through kubeconfig, deploying applications, scaling workloads, and inspecting resources.
Read how Kubernetes in Action, Second Edition explains kubectl →
Quarkus in Action
kubectl is the command-line client for interacting with Kubernetes clusters and their resources.
- How it is used
- Deploys a Quarkus service to Kubernetes and checks or accesses its running pods.
- How deep it goes
- Demonstrates applying generated YAML, listing pods, and forwarding a service port, but omits cluster setup.
- Examples
- Uses generated kubernetes.yml, kubectl apply, kubectl get pods, and kubectl port-forward against the Inventory service.
- What you can do after
- Operate/configure a Kubernetes deployment by applying manifests, checking pod status, and forwarding a service port.
Distributed Machine Learning Patterns
kubectl is the command-line client for interacting with Kubernetes clusters and their API resources.
- How it is used
- Uses kubectl to inspect and operate a Kubernetes cluster while preparing distributed machine-learning workflows.
- How deep it goes
- Demonstrates basic cluster, namespace, Pod, log, and YAML commands without explaining Kubernetes control-plane components.
- Examples
- Uses a local k3d cluster, the basics namespace, and a whalesay Pod to demonstrate status, logs, and YAML inspection.
- What you can do after
- Operate/configure a Kubernetes cluster by creating namespaces and Pods, switching contexts, and inspecting status, logs, and YAML.
Read how Distributed Machine Learning Patterns explains kubectl →
Data Pipelines with Apache Airflow, Second Edition
kubectl is the command-line client for interacting with Kubernetes clusters and resources.
- How it is used
- Supports Kubernetes cluster access, resource deployment, pod inspection, and troubleshooting for containerized Airflow tasks.
- How deep it goes
- Demonstrates connection checks, namespace and resource commands, and pod diagnosis, but does not detail kubectl command syntax broadly.
- Examples
- Uses cluster-info, namespace creation, YAML application, pod listing, port forwarding, and describe output showing a missing storage claim.
- What you can do after
- Operate and diagnose Kubernetes resources for Airflow by verifying access, applying specifications, inspecting pods, and interpreting scheduling events.
Read how Data Pipelines with Apache Airflow, Second Edition explains kubectl →
Related concepts
- Kubernetesuses · Kubernetes is an open-source platform for orchestrating and automating the deployment, scaling, and management of containerized workloads across computing clusters.
- Kubernetes APIuses · The Kubernetes API is the programmatic interface through which clients and components define, query, modify, and manage Kubernetes resources and cluster state.
- poduses · A Kubernetes Pod is the smallest deployable unit in Kubernetes, grouping one or more co-located containers that share networking and other resources.
- kubeconfigconfigured by · A kubeconfig is a configuration file containing Kubernetes cluster connections, credentials, users, and contexts that client tools use to access and select clusters.
- kubernetes api serveruses · The Kubernetes API server is the control-plane component that exposes, validates, and processes the Kubernetes API for managing cluster resources and state.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.










