Popular `kubernetes` terminal commands

List events for a single Kubernetes pod

Lists the events for a single Kubernetes pod by using the field-selector flag.

Authored by: mszalbach

Mark node as schedulable

Mark node as schedulable

Authored by: AI

Mark node as unschedulable

Mark node as unschedulable

Authored by: AI

Forward one or more local ports to a pod.

Listen on port specified locally, forwarding to {{pod_port}} in the pod

Authored by: AI

Report when a Kubernetes job has finished

Waits for a specified Kubernetes job to complete. The default timeout is 30 seconds, but can be adjusted by passing in the `--timeout` flag.

Authored by: abagshaw

Rollback to the previous deployment

Rollback to the previous deployment

Authored by: AI

Run a Bash command within a Kubernetes pod

Runs a Bash command in a Kubernetes pod. The double dash symbol "--" is used to separate the command you want to run inside the container from the kubectl arguments.

Authored by: nicola-ben

Set a new size for a deployment.

Set a new size for a deployment. If --current-replicas or --resource-version is specified, it is validated before the scale is attempted, and it is guaranteed that the precondition holds true when the scale is sent to the server.

Authored by: AI

Show a continuous stream of Kubernetes logs

Continuously streams logs from a given Kubernetes pod by using the `-f` flag.

Authored by: Yu-Ju Hong

Sort Kubernetes pods by age

Sorts all Kubernetes pods by the pod's start time. To sort by the pod's creation time, specify `.metadata.creationTimestamp` as the value for `--sort-by`.

Authored by: vjdhama

Forward one or more local ports of a service

Listen on port specified locally, forwarding to the targetPort of the service's port with the same value in a pod selected by the service.

Authored by: AI