This post provides a comprehensive guide to using kubectl, the CLI tool for communicating with the Kubernetes API. It covers installation, command syntax, useful commands, plugins and tools, troubleshooting, and more.
Table of contents
InstallationLinux (Ubuntu/Debian)MacOS using HomebrewWindows using Chocolateykubectl commands:The syntaxWorking imperativelyUseful flags:Old School vs. New School watching flags:Working with PodsWorking with nodesWorking with Deployments, DaemonSets and StatefulSetsWorking with jobsWorking with secretsShell completionsWorking declarativelyCreate YAML filesApply YAML Files (client-side apply)Server-Side Apply (SSA)Plugins and tooling π§°Krew the Kubernetes plugin managerContent and Namespace switching πVisibility πPackage management π¦Networking πRBAC π«·Linting πCluster maintenance and Security π‘οΈTroubleshooting π§βπ§Logging πͺ΅Aliases πKubectl CheatsheetAdditional resources:3 Comments
Sort: