thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

kubectl

The Kubernetes command-line tool for interacting with the API server to create, inspect, update, and delete resources.

Definition

Common commands are get, describe, apply, create, delete, logs, exec, rollout, scale, port-forward, and explain. Imperative commands with --dry-run=client -o yaml quickly generate manifests.

Example

kubectl create deploy web --image=nginx --replicas=3 --dry-run=client -o yaml > web.yaml

Exam tip

kubectl explain pod.spec.containers is an allowed in-exam documentation shortcut.

Related terms