- 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
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.
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: 80kubectl 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- 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
NodePortandClusterIPtargets.
apiVersion: v1
kind: Service
metadata:
name: my-nodeport-service
spec:
type: NodePort
selector:
app: nginx
ports:
- port: 80
targetPort: 80
nodePort: 30080kubectl expose command:kubectl expose deployment nginx-deploy --name=nginx-service --type=NodePort --port=80 --target-port=80Related Flashcard Sets
Explore similar study materials created by the community
Kubernetes & Orchestration Essentials (CKA Prep)
Master Kubernetes container orchestration from Pods to RBAC with this high-yield flashcard deck, perfect for CKA exam preparation. Dive into core concepts, `kubectl` commands, Service types, and storage mechanics to ace your certification.
HSK 1 - Basic Chinese Vocabulary, Pinyin & Character Recognition
Master foundational Mandarin Chinese with this HSK 1 flashcard deck covering essential vocabulary, Pinyin pronunciation rules, tones, and core sentence patterns.
Functional Programming - Immutability, Pure Functions & Higher-Order Functions
Unlock the power of Functional Programming! Master immutability, pure functions, and higher-order functions to write predictable, testable, and concurrent code with this comprehensive flashcard deck.
Neuroscience - Neuroanatomy & Brain Function
Master high-yield neuroanatomy and functional neuroscience concepts with this comprehensive study deck. Perfect for medical students and biology majors covering brain regions, cranial nerves, neuronal action potentials, and major pathways.