Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 437 Bytes

K8s_CheatSheet.md

File metadata and controls

14 lines (10 loc) · 437 Bytes
    #Get total nodes in cluster
            kubectl get nodes
            
    #Get pods in current namespace
            kubectl get pods

    #List all namespaces
            kubectl get namespaces
    
    #List contexts added in .kube config
            kubectl config list-contexts
            
    #Select the context to use
            kubectl config use-context <context name>