Kubernetes Most-Used Commands


☸ Kubernetes · kubectl · Weisewelt

Premium Kubernetes Emulator: 50 explained kubectl commands

Run the emulator, copy a command from the table, and watch the text output plus the node canvas to understand which resource moves, where it runs, and what changes inside the cluster.

How to use it

  • Run the commands in order first so resources exist before checking services, endpoints, HPA or ingress.
  • The node canvas shows pods, private IPs, services, profile and simulated permissions.
  • The lab is safe: it does not connect to a real cluster.
50explained commands
12guided challenges

Responsive kubectl command table


# Category Command Explanation Action
1 Basics kubectl version --client Shows the local kubectl client version to validate client compatibility.
2 Basics kubectl cluster-info Shows control plane and main cluster service information.
3 Context kubectl config current-context Shows the active context where kubectl will send commands.
4 Context kubectl config get-contexts Lists configured contexts, user, cluster and associated namespace.
5 Security/RBAC kubectl auth can-i get pods Checks whether the current profile can list pods according to RBAC.
6 API kubectl api-resources Lists available resources, aliases, API version and namespace scope.
7 API kubectl api-versions Shows available API versions for compatible manifests.
8 API kubectl explain pod Explains the structure and main fields of the Pod resource.
9 Nodes kubectl get nodes Lists cluster nodes and their Ready/NotReady state.
10 Nodes kubectl describe node ww-node-02 Shows capacity, conditions, role and private IP of the worker node.
11 Nodes kubectl top nodes Shows simulated CPU and memory metrics by node.
12 Namespaces kubectl get namespaces Lists namespaces available in the cluster.
13 Namespaces kubectl create namespace ww-lab Creates a lab namespace to isolate resources.
14 Namespaces kubectl label namespace ww-lab environment=training Adds a label to the namespace for classification and filtering.
15 Context kubectl config set-context --current --namespace=ww-lab Sets ww-lab as the default namespace for the current context.
16 Pods kubectl get pods -A Lists pods across all namespaces, including kube-system.
17 Pods kubectl get pods Lists pods in the current namespace.
18 Pods kubectl get pods -o wide Shows pods with private IP and assigned node.
19 Pods kubectl get pods --show-labels Lists pods with labels to understand selectors and service relationships.
20 Workloads kubectl create deployment web --image=nginx:1.27 Creates a Deployment named web using the nginx image.
21 Workloads kubectl get deployments Lists deployments and available replicas.
22 Workloads kubectl describe deployment web Shows Deployment details, image, strategy and replicas.
23 Workloads kubectl scale deployment web --replicas=3 Scales the Deployment to three replicas distributed across nodes.
24 Workloads kubectl get rs Lists ReplicaSets created by the Deployment.
25 Networking/Services kubectl expose deployment web --port=80 --target-port=80 Creates a ClusterIP Service to route internal traffic to pods.
26 Networking/Services kubectl get svc Lists services and internal cluster IPs.
27 Networking/Services kubectl describe svc web Shows selector, ports and endpoints of the web service.
28 Networking/Services kubectl get endpoints Lists private endpoints targeted by the Service.
29 Troubleshooting kubectl logs -l app=web Queries logs from pods matching the app=web label.
30 Troubleshooting kubectl describe pod web-7d8b Shows events, state and details for the simulated pod.
31 Metrics kubectl top pods Shows simulated CPU and memory usage by pod.
32 Operations kubectl exec deploy/web -- nginx -v Runs a command inside the Deployment container.
33 Updates kubectl set image deployment/web nginx=nginx:1.28 Updates the Deployment image and triggers a rolling update.
34 Updates kubectl rollout status deployment/web Checks whether the rollout completed successfully.
35 Updates kubectl rollout history deployment/web Shows the Deployment revision history.
36 Updates kubectl rollout undo deployment/web Rolls the Deployment back to the previous version.
37 Configuration kubectl create configmap web-config --from-literal=ENV=training Creates a ConfigMap with non-sensitive configuration.
38 Configuration kubectl get configmap Lists ConfigMaps in the current namespace.
39 Configuration kubectl describe configmap web-config Shows keys and values in the simulated ConfigMap.
40 Secrets kubectl create secret generic web-secret --from-literal=API_KEY=demo Creates a generic Secret to represent sensitive data.
41 Secrets kubectl get secret Lists Secrets without exposing values.
42 Secrets kubectl describe secret web-secret Describes the Secret while masking sensitive values.
43 Autoscaling kubectl autoscale deployment web --cpu-percent=70 --min=2 --max=6 Creates a simulated HPA to scale by CPU.
44 Autoscaling kubectl get hpa Lists the HPA, CPU target and current replicas.
45 Autoscaling kubectl describe hpa web Shows metric details, minimum and maximum replicas.
46 Ingress kubectl apply -f ingress-web.yaml Applies a simulated Ingress manifest to expose HTTP.
47 Ingress kubectl get ingress Lists Ingress, host, class and entry address.
48 Ingress kubectl describe ingress web-ingress Describes host/path rules that route to the web Service.
49 Troubleshooting kubectl get events Lists recent events useful for diagnosing scheduling and startup.
50 Cleanup kubectl delete namespace ww-lab Deletes the namespace and cleans up lab resources.





