Kubernetes Basics Flashcards

1
Q

Annotation

A

arbitrary, non-identifying metadata for retrieval by API clients such as tools and libraries. Beta API functionality may be activated by setting specific annotations.

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

Cluster​

A

an aggregate group of nodes configured to run a functioning Kubernetes system. Nodes can be a mix of physical or virtual machines running on public or private clouds, or even in on-premise data centers. This term refers to the aggregate of all nodes and not individual nodes.

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

Deployment

A

a declarative template for creating and scaling pods.

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

k8s

A

an abbreviation for Kubernetes. This is commonly used in documentation and naming things.

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

Label

A

key/value pairs attached to objects such as pods. Labels specify identifying attributes meaningful to users but do not imply semantics to Kubernetes. Here’s an example: your environment may be set to production.

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

Name

A

a unique identifier for a particular resource.

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

Namespace

A

a group of unique names.

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

Pod

A

a group of one or more containers running on a single node.

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

Replica Set​

A

coordinates pod creation, deletion, and updates during deployments.

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

Request

A

the desired amount of CPU or memory for a container in a pod.

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

Resource

A

any individual Kubernetes item such as deployment, pod, service, or secret, etc.

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

Service

A

a networking abstraction that defines rules on how to access pods determined by a selector. Do not confuse this concept with things like back-end service or application. Kubernetes services are about networking.

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

Secret

A

sensitive information, such as passwords, OAuth tokens, and ssh keys.

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

Selector

A

a set of rules to match resources based on metadata.

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

StatefulSet

A

a pod with guarantees on deployment and scaling order.

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

Volume

A

a stateful block store for use with ephemeral pods.

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

True or False: Volumes may have multiple back-ends such as on-disk, GCE, persistence disks, or other third party systems

A

True: Do not confuse this with a database. A volume is simply a place to write persisted data.

18
Q

True or False: Nodes can be a mix of physical or virtual machines running on public or private clouds, or even in on-premise data centers.

A

True. Nodes belong to a “cluster,” which refers to the aggregate of all nodes and not individual nodes.

19
Q

True or false, a Kubernetes “Service” refers to a deployment offering a service such as database, web hosting, data processing, etc?

A

False. A Kubernetes Service is a networking abstraction that defines rules on how to access pods determined by a selector. Kubernetes services are about networking.

20
Q

Add-ons

A

Resources that extend the functionality of Kubernetes.

21
Q

Admission Controller

A

A piece of code that intercepts requests to the Kubernetes API server prior to persistence of the object.

22
Q

API Group

A

A set of related paths in Kubernetes API.

23
Q

API Server

A

Also known as:kube-apiserver

The API server is a component of the Kubernetes control plane that exposes the Kubernetes API.

24
Q

True or False: The API server is the front end of the Kubernetes control plane.

A

True: The API server is the front end for the Kubernetes control plane and is the main implementation of the Kubernetes API.

25
Q

True or False: It is best practice to scale the Kubernetes API server vertically? (Larger servers)

A

False: Kubernetes API servers are designed to scale horizontally (more servers) and balance between the servers.

26
Q

App container

A

Application containers (or app containers) are the containers in a pod that are started after any init containers have completed.

27
Q

Application Architect

A

A person responsible for the high-level design of an application.

28
Q

Application Developer

A

A person who writes an application that runs in a Kubernetes cluster.

29
Q

Applications

A

The layer where various containerized applications run.

30
Q

Approver

A

A person who can review and approve Kubernetes code contributions.

31
Q

Certificate

A

A cryptographically secure file used to validate access to the Kubernetes cluster.

32
Q

cgroup (control group)

A

A group of Linux processes with optional resource isolation, accounting and limits.

33
Q

CIDR - Is an abbreviation for…

A

Classless Inter-Domain Routing

34
Q

CIDR - Is…

A

a notation for describing blocks of IP addresses and is used heavily in various networking configurations.

35
Q

glossary is found at

A

https://kubernetes.io/docs/reference/glossary/?all=true

36
Q

ConfigMaps

A

Kubernetes resource that is used to decouple configuration artifacts from image content to keep containerized applications portable

37
Q

Headless Service

A

a Kubernetes service resource that won’t load balance behind a single service IP.

38
Q

How does a Headless service operate?

A

returns a list of DNS records that point directly to the pods that back the service.

39
Q

How is a headless service defined?

A

by declaring the clusterIP property in a service spec and setting the value to None.

40
Q

True or false: StatefulSets require a headless service to identify pods in the cluster network?

A

True.

41
Q

Stateful Sets

A

manage the deployment and scaling of pods given a container spec.

42
Q

How do Stateful Sets differ from Deployments?

A

Stateful sets are not interchangeable. Each pod in a StatefulSet has a persistent identifier that it maintains across any rescheduling.