DevOps Flashcards

1
Q

What is Kubernetes (k8s)?

A

An open source container orchestration tool

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

What features do container orchestration tools offer?

A
  • High availability
  • High scalability
  • Disaster recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the three components in the Kubernetes architecture and how are they related?

A

Control Plane, Workers Nodes, and Virtual Network. Applications run in the Worker Nodes and the Control Plane is responsible for the Kubernetes processes. Each Worker Node has a Kubelet process running on it in order to communicate with the cluster. The Virtual Network allows the Control Plane and Worker Nodes to communicate and creates one unified machine

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

What are the components of the control pane?

A
  • API server (api, entry point to the k8s cluster)
  • Controller manager (c-m, keeps track of what’s happening in the cluster)
  • Scheduler (sched, decides on which (Worker) Node a new Pod should be scheduled)
  • etcd (key value store that stores the current state of the cluster)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Pod (pod) in Kubernetes?

A

A Pod is the smallest unit in Kubernetes and is an abstraction over a container. Usually, a Pod contains one application. Each Pod gets its own IP address. In the case of Pod recreation, a new IP address is assigned

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

What is a Service (svc) in Kubernetes?

A

A Service can be assigned to a Pod and has a permanent IP address. If a Pod dies, the service will retain its IP address. There are Internal Services (default) and External Services

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

What is an Ingress (ing) in Kubernetes?

A

An API object that manages external access to the services in a cluster, typically HTTP

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

What is a ConfigMap (cm) in Kubernetes?

A

An external configuration of the application. It is used to store non-confidential data in key-value pairs, such as an URL to a database

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

What is a Secret (secret) in Kubernetes?

A

Similar to a ConfigMap, but contains confidential data. Secrets should not be checked into a code repository

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

What is a Volume (vol) in Kubernetes?

A

A Volume attaches physical storage to a Pod. So, in the case of a Pod restart, the data does not get lost. The storage can be within the cluster or outside of the cluster

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

What is a Deployment (deploy) in Kubernetes?

A

A blueprint for Pods, a template for creating Pods. The number of requested replicas of a Pod are mentioned in the Deployment

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

What is a StatefulSet (sts) in Kubernetes?

A

Databases cannot be replicated through Deployments, because they have a state. Instead, StatefulSets are used to replicate database Pods. In other words, StatefulSets are for stateful apps

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

What is the difference between Kubernetes and Red Hat OpenShift?

A

OpenShift is Kubernetes-based container orchestration platform that provides additional enterprise-grade features and a simpler, more streamlined experience for deploying and managing containerized applications

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

What is Argo CD?

A

It is a declarative, GitOps continuous delivery tool for Kubernetes. It follows the GitOps pattern of using Git repositories as the source of truth for defining the desired application state It is implemented as a kubernetes controller which continuously monitors running applications and compares the current, live state against the desired target state (as specified in the Git repo)

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