mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-07-18 04:40:18 +00:00
103 lines
16 KiB
Markdown
103 lines
16 KiB
Markdown
---
|
||
description: "Top Kubectl Commands resources for 2026, AI-ranked: complete-alias, kubectl explain and more — curated Cloud Native tools, guides and references."
|
||
---
|
||
# Kubectl commands
|
||
|
||
!!! tip "Nubenetes V2 Elite Portal"
|
||
You are browsing the AI-Curated V2 Elite Edition. Looking for the exhaustive list of references? Check out the [**V1 Historical Archive**](/v1/kubectl-commands/).
|
||
|
||
!!! info "Architectural Context"
|
||
Detailed reference for Kubectl commands in the context of The Container Stack.
|
||
|
||
## Architectural Foundations
|
||
|
||
### Kubernetes Tools
|
||
|
||
#### General Reference
|
||
|
||
- [pixelstech.net: Update & Delete Kubernetes resources in one-line command](https://www.pixelstech.net/article/1604225312-Update-&-Delete-Kubernetes-resources-in-one-line-command) <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — A curated technical resource and architectural guide covering pixelstech.net: Update & Delete Kubernetes resources in one-line command in the Kubernetes Tools ecosystem.
|
||
- [Copy secrets between namespaces](https://stackoverflow.com/questions/55515594/is-there-a-way-to-share-a-configmap-in-kubernetes-between-namespaces) <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — A curated technical resource and architectural guide covering Copy secrets between namespaces in the Kubernetes Tools ecosystem.
|
||
## Automation
|
||
|
||
### Kubernetes
|
||
|
||
#### Ansible Modules
|
||
|
||
- **(2024)** [Manage Kubernetes (K8s) objects](https://docs.ansible.com/collections.html) <span class='md-tag md-tag--warning'>[PYTHON CONTENT]</span> <span class='md-tag md-tag--critical'>[ADVANCED LEVEL]</span> <span class='md-tag md-tag--primary'>[DOCUMENTATION]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — Official documentation detailing Ansible's specialized `kubernetes.core.k8s` module capabilities. It focuses on declaratively orchestrating Kubernetes objects directly from Ansible playbooks, allowing organizations to cleanly bridge traditional VM configuration setups with modern containerized platform configurations.
|
||
## Cloud Native
|
||
|
||
### Kubernetes (1)
|
||
|
||
#### CICD
|
||
|
||
- **(2026)** [container-registry.com: Lifting Developers’ Productivity 🌟](https://container-registry.com/posts/productivity-lift-buildkit-cli-for-kubectl) <span class='md-tag md-tag--warning'>[N/A CONTENT]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — An analysis of the BuildKit CLI integration for 'kubectl'. It empowers developers to build container images directly within active Kubernetes execution scopes, leveraging distributed cache backends and eliminating local docker daemon dependencies.
|
||
#### CLI and Debugging
|
||
|
||
- **(2026)** [==ahmetb/kubectl-aliases==](https://github.com/ahmetb/kubectl-aliases) <span class='md-tag md-tag--info'>⭐ 3691</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-860c376d" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 5 L 10 10 L 20 8 L 30 10 L 40 3 L 50 4" fill="none" stroke="url(#spark-grad-860c376d)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="4" r="2" fill="var(--md-accent-fg-color)" /></svg> <span class='md-tag md-tag--warning'>[SHELL CONTENT]</span> 🌟🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[DE FACTO STANDARD]</span> — An automated system that generates systematic shell aliases for 'kubectl', significantly enhancing engineering productivity. It minimizes operational friction by programmatic expansion of over 800 permutations of flags and subcommands, allowing administrators to interface with Kubernetes clusters using succinct shorthand sequences.
|
||
- **(2026)** [==github.com/trstringer/kubectl-example==](https://github.com/trstringer/kubectl-example) <span class='md-tag md-tag--info'>⭐ 13</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-b0498436" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 8 L 10 9 L 20 8 L 30 9 L 40 13 L 50 4" fill="none" stroke="url(#spark-grad-b0498436)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="4" r="2" fill="var(--md-accent-fg-color)" /></svg> <span class='md-tag md-tag--warning'>[GO CONTENT]</span> 🌟🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[DE FACTO STANDARD]</span> — A reference repository providing curated template patterns and concrete command-line configurations for common 'kubectl' usage patterns. Designed to shorten the ramp-up time for operators, it acts as a declarative cheat-sheet for state transitions and diagnostic queries.
|
||
- **(2026)** [kubectl explain](https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_explain) <span class='md-tag md-tag--warning'>[N/A CONTENT]</span> <span class='md-tag md-tag--primary'>[DOCUMENTATION]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — Official reference documentation for 'kubectl explain', a critical utility for schema exploration within the Kubernetes API. Architecturally, it queries the cluster OpenAPI specification directly to output detailed structural layouts of specific resources, assisting developers in constructing valid declarative YAML manifests.
|
||
- **(2026)** [kubectl Shell Autocomplete](https://blog.heptio.com/kubectl-shell-autocomplete-heptioprotip-48dd023e0bf3) <span class='md-tag md-tag--warning'>[SHELL CONTENT]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — A deep dive into setting up shell autocomplete for 'kubectl' across Bash, Zsh, and fish environments. From an operational efficiency perspective, autocompletion queries API resources dynamically, minimizing context switching and reducing manual spelling errors during incident response.
|
||
- **(2026)** [hackernoon.com: How to Work With the Kubectl Debug Command](https://hackernoon.com/how-to-work-with-the-kubectl-debug-command) <span class='md-tag md-tag--warning'>[N/A CONTENT]</span> <span class='md-tag md-tag--critical'>[ADVANCED LEVEL]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — An in-depth technical manual outlining the usage of 'kubectl debug'. It details how to troubleshoot crash-looping workloads by attaching ephemeral diagnostic containers into target Pod namespaces, effectively bypassing missing-shell constraints of distroless or minimal base images.
|
||
#### Security
|
||
|
||
- **(2026)** [goteleport.com: kubectl exec vs SSH](https://goteleport.com/blog/ssh-vs-kubectl) <span class='md-tag md-tag--warning'>[N/A CONTENT]</span> <span class='md-tag md-tag--critical'>[ADVANCED LEVEL]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — An architectural comparison contrasting standard SSH access with the API-driven 'kubectl exec' command. From a security boundary posture, it highlights why 'kubectl exec' is preferred inside modern clusters as it eliminates secondary authentication pipelines and relies purely on Kubernetes RBAC structures.
|
||
## Developer Experience
|
||
|
||
### Shell
|
||
|
||
#### Productivity
|
||
|
||
- **(2026)** [==complete-alias==](https://github.com/cykerway/complete-alias) <span class='md-tag md-tag--info'>⭐ 814</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-dec427d1" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 6 L 10 4 L 20 9 L 30 8 L 40 10 L 50 4" fill="none" stroke="url(#spark-grad-dec427d1)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="4" r="2" fill="var(--md-accent-fg-color)" /></svg> <span class='md-tag md-tag--warning'>[SHELL CONTENT]</span> 🌟🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[DE FACTO STANDARD]</span> — A shell integration tool designed to resolve completion mechanisms for aliased commands. For platform engineers running complex aliased 'kubectl' pipelines, this tool bridges the gap by enabling native parameter autocomplete for custom aliases, preserving system-level speed.
|
||
## Kubernetes (2)
|
||
|
||
### Developer Experience (1)
|
||
|
||
#### Container Builds
|
||
|
||
- **(2021)** [==vmware-tanzu/buildkit-cli-for-kubectl (kubectl plugin)==](https://github.com/vmware-archive/buildkit-cli-for-kubectl) <span class='md-tag md-tag--info'>⭐ 505</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-97a6a5fe" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 12 L 10 3 L 20 13 L 30 12 L 40 13 L 50 6" fill="none" stroke="url(#spark-grad-97a6a5fe)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="6" r="2" fill="var(--md-accent-fg-color)" /></svg> <span class='md-tag md-tag--warning'>[GO CONTENT]</span> <span class='md-tag md-tag--critical'>[ADVANCED LEVEL]</span> 🌟🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[DE FACTO STANDARD]</span> <span class='md-tag md-tag--critical'>[LEGACY]</span> — A kubectl plugin designed to execute container builds directly on remote BuildKit instances inside clusters. Live grounding confirms the project has been archived under VMware, steering teams to direct BuildKit operators or Kaniko.
|
||
### Operations
|
||
|
||
#### Kubectl Plugins
|
||
|
||
- **(2025)** [Kubectl plugins and tools](https://nubenetes.com/kubernetes/#kubectl-plugins) <span class='md-tag md-tag--warning'>[GO CONTENT]</span> <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — This reference compilation highlights external tools and kubectl extensions managed via Krew. It details how third-party plugins (like `neat`, `kns`, or security-focused extensions) expand basic kubectl operational debugging and cluster-inspection capabilities.
|
||
## Kubernetes Platform
|
||
|
||
### Cluster Administration
|
||
|
||
#### Kubectl Plugins (1)
|
||
|
||
- **(2021)** [**shardul.dev: Most Useful kubectl Plugins**](https://shardul.dev/most-useful-kubectl-plugins) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Reviews highly useful extensions managed via the Krew plugins system. Showcases tools that expand administrator diagnostic capacities, log operations, and performance checks.
|
||
#### Kubectl Productivity
|
||
|
||
- **(2021)** [**opensource.com: 5 useful ways to manage Kubernetes with kubectl**](https://opensource.com/article/21/7/kubectl) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Details five ways to manage deployments using kubectl options. Emphasizes namespace management, manifest validations via dry-runs, and rapid scaling tasks.
|
||
- **(2021)** [**dev.to: Open a command prompt in a Kubernetes cluster**](https://dev.to/eldadak/open-a-command-prompt-in-a-kubernetes-cluster-206g) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Walks through initiating command sessions in target Kubernetes containers for diagnostics. Discusses ephemeral container usage and target debugging options without altering running code paths.
|
||
- **(2020)** [**developers.redhat.com: Kubectl: Developer tips for the Kubernetes command' line 🌟**](https://developers.redhat.com/blog/2020/11/20/kubectl-developer-tips-for-the-kubernetes-command-line) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Provides developer-focused kubectl practices for troubleshooting deployment issues on Red Hat configurations. Explores log parsing tricks and container shell executions.
|
||
- **(2022)** [howtogeek.com: Getting Started With Kubectl to Manage Kubernetes Clusters](https://www.howtogeek.com/devops/getting-started-with-kubectl-to-manage-kubernetes-clusters) 🌟🌟🌟 <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — A foundational guide to managing clusters with kubectl. Outlines config structure concepts, baseline container commands, and standard diagnostics routines for new platform users.
|
||
#### Multi-cluster Tools
|
||
|
||
- **(2021)** [**hackerxone.com: How to Manage Single & Multiple Kubernetes Clusters using' kubectl & kubectx in Linux**](https://www.hackerxone.com/2021/07/10/how-manage-single-multiple-kubernetes-clusters-using-kubectl-kubectx-linux) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Outlines cluster and namespace administration workflows leveraging kubectx and kubens. Prevents accidental execution on incorrect environments during multi-cluster deployments.
|
||
#### Port Forwarding
|
||
|
||
- **(2022)** [**inlets.dev: Fixing the Developer Experience of Kubernetes Port Forwarding**](https://inlets.dev/blog/2022/06/24/fixing-kubectl-port-forward.html) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Addresses stability issues inherent in standard kubectl port-forward operations. Explains how tunnels and reverse-proxy tools like Inlets provide developers with robust, persistent local connections.
|
||
#### Shell Environments
|
||
|
||
- **(2020)** [**superbrothers/zsh-kubectl-prompt 🌟**](https://github.com/superbrothers/zsh-kubectl-prompt) <span class='md-tag md-tag--info'>⭐ 591</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-81da60d4" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 3 L 10 3 L 20 12 L 30 7 L 40 7 L 50 2" fill="none" stroke="url(#spark-grad-81da60d4)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="2" r="2" fill="var(--md-accent-fg-color)" /></svg> 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Details a Zsh shell utility that displays current Kubernetes context and namespace info in the terminal prompt. Minimizes chances of entering execution instructions in wrong production sectors.
|
||
### Kubernetes API and Development
|
||
|
||
#### Config Management
|
||
|
||
- **(2023)** [**learnitguide.net: How to Create ConfigMap from Properties File Using K8s' Client**](https://www.learnitguide.net/2023/04/how-to-create-configmap-from-properties.html) 🌟🌟🌟🌟 <span class='md-tag md-tag--success'>[ENTERPRISE-STABLE]</span> — Demonstrates methods to compile Kubernetes ConfigMaps from structured properties files. Bridges common application configurations with native cloud manifest patterns.
|
||
## Operations and UX
|
||
|
||
### CLI Plugins
|
||
|
||
#### Output Formatting
|
||
|
||
- **(2026)** [hidetatz/kubecolor 🌟](https://github.com/hidetatz/kubecolor) <span class='md-tag md-tag--info'>⭐ 1446</span> <svg class="v2-sparkline" width="50" height="15" viewBox="0 0 50 15" style="vertical-align: middle; display: inline-block; margin-left: 6px;" title="Activity Trend"><defs><linearGradient id="spark-grad-fc213f0c" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="rgba(34, 211, 238, 0.2)" /><stop offset="100%" stop-color="var(--md-accent-fg-color)" /></linearGradient></defs><path class="v2-sparkline-path" d="M 0 7 L 10 11 L 20 8 L 30 9 L 40 7 L 50 5" fill="none" stroke="url(#spark-grad-fc213f0c)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><circle cx="50" cy="5" r="2" fill="var(--md-accent-fg-color)" /></svg> <span class='md-tag md-tag--warning'>[GO CONTENT]</span> 🌟🌟🌟 <span class='md-tag md-tag--info'>[COMMUNITY-TOOL]</span> — Kubecolor is a highly adopted command-line wrapper for kubectl that colorizes terminal outputs. It improves cluster observability by visually distinguishing resource types, labels, statuses, and namespaces during interactive CLI operations.
|
||
|
||
---
|
||
💡 **Explore Related:** [OCP 4](./ocp4.md) | [Container Managers](./container-managers.md) | [Openshift](./openshift.md)
|
||
|
||
🔗 **See Also:** [About](./about.md) | [Postman](./postman.md)
|
||
|