CheatSnip

Related

Set Context

kubernetes

Set current context

View kubeconfig

kubernetes

Show merged kubeconfig settings

Get Pods

kubernetes

List all pods in current namespace.

kubernetes/get-contexts

Get Contexts

List available contexts

config
context

Command

kubectl config get-contexts

Explanation

Shows contexts and indicates current.

Examples

List contexts

kubectl config get-contexts

More

Get Nodes

kubernetes

List all nodes in the Kubernetes cluster.

Get Deployments

kubernetes

List all deployments in the current namespace.

Get Services

kubernetes

List services in namespace

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers