Devops Flashcards

1
Q

What is Kubernetes?

A
  • Kubernetes is an open-source container management platform.
  • Helps you run containers at scale.
  • Provides resources and Apis for managing and deploying modern applications.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Kubernetes Pod?

A
  • A pod represents a runnable unit of work
  • It is a thin wrapper around one or more containers.
  • A pod can hold any number of containers but usually only one.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Kubernetes Node?

A
  • The machines that make up a Kubernetes cluster.
  • Nodes in a Kubernetes cluster may be physical or virtual.
  • There are generally two types of nodes. Control-Plane-node type and work-node type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Kubernetes namespace

A
  • A namespace is a virtual cluster.
  • A namespace functions as a grouping mechanism inside of Kubernetes, Resources such as services, volumes, pods, replica sets, etc can easily cooperate in a namespace but the namespace provides a degree of isolation from the other parts of the cluster.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a service in Kubernetes

A
  • A service tells the rest of the Kubernetes environment (including other pods and replication controllers) whatservicesyour application provides.
  • While pods come and go, the service IP addresses and ports remain the same. And other applications can find your service through Kubernetes service discovery.
  • Persistent, provide discovery, provide load balancing, provide a stable service address, and find pods by label selector.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a volume in Kubernetes?

A
  • A volume represents a location where containers can access and store information.
  • Pods can mount volumes like filesystems.
  • For the application, the volume appears as part of the local filesystem. But volumes may be backed by local storage, Ceph, Gluster, Elastic Block Storage, and a number of other storage backends. at RippleMatch we use AWS EFS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a context in Kubernetes

A
  • A context in kubernetes is an association of personal credentials, cluster information that sets it apart
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a DaemonSet in K8s?

A
  • Implements a single instance of a pod on a worker node.
  • A DaemonSet ensures that all or some Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe a replication controller in K8s.

A
  • AReplicationControllerensures that a specified number of pod replicas are running at any one time. In other words, a ReplicationController makes sure that a pod or a homogeneous set of pods is always up and available.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe the Control Plane in a K8s architecture.

A
  • The control plane In a K8s architecture consists of different components but mostly provides an API server to communicate with worker nodes.
  • Some notable components of the control plane.
  • One or more API servers which represent the entry point for REST / kubectl
  • Etcd : distributed key/value store.
  • Controller-manager : Always evaluating current vs desired state of the cluster.
  • Scheduler: schedules pods to workers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the Data Plane in a K8s architecture

A
  • Made up of worker nodes.
  • kubelet: Acts as a conduit between the API server and the node.
  • kube-proxy: Manages IP translation and routing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly