Kubernetes Flashcards

1
Q

What is Kubernetes and why is it important in modern software development?

A
  • open-source container orchestration
  • automates deployment /scalling contrainerized apps
  • facilitates CD and resource utilization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the key components of Kubernetes architecture.

A
  1. 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Pods in Kubernetes, and why are they essential?

A
  • 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.**
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Kubernetes Ingress controllers, and how do they manage external access to services?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

difference between availability with liveness and readiness probes in k8s

A

Liveness Probes: (Availability)

Health monitoring
Container restarts
Detects unresponsive states

Readiness Probes: (ready to incoming requests, )

Traffic control
Avoiding disruptions during updates or scaling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Job vs cronjob in k8s

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly