This document provides a list of common Kubectl commands for interacting with and managing Kubernetes clusters, namespaces, pods, deployments, nodes, services and more. It includes commands for getting, describing, creating, exposing, applying, replacing, rolling back, and deleting Kubernetes objects as well as commands for configuring contexts and credentials. Additional commands are included for troubleshooting, networking, security, snapshots, and more.
Download as ODT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
57 views
Commands
This document provides a list of common Kubectl commands for interacting with and managing Kubernetes clusters, namespaces, pods, deployments, nodes, services and more. It includes commands for getting, describing, creating, exposing, applying, replacing, rolling back, and deleting Kubernetes objects as well as commands for configuring contexts and credentials. Additional commands are included for troubleshooting, networking, security, snapshots, and more.
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3
1 Kubectl get pods
2 Kubectl get pods -o wide
3 Kubectl get nodes 4 Kubectl get nodes -o wide 5 Kubectl get pods --show-labels 6 Kubectl get pods -l=labelkey:labelvalue 7 Kubectl get pods --selector=labelkey:labelvalue 8 Kubectl get replicasets or rs 9 Kubectl get pods -A 10 Kubectl get all 11 Kubectl get deployments 12 Kubectl get services or svc 13 Kubectl get namespaces 14 Kubectl get pods -n namespace name or --namespace 15 Kubectl create namespace names