Storage and Volumes Flashcards

1
Q

What are the three main types of storage drivers?

A

aufs
overlay2
devicemapper

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

Which storage drivers are defaults for which linux versions?

A

aufs - older Ubuntu
devicemapper - older CentOS
overlay2 - latest

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

What type of storage type is devicemapper?

A

block storage

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

What type of storage type is overlay2?

A

file based storage

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

How to set the default storage driver for the docker daemon?

A

In /etc/docker/daemon.json:

“storage-driver”: “overlay2”

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

How to remove stopped container and volume after container has run?

A

Use –rm flag in container run command

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

What are the two different modes of devicemapper?

A

direct-lvm

loop-lvm

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

Which devicemapper mode is faster and better suited for production?

A

direct-lvm

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

Which logging drivers allow for being checked via docker container logs command?

A

json-file

journald

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

What is a PersistentVolume in K8s?

A

Storage that has been pre-created, potentially by an administrator

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

What is a PersistentVolumeClaim in K8s?

A

A request for a Persistent Volume

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

What does a PersistentVolumeClaim request consist of?

A

Developer asking for a specific size, type, etc of volume

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

How is a volume used by a developer using a PersistentVolume and Claim?

A

First raise a claim by creating “kind: PersistentVolumeClaim”
Then reference that claim in the pod’s volume spec with:
persistestentVolumeClaim:
claimName: my_claim

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