Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:docker3:en:dre05 [2023/12/17 11:14] – admin | elearning:workbooks:docker3:en:dre05 [2023/12/27 08:34] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 42: | Ligne 42: | ||
Traffic linked to the management of swarm services is encrypted by default using the AES algorithm in GCM mode. In order to encrypt application-related data traffic, it is possible to use the **--opt encrypted** option when creating the overlay network. In this case, Docker creates IPSEC tunnels between each node using the same algorithm as the swarm services traffic. There is therefore a performance degradation to be assessed before going into production. In both cases the keys are changed every 12 hours (see [[https:// | Traffic linked to the management of swarm services is encrypted by default using the AES algorithm in GCM mode. In order to encrypt application-related data traffic, it is possible to use the **--opt encrypted** option when creating the overlay network. In this case, Docker creates IPSEC tunnels between each node using the same algorithm as the swarm services traffic. There is therefore a performance degradation to be assessed before going into production. In both cases the keys are changed every 12 hours (see [[https:// | ||
- | < | + | < |
**CAUTION**: | **CAUTION**: | ||
</ | </ | ||
Ligne 185: | Ligne 185: | ||
</ | </ | ||
- | < | + | < |
**Info**: The **docker_gwbridge** network connects the **ingress** network to the host's network adapter and therefore connects the Docker daemon to the other Docker daemons participating in swarm. | **Info**: The **docker_gwbridge** network connects the **ingress** network to the host's network adapter and therefore connects the Docker daemon to the other Docker daemons participating in swarm. | ||
</ | </ | ||
Ligne 210: | Ligne 210: | ||
</ | </ | ||
- | ====.2 - Creating a Service==== | + | ====1.2 - Creating a Service==== |
Create a nginx service that uses the **nginx-net** network: | Create a nginx service that uses the **nginx-net** network: | ||
Ligne 375: | Ligne 375: | ||
</ | </ | ||
- | ====.3 - Move the Service to another Network overlay==== | + | ====1.3 - Move the Service to another Network overlay==== |
Check the overlay network **nginx-net** on the three nodes: | Check the overlay network **nginx-net** on the three nodes: | ||
Ligne 744: | Ligne 744: | ||
</ | </ | ||
- | ====.4 - DNS container discovery==== | + | ====1.4 - DNS container discovery==== |
The Docker daemon runs an embedded DNS server at address 127.0.0.11 that enables name resolution in a custom network. If this server is unable to perform the resolution, it transfers the request to any external server defined in the container. | The Docker daemon runs an embedded DNS server at address 127.0.0.11 that enables name resolution in a custom network. If this server is unable to perform the resolution, it transfers the request to any external server defined in the container. | ||
Ligne 790: | Ligne 790: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 819: | Ligne 819: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 835: | Ligne 835: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 918: | Ligne 918: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 950: | Ligne 950: | ||
</ | </ | ||
- | ====2.5 - Creating a Custom Network overlay==== | + | ====1.5 - Creating a Custom Network overlay==== |
It is possible to create a custom overlay network. In this case, the existing ingress network must be deleted: | It is possible to create a custom overlay network. In this case, the existing ingress network must be deleted: | ||
Ligne 1356: | Ligne 1356: | ||
{{ : | {{ : | ||
- | **replicas** - specifies the number of replicas | + | |
- | **restart_policy** specifies what happens if the service is stopped. In the case above, docker will try to restart the service **3** times (**max_attempts**) at **10** second intervals (**delay**), | + | |
- | **placement** - specifies where the service should be started. | + | |
Now deploy the stack: | Now deploy the stack: | ||
Ligne 1405: | Ligne 1405: | ||
Return to the Apache Guacamole window in **your** computer' | Return to the Apache Guacamole window in **your** computer' | ||
- | |||
- | {{ : | ||
{{ : | {{ : | ||
Ligne 1427: | Ligne 1425: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 1442: | Ligne 1440: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 1458: | Ligne 1456: | ||
</ | </ | ||
- | < | + | < |
**Important**: | **Important**: | ||
</ | </ |