25 cards · Public · Shuffle

CKA - Certified Kubernetes Administrator: Workloads & Networking

Master Kubernetes Workloads and Networking for the CKA exam! This high-yield flashcard deck covers essential `kubectl` commands, `PodSpec` configurations, `RBAC` security, `PersistentVolumes`, `Ingress` routing, and `etcd` backup/restore, crucial for CKA success.

Cards in this deck

(25 cards)

Preview terms and definitions before starting your study session.

#1
Term
What is the primary function of a PersistentVolumeClaim (PVC)?
Definition
A PersistentVolumeClaim is a request for storage by a user. It consumes PV resources. Pods request storage by specifying a PVC in their volume definition.
#2
Term
How do you imperatively create a Pod named my-nginx-pod using the nginx image?
Definition
Use the kubectl run command with --restart=Never for a standalone Pod:
kubectl run my-nginx-pod --image=nginx --restart=Never
#3
Term
What PodSpec field defines the container image to use?
Definition
The image field within the containers array. Example:
yaml8 lines
apiVersion: v1
kind: Pod
metadata:
  name: my-pod
spec:
  containers:
  - name: my-container
    image: nginx:latest
#4
Term
How do you define resource requests and limits for a container in a PodSpec?
Definition
Using the resources field within a container definition:
yaml7 lines
resources:
  requests:
    memory: "64Mi"
    cpu: "250m"
  limits:
    memory: "128Mi"
    cpu: "500m"
#5
Term
Explain the purpose of a LivenessProbe in a Pod.
Definition
A LivenessProbe checks if a container is still running and healthy. If it fails, Kubernetes restarts the container. This ensures applications don't get stuck in a broken state.
#6
Term
How do you imperatively create a Deployment named my-app-deployment with 3 replicas using the my-app:v1 image?
Definition
kubectl create deployment my-app-deployment --image=my-app:v1 --replicas=3
#7
Term
What is the primary function of a PersistentVolume (PV)?
Definition
A PersistentVolume is an abstract storage resource in a Kubernetes cluster, provisioned by an administrator or dynamically. It represents a piece of storage (e.g., NFS, iSCSI, hostPath) that can be claimed by Pods.
#8
Term
How do you define a hostPath PersistentVolume?
Definition
yaml11 lines
apiVersion: v1
kind: PersistentVolume
metadata:
  name: my-hostpath-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/mnt/data"
Showing 8 of 25 cards in this deck.
Study All Now