Docker Swarm Flashcards

1
Q

Where we use Docker swarm ?

A

We use it to orchestrate multi-container apps that run on multiple hosts in contrast to docker compose which runs on one host.
It is composed of two things:
a) an enterprise secure cluster of hosts
b) an engine for orchestrate micro service apps

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

What does the cluster provides?

A

encrypted distributed cluster store,
encrypted networks, mutual TLS, secure cluster join tokens, and a PKI that makes
managing and rotating certificates a breeze

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

From clustering view point, what is a swarm?

A

Swarm is a cluster of physical docker hosts.

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

On swarm , what is etcd?

A

etcd is a distributed database on all nodes which preserves the state of the swarm.

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

How the nodes (meaning categories ) are divided?

A

Nodes are configured as managers or workers. Managers look after the control plane
of the cluster, meaning things like the state of the cluster and dispatching tasks to
workers. Workers accept tasks from managers and execute them.

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