20 cards · Public · Shuffle

Kubernetes & Container Orchestration (CKA Exam Prep)

Master core Kubernetes concepts, imperative CLI operations, YAML manifests, networking models, dynamic storage, and cluster administration essential for passing the Certified Kubernetes Administrator (CKA) exam.

Cards in this deck

(20 cards)

Preview terms and definitions before starting your study session.

#1
Term
What are the essential troubleshooting commands for debugging a failing Pod?
Definition
  • View state and events: kubectl describe pod <pod-name>
  • Inspect stdout/stderr: kubectl logs <pod-name> -c <container-name> --previous
  • Execute shell inside running container: kubectl exec -it <pod-name> -- /bin/sh
#2
Term
What is a Kubernetes Pod?
Definition
A Pod is the smallest deployable computing unit in Kubernetes. It represents a single instance of a running process in your cluster and can contain one or more co-located, co-managed containers that share storage resources, a single network IP, and port space.
#3
Term
What is the standard YAML manifest structure for a Deployment?
Definition
A Deployment manages a set of identical Pods via a ReplicaSet.
yaml19 lines
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.21
        ports:
        - containerPort: 80
#4
Term
How do you imperatively create a Deployment and generate its YAML without applying it?
Definition
Use kubectl create with the --dry-run=client and -o yaml flags:
kubectl create deployment nginx-deploy --image=nginx:1.21 --replicas=3 --dry-run=client -o yaml > deployment.yaml
#5
Term
What are the key differences between ClusterIP, NodePort, and LoadBalancer Services?
Definition
  • ClusterIP: Exposes the Service on an internal IP within the cluster (default). Accessible only inside the cluster.
  • NodePort: Exposes the Service on each Node's IP at a static port (range: 30000-32767). Accessible externally.
  • LoadBalancer: Exposes the Service externally using a cloud provider's native load balancer, automatically routing traffic to underlying NodePort and ClusterIP targets.
#6
Term
What is the YAML structure for a NodePort Service?
Definition
A Service routes network traffic to Pods matching its label selector.
yaml12 lines
apiVersion: v1
kind: Service
metadata:
  name: my-nodeport-service
spec:
  type: NodePort
  selector:
    app: nginx
  ports:
    - port: 80
      targetPort: 80
      nodePort: 30080
#7
Term
How do you imperatively expose an existing Deployment as a Service?
Definition
Use the kubectl expose command:
kubectl expose deployment nginx-deploy --name=nginx-service --type=NodePort --port=80 --target-port=80
#8
Term
What is an Ingress Controller and how does an Ingress resource work?
Definition
An Ingress Controller (e.g., NGINX, Traefik) is an edge proxy daemon that implements rules defined in Ingress resources. The Ingress resource provides HTTP/HTTPS routing rules to exposed services based on hostnames or URL paths without creating multiple external LoadBalancers.
Showing 8 of 20 cards in this deck.
Study All Now