Terraform Most-Used Commands



FREE
Terraform CLI
AWS / Azure / GCP / Oracle
Lite / Pro / Pro Plus coming soon

Terraform: FREE interactive emulator for AWS, Azure, GCP, and Oracle

Learn Terraform step by step with a visual learning-mode emulator. It includes guided challenges, a simulated terminal, infrastructure canvas output, and commands ready to copy or run.

40 explained Terraform commands

Use Copy to send the command to your clipboard or Run to load it into the emulator on this same page.

# Command Explanation Copy Run
1 terraform init Initializes the working directory and downloads required providers/modules.
2 terraform init -upgrade Upgrades providers and modules while respecting version constraints.
3 terraform init -backend=false Initializes without configuring a remote backend; useful for local validation or CI.
4 terraform fmt Formats .tf files using Terraform standard style.
5 terraform fmt -recursive Formats the current directory and all subdirectories.
6 terraform validate Validates syntax, types and internal structure without creating resources.
7 terraform validate -json Returns validation results as JSON for automated integrations.
8 terraform plan Previews the changes Terraform would make to the infrastructure.
9 terraform plan -out=tfplan Saves the plan so it can be applied later in a controlled way.
10 terraform plan -destroy Previews destruction of resources managed by the state.
11 terraform plan -var="env=dev" Runs the plan using a variable passed from the command line.
12 terraform plan -var-file="dev.tfvars" Runs the plan using variables from a tfvars file.
13 terraform apply Applies proposed changes and creates, modifies or deletes resources.
14 terraform apply tfplan Applies a plan previously saved with -out.
15 terraform apply -auto-approve Applies without interactive approval; use only in labs or controlled CI/CD.
16 terraform destroy Destroys infrastructure managed by the current state.
17 terraform destroy -auto-approve Destroys without asking for confirmation; critical command to use carefully.
18 terraform output Shows values defined in output blocks.
19 terraform output -json Shows outputs as JSON for integrations and scripts.
20 terraform state list Lists resources Terraform manages in the current state.
21 terraform state show aws_instance.demo Shows detailed attributes for one resource in state.
22 terraform state mv old new Renames or moves a resource within state without recreating it.
23 terraform state rm resource Removes a resource from state without deleting it from the real cloud.
24 terraform import resource id Imports an existing resource so Terraform can manage it.
25 terraform refresh Refreshes state from provider data; newer workflows prefer plan/apply.
26 terraform providers Shows providers required by the configuration and modules.
27 terraform providers lock Generates or updates the provider lock file for repeatable runs.
28 terraform version Shows the installed Terraform version and relevant provider versions.
29 terraform console Opens an interactive console to evaluate Terraform expressions.
30 terraform graph Generates a DOT dependency graph between resources.
31 terraform workspace list Lists available workspaces.
32 terraform workspace new dev Creates a workspace to separate state by environment.
33 terraform workspace select dev Switches to the dev workspace.
34 terraform workspace show Shows the active workspace.
35 terraform taint resource Marks a resource to be recreated on the next apply.
36 terraform untaint resource Removes the taint mark from a resource.
37 terraform login Logs in to use Terraform Cloud or HCP Terraform.
38 terraform logout Logs out of the saved Terraform Cloud/HCP session.
39 terraform test Runs native Terraform tests when test files exist.
40 terraform modules Shows modules used by the configuration when supported by the CLI.

The emulator is educational: it does not request credentials, connect to real clouds, or create real resources.





