Flashcards · Kubernetes · Free
Kubernetes flashcards, generated for you.
Example Kubernetes study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Kubernetes flashcards
What is a Kubernetes Service and why is needed?
A Service is an abstraction that exposes a set of Pods as a network endpoint. It provides stable IP/DNS and load balancing, decoupling clients from Pod replicas that may be created/destroyed.
What are the three main Service types in Kubernetes?
ClusterIP (default, internal only), NodePort (exposes on each node's port), and LoadBalancer (provisions external load balancer).
How do you list all Services in a namespace?
kubectl get svc -n <namespace> or kubectl get services --all-namespaces
What is a Selector in Kubernetes Services?
A Selector is a set of key-value label pairs that match Pods. The Service routes traffic only to Pods matching all selector labels.
How do you expose a Deployment as a Service from the command line?
kubectl expose deployment <name> --type=ClusterIP --port=80 --target-port=8080 -n <namespace>
What does port vs targetPort mean in a Service definition?
port is the Service's listening port (clients connect here); targetPort is the container port on Pods receiving traffic (default equals port if unspecified).
What is an Ingress and how does it differ from a Service?
Ingress is an API object that manages external HTTP/HTTPS routing to Services, providing hostname-based/path-based routing and TLS termination. Services handle internal or Layer 4 networking.
How do you troubleshoot a Service not routing traffic to Pods?
Check: (1) Pod labels match Service selector (kubectl get pods --show-labels), (2) Pods are Running/Ready, (3) Port and targetPort are correct, (4) Service endpoints exist (kubectl get endpoints <svc-name>).
What is a Headless Service and when do you use it?
A Headless Service has clusterIP set to 'None', returning Pod IPs directly via DNS instead of a proxy. Used for stateful workloads (StatefulSets), databases, or when you need direct Pod-to-Pod communication.
How do you view detailed Service configuration and assigned endpoints?
kubectl describe svc <service-name> -n <namespace> shows ports, selectors, endpoints, and events. kubectl get endpoints <service-name> shows the current Pod IPs.
Make your own Kubernetes study set
Flashcards for related topics
Studying Kubernetes to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →