Skip to content

Commit 3f44ffc

Browse files
authored
Merge pull request #37830 from ardaguclu/events-doc-update
Events beta docs update
2 parents 6143904 + 1c26c7b commit 3f44ffc

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

content/en/docs/reference/kubectl/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Operation | Syntax | Description
136136
`diff` | `kubectl diff -f FILENAME [flags]`| Diff file or stdin against live configuration.
137137
`drain` | `kubectl drain NODE [options]` | Drain node in preparation for maintenance.
138138
`edit` | <code>kubectl edit (-f FILENAME &#124; TYPE NAME &#124; TYPE/NAME) [flags]</code> | Edit and update the definition of one or more resources on the server by using the default editor.
139+
`events` | `kubectl events` | List events
139140
`exec` | `kubectl exec POD [-c CONTAINER] [-i] [-t] [flags] [-- COMMAND [args...]]` | Execute a command against a container in a pod.
140141
`explain` | `kubectl explain [--recursive=false] [flags]` | Get documentation of various resources. For instance pods, nodes, services, etc.
141142
`expose` | <code>kubectl expose (-f FILENAME &#124; TYPE NAME &#124; TYPE/NAME) [--port=port] [--protocol=TCP&#124;UDP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type] [flags]</code> | Expose a replication controller, service, or pod as a new Kubernetes service.

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ kubectl get pods --all-namespaces -o jsonpath='{range .items[*].status.initConta
225225
# List Events sorted by timestamp
226226
kubectl get events --sort-by=.metadata.creationTimestamp
227227

228+
# List all warning events
229+
kubectl events --types=Warning
230+
228231
# Compares the current state of the cluster against the state that the cluster would be in if the manifest was applied.
229232
kubectl diff -f ./my-manifest.yaml
230233

content/en/docs/reference/kubectl/kubectl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ kubectl [flags]
376376
* [kubectl diff](/docs/reference/generated/kubectl/kubectl-commands#diff) - Diff live version against would-be applied version
377377
* [kubectl drain](/docs/reference/generated/kubectl/kubectl-commands#drain) - Drain node in preparation for maintenance
378378
* [kubectl edit](/docs/reference/generated/kubectl/kubectl-commands#edit) - Edit a resource on the server
379+
* [kubectl events](/docs/reference/generated/kubectl/kubectl-commands#events) - List events
379380
* [kubectl exec](/docs/reference/generated/kubectl/kubectl-commands#exec) - Execute a command in a container
380381
* [kubectl explain](/docs/reference/generated/kubectl/kubectl-commands#explain) - Documentation of resources
381382
* [kubectl expose](/docs/reference/generated/kubectl/kubectl-commands#expose) - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service

0 commit comments

Comments
 (0)