网页 综合 更新时间 2026-11-13 15:30:53

Introduction to kubectl | Kubernetes

自动蜘蛛 kubernetes.io 正文约 1649 字
Introduction to kubectl | Kubernetes
kubectl is a command-line tool for interacting with Kubernetes clusters, using the Kubernetes API. Use it to deploy applications, inspect resources, and manage workloads.
While this Book is focused on using kubectl to declaratively manage applications in Kubernetes, it also covers other kubectl functions.
Most kubectl commands typically fall into one of a few categories:
The preferred approach for managing resources is through declarative files called resource configuration used with the kubectl Apply command. This command reads a local (or remote) file structure and modifies cluster state to reflect the declared intent.
Users will need to view workload state.
kubectl supports debugging by providing commands for:
On occasion, users may need to perform operations to the Nodes of cluster. kubectl supports commands to drain workloads from a Node so that it can be decommissioned or debugged.
Users may find using resource configuration overly verbose for development and prefer to work with the cluster imperatively with a shell-like workflow. kubectl offers porcelain commands for generating and modifying resources.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on Stack Overflow. Open an issue in the GitHub Repository if you want to report a problem or suggest an improvement.
© 2026 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
© 2026 Copyright © Kubernetes a Series of LF Projects, LLC. For website terms of use, trademark policy and other project policies please see https://lfprojects.org/policies/
ICP license: 京ICP备17074266号-3
访问原文 返回搜索 https://kubernetes.io/docs/reference/kubectl/introduction/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。