50 Microsoft Excel Functions


🎓 FREE educational

Learn Excel easily with guided practice and interactive challenges

Practice formulas, functions, finance, accounting, inventory and data analysis without installing Microsoft Excel. The emulator is embedded into this page as a step-by-step guide so users can learn faster, understand each result and practice with clear challenges.

✅ Interactive table🧠 Explanation canvas📋 Copy-ready formulas🌎 Multilingual🚀 LITE / PRO / PRO Plus coming soon

How to use this learning page

The goal is not to memorize all of Excel. The goal is to practice with small, clear exercises. Each challenge shows what to do, where to write the formula, what result to expect and why that result is correct.

1. Review the dataLook at the challenge table and understand what needs to be calculated.
2. Write the formulaUse the hint or try to solve it by yourself.
3. Run and validateThe emulator calculates, validates and explains the result.
4. Move to the next challengeLearn a new function with progressive practice.

Embedded Excel emulator: guide and challenges

This shortcode activates the emulator in guided learning mode, ideal for teaching Excel from scratch with challenges.

Recommended fast learning path

Level 1: BasicsSUM, AVERAGE, MIN, MAX and COUNT for simple calculations.
Level 2: ConditionsIF, IFS, SUMIF and COUNTIF to make decisions with data.
Level 3: Clean dataTRIM, TEXT, CONCAT, LEFT, RIGHT and SUBSTITUTE to organize information.
Level 4: LookupsVLOOKUP, XLOOKUP, INDEX and MATCH to connect tables.
Level 5: FinancePMT, FV, PV, NPV and IRR to explain loans, investments and profitability.
Level 6: AccountingNet profit, balance, inflows, outflows and available inventory.

50 Excel commands, functions and formulas to practice

Copy each example, paste it into the emulator and review the result. The table adapts to phones, tablets and desktop screens.

