Kubernetes Flashcards
What is Kubernetes and why is it important in modern software development?
- open-source container orchestration
- automates deployment /scalling contrainerized apps
- facilitates CD and resource utilization
Explain the key components of Kubernetes architecture.
-
Master Node: Controls and manages the cluster, including scheduling, scaling, and monitoring.
2.** Worker Nodes**: Host the application containers and execute the tasks assigned by the master node.
What are Pods in Kubernetes, and why are they essential?
- Pods are the smallest deployable units in Kubernetes
- It’s consisting of one or more containers sharing network and storage resources.
- They facilitate scaling, load balancing, and managing application dependencies within a** single unit.**
What are Kubernetes Ingress controllers, and how do they manage external access to services?
- it manages external HTTP and HTTPS traffic to services within the cluster
- it’s acting as an API gateway or load balancer.
- They provide features like
1: path-based routing
2: SSL termination,
3: traffic management
difference between availability with liveness and readiness probes in k8s
Liveness Probes: (Availability)
Health monitoring
Container restarts
Detects unresponsive states
Readiness Probes: (ready to incoming requests, )
Traffic control
Avoiding disruptions during updates or scaling.
Job vs cronjob in k8s
Job:
Executes one-off tasks, terminates after completion.
Ideal for batch processing, data migrations.
CronJob:
Schedules and repeats tasks based on cron expressions.
Useful for automated backups, log rotations.
Example:
Job: Running a script to update a database schema.
CronJob: Regularly backing up database data every night at 2 AM.