Skip to content

Glossary & Kubernetes Commands

Glossary

  • Label - Key/value pairs attached to Kubernetes objects, used to organize and select resources.
  • Selector - A query mechanism to filter Kubernetes objects based on labels.
  • Annotation - Key/value metadata that provides non-identifying information about objects.
  • Service - A stable endpoint to access one or more Pods.
  • ClusterIP - The default Service type, accessible only within the cluster.
  • NodePort - A Service type that exposes a port on all cluster nodes for external access.
  • LoadBalancer - A Service type integrating with cloud provider load balancers.
  • ReplicaSet - Ensures a specified number of identical Pods are running.
  • Deployment - Higher-level abstraction managing ReplicaSets and providing declarative updates.
  • Rolling Update - Deployment strategy that gradually replaces Pods to ensure zero downtime.
  • Kubernetes Dashboard - Web-based UI for managing Kubernetes resources.
  • YAML Manifest - Human-readable file format for defining Kubernetes objects declaratively.

Common Kubernetes Commands Cheat Sheet

Command Description
kubectl create -f pod.yaml Create a Pod from YAML manifest
kubectl get pods List Pods in the current namespace
kubectl describe pod <pod-name> View details of a specific Pod
kubectl get pods --selector app=myapp Get Pods matching a label selector
kubectl label pod <pod-name> env=dev Add or update a label on a Pod
kubectl annotate pod <pod-name> description='Test Pod' Add or update annotation for a Pod
kubectl create -f service.yaml Create a Service from YAML manifest
kubectl get svc List all Services
kubectl scale deployment <deploy> --replicas=4 Scale a Deployment to 4 replicas
kubectl rollout status deployment <deploy> Check status of a Deployment rollout
kubectl rollout undo deployment <deploy> Roll back to a previous Deployment version
kubectl get rs List ReplicaSets
kubectl get deployment <deploy> -o yaml Output Deployment definition in YAML
kubectl apply -f deployment.yaml Apply changes to a Deployment
kubectl proxy Start a local proxy to access Kubernetes Dashboard