# Category Command / function Copy example Use Practical explanation Copy
1 Basics SUM =SUM(B2:B6) Adds a range of values. Useful for adding sales, expenses, inventory or any numeric list.
2 Basics AVERAGE =AVERAGE(B2:B6) Calculates the average. Good for grades, sales, costs or time averages.
3 Basics MIN =MIN(B2:B6) Finds the lowest value. Helps detect the lowest cost, minimum sale or lowest result.
4 Basics MAX =MAX(B2:B6) Finds the highest value. Helps identify the highest sale, highest cost or best result.
5 Basics COUNT =COUNT(B2:B20) Counts cells containing numbers. Counts numeric records without including text.
6 Basics COUNTA =COUNTA(A2:A20) Counts non-empty cells. Useful for counting records, names, products or captured entries.
7 Conditions IF =IF(B2>=70,"Passed","Review") Evaluates a condition and returns a result. Ideal for status lights, approvals, diagnostics and validations.
8 Conditions IFS =IFS(B2>=90,"Excellent",B2>=70,"Good",B2<70,"Review") Evaluates several conditions in order. Classifies results without many nested IF formulas.
9 Conditions SUMIF =SUMIF(A2:A20,"Sales",B2:B20) Adds values that meet one condition. Useful for adding sales, expenses or transactions by category.
10 Conditions SUMIFS =SUMIFS(C2:C50,A2:A50,"Sales",B2:B50,"January") Adds values with multiple conditions. Great for reports by category, month, customer or region.
11 Conditions COUNTIF =COUNTIF(B2:B50,">=70") Counts cells that meet a condition. Counts passed students, low stock items or critical tickets.
12 Conditions COUNTIFS =COUNTIFS(A2:A50,"Sales",B2:B50,"January") Counts records with multiple conditions. Useful for audits, reports and segmented analysis.
13 Conditions AVERAGEIF =AVERAGEIF(A2:A50,"Sales",B2:B50) Averages values based on one condition. Shows average sales, costs or results by group.
14 Formatting and numbers ROUND =ROUND(B2,2) Rounds a number to a specific number of decimals. Very useful for amounts, percentages, taxes and indicators.
15 Formatting and numbers ROUNDUP =ROUNDUP(B2,0) Rounds up. Useful when minimum coverage, packages or full units are required.
16 Formatting and numbers ROUNDDOWN =ROUNDDOWN(B2,0) Rounds down. Good for conservative estimates or whole-unit calculations.
17 Formatting and numbers ABS =ABS(B2) Converts a negative number into positive. Useful for showing differences, losses or variations without a negative sign.
18 Dates TODAY =TODAY() Shows the current date. Useful for dynamic reports, due dates and daily controls.
19 Dates NOW =NOW() Shows the current date and time. Useful for logs, records and timestamps.
20 Dates DATE =DATE(2026,6,16) Creates a date using year, month and day. Avoids format issues when building dates.
21 Dates YEAR =YEAR(A2) Extracts the year from a date. Useful for annual reports and year grouping.
22 Dates MONTH =MONTH(A2) Extracts the month from a date. Useful for classifying sales, expenses or transactions by month.
23 Dates DAY =DAY(A2) Extracts the day from a date. Useful for daily analysis or due dates.
24 Text TEXT =TEXT(B2,"$#,##0.00") Converts values to formatted text. Useful for presenting amounts, dates or percentages clearly.
25 Text CONCAT =CONCAT(A2," - ",B2) Joins text from multiple cells. Creates combined keys, labels or descriptions.
26 Text LEFT =LEFT(A2,3) Extracts characters from the beginning. Useful for prefixes, codes or abbreviations.
27 Text RIGHT =RIGHT(A2,4) Extracts characters from the end. Useful for endings, last digits or codes.
28 Text MID =MID(A2,2,5) Extracts text from a specific position. Useful for splitting parts of keys or identifiers.
29 Text LEN =LEN(A2) Counts characters. Helps validate code, SKU, name or ID lengths.
30 Text TRIM =TRIM(A2) Removes extra spaces. Very useful for cleaning data pasted from other systems.
31 Text UPPER =UPPER(A2) Converts text to uppercase. Normalizes names, codes or records.
32 Text LOWER =LOWER(A2) Converts text to lowercase. Standardizes emails, labels or data.
33 Text FIND =FIND("@",A2) Finds the position of text inside another text. Useful for validating emails or splitting information.
34 Text SUBSTITUTE =SUBSTITUTE(A2," ","-") Replaces specific text. Useful for cleaning data or creating slugs/codes.
35 Lookup VLOOKUP =VLOOKUP(A2,Products!A:D,4,FALSE) Looks up a value in the first column of a table. Useful for bringing prices, descriptions or related data.
36 Lookup XLOOKUP =XLOOKUP(A2,Products!A:A,Products!D:D,"Not found") Looks up values flexibly. Modern alternative for clearer and safer lookups.
37 Lookup INDEX =INDEX(B2:B20,3) Returns a value based on its position. Extracts specific data from a list.
38 Lookup MATCH =MATCH(E2,A2:A20,0) Finds the position of a value. Commonly used with INDEX for advanced lookups.
39 Dynamic data FILTER =FILTER(A2:C50,B2:B50="Active") Filters data that meets a condition. Ideal for clean views of customers, products or transactions.
40 Dynamic data SORT =SORT(A2:C50,2,-1) Sorts data by column. Useful for rankings, top sales or priorities.
41 Dynamic data UNIQUE =UNIQUE(A2:A50) Returns unique values. Useful for customer, category or product lists without duplicates.
42 Errors IFERROR =IFERROR(B2/C2,"Review data") Shows a message if there is an error. Avoids confusing results like #DIV/0! or #N/A.
43 Finance PMT =PMT(12%/12,24,-50000) Calculates a loan payment. Useful for monthly credit, financing or loan payments.
44 Finance FV =FV(8%/12,36,-1000) Calculates future value. Estimates future savings or investment value.
45 Finance PV =PV(10%/12,24,-2500) Calculates present value. Shows the current value of future payments.
46 Finance NPV =NPV(10%,B2:B6) Calculates net present value. Helps evaluate investment projects.
47 Finance IRR =IRR(B2:B7) Calculates internal rate of return. Useful for analyzing investment profitability.
48 Finance Percentage =B2/B3 Calculates ratios or percentages. Example: margin, progress, compliance or share.
49 Accounting Net profit =B2-B3-B4-B5 Subtracts costs, expenses and taxes from income. Explains real profit for a period.
50 Accounting Balance =SUM(B2:B10)-SUM(C2:C10) Compares debit vs credit or inflows vs outflows. Useful for simple balances and reconciliations.
51 Inventory Available stock =B2-C2+D2 Calculates final inventory. Adds entries, subtracts exits and shows availability.