Skip to main content

Kubernetes Commands

Kubelet Status Check

Checking kubelet service status:
Viewing kubelet errors from Linux system:
Viewing kubelet errors from Kubernetes:

Pod Log and Status Check

Viewing pod logs:
Viewing previous pod logs (if pod was restarted):
Viewing pod details:

Pod Operations

Entering pod:
Making request without entering pod:

Deployment Operations

Restarting deployment:
Setting deployment replica count:
Deleting deployment:
Force deleting pod in Terminating state:
Version update:
After pulling images to servers, the following commands are used. These commands work like the “vi” editor, use “:wq” to save and exit.
Cleaning evicted pods:

Node Affinity Configuration

Preventing pod from running on specific nodes:

Docker Commands

Image Operations

Listing images:
Listing all containers:
Image pull operation:
Image export:
Image import:

Containerd Commands

Namespace Operations

Listing namespaces:
Listing containers by namespace:

Image Operations

Listing Apinizer images:
Image pull operation:
Image export:
Image import: