11---
2- title : " Introduction To Kubectl "
2+ title : " Introduction to kubectl "
33content_type : concept
44weight : 1
55---
66
7- Kubectl is the Kubernetes cli version of a swiss army knife, and can do many things.
7+ kubectl is the Kubernetes cli version of a swiss army knife, and can do many things.
88
9- While this Book is focused on using Kubectl to declaratively manage Applications in Kubernetes, it
10- also covers other Kubectl functions.
9+ While this Book is focused on using kubectl to declaratively manage applications in Kubernetes, it
10+ also covers other kubectl functions.
1111
1212## Command Families
1313
14- Most Kubectl commands typically fall into one of a few categories:
14+ Most kubectl commands typically fall into one of a few categories:
1515
1616| Type | Used For | Description |
1717| ----------------------------------------| ----------------------------| ----------------------------------------------------|
18- | Declarative Resource Management | Deployment and Operations (e.g. GitOps) | Declaratively manage Kubernetes Workloads using Resource Config |
19- | Imperative Resource Management | Development Only | Run commands to manage Kubernetes Workloads using Command Line arguments and flags |
20- | Printing Workload State | Debugging | Print information about Workloads |
21- | Interacting with Containers | Debugging | Exec, Attach, Cp, Logs |
22- | Cluster Management | Cluster Ops | Drain and Cordon Nodes |
18+ | Declarative Resource Management | Deployment and operations (e.g. GitOps) | Declaratively manage Kubernetes workloads using resource configuration |
19+ | Imperative Resource Management | Development Only | Run commands to manage Kubernetes workloads using Command Line arguments and flags |
20+ | Printing Workload State | Debugging | Print information about workloads |
21+ | Interacting with Containers | Debugging | Exec, attach, cp, logs |
22+ | Cluster Management | Cluster operations | Drain and cordon Nodes |
2323
2424## Declarative Application Management
2525
26- The preferred approach for managing Resources is through
27- declarative files called Resource Config used with the Kubectl * Apply* command.
26+ The preferred approach for managing resources is through
27+ declarative files called resource configuration used with the kubectl * Apply* command.
2828This command reads a local (or remote) file structure and modifies cluster state to
2929reflect the declared intent.
3030
3131{{< alert color="success" title="Apply" >}}
32- Apply is the preferred mechanism for managing Resources in a Kubernetes cluster.
32+ Apply is the preferred mechanism for managing resources in a Kubernetes cluster.
3333{{< /alert >}}
3434
35- ## Printing state about Workloads
35+ ## Printing State about Workloads
3636
37- Users will need to view Workload state.
37+ Users will need to view workload state.
3838
39- - Printing summarize state and information about Resources
40- - Printing complete state and information about Resources
41- - Printing specific fields from Resources
42- - Query Resources matching labels
39+ - Printing summarize state and information about resources
40+ - Printing complete state and information about resources
41+ - Printing specific fields from resources
42+ - Query resources matching labels
4343
4444## Debugging Workloads
4545
46- Kubectl supports debugging by providing commands for:
46+ kubectl supports debugging by providing commands for:
4747
4848- Printing Container logs
4949- Printing cluster events
@@ -52,20 +52,20 @@ Kubectl supports debugging by providing commands for:
5252
5353## Cluster Management
5454
55- On occasion, users may need to perform operations to the Nodes of cluster. Kubectl supports
56- commands to drain Workloads from a Node so that it can be decommission or debugged.
55+ On occasion, users may need to perform operations to the Nodes of cluster. kubectl supports
56+ commands to drain workloads from a Node so that it can be decommissioned or debugged.
5757
5858## Porcelain
5959
60- Users may find using Resource Config overly verbose for * Development * and prefer to work with
61- the cluster * imperatively* with a shell-like workflow. Kubectl offers porcelain commands for
62- generating and modifying Resources .
60+ Users may find using resource configuration overly verbose for * development * and prefer to work with
61+ the cluster * imperatively* with a shell-like workflow. kubectl offers porcelain commands for
62+ generating and modifying resources .
6363
64- - Generating + creating Resources such as Deployments, StatefulSets, Services, ConfigMaps, etc
65- - Setting fields on Resources
66- - Editing (live) Resources in a text editor
64+ - Generating + creating resources such as Deployments, StatefulSets, Services, ConfigMaps, etc.
65+ - Setting fields on resources
66+ - Editing (live) resources in a text editor
6767
68- {{< alert color="warning" title="Porcelain For Dev Only" >}}
68+ {{< alert color="warning" title="Porcelain for Dev Only" >}}
6969Porcelain commands are time saving for experimenting with workloads in a dev cluster, but shouldn't
7070be used for production.
7171{{< /alert >}}
0 commit comments