Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DAC-TP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Michiels
DAC-TP
Commits
fe2ad3f8
Commit
fe2ad3f8
authored
4 years ago
by
Pierre Michiels
Browse files
Options
Downloads
Patches
Plain Diff
13.11.2020 21:25
parent
13251052
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TP5 log.txt
+3
-1
3 additions, 1 deletion
TP5 log.txt
with
3 additions
and
1 deletion
TP5 log.txt
+
3
−
1
View file @
fe2ad3f8
...
...
@@ -169,6 +169,7 @@ Commande pour exécuter le playbook ansible en prennant en compte des hostname d
Modification d'architecture:
Sur les 4 workers, l'une d'entre elles sera un worker et aussi le reverse-proxy.
(172.28.100.90)
(https://towardsdatascience.com/sample-load-balancing-solution-with-docker-and-nginx-cf1ffc60e644)
Dockeriser nginx:
Après avoir créée l'image pour nginx, je l'a teste sur ma mach. virt. avec les commandes
...
...
@@ -179,4 +180,5 @@ url: 127.0.0.1:9080
Après, je met en place cette image et container via ansible sur la machine (172.28.100.90).
Par soucis de configuration, j'ai abandonné les modifications dans nginx.conf pour avoir un fichier propre pour mon reverse_proxy: reverse_proxy.conf
Même commande pour lancer le playbook ansible:
#ansible-playbook -i hosts.yml serveur_go_different_hostname_for_ip.yml --extra-vars "@workers_hostname.json" --private-key ssh-private-key.txt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment