Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
f23d99e2
Commit
f23d99e2
authored
5 years ago
by
rjshrjndrn
Browse files
Options
Download
Patches
Plain Diff
Issue #000 feat: labelling nodes, so that nginx runs on specific nodes
parent
9e0c049a
sunbird-monitoring-release-2.2.0
sunbird-monitoring-release-2.2.0_aa4568b
sunbird-monitoring-release-2.1.0
sunbird-monitoring-release-2.1.0_RC1
monitoring-fixes
loadtest
fixed-monitoring
before-categorisation
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-proxy/templates/stack-proxy.yml
+15
-2
ansible/roles/stack-proxy/templates/stack-proxy.yml
with
15 additions
and
2 deletions
+15
-2
ansible/roles/stack-proxy/templates/stack-proxy.yml
+
15
−
2
View file @
f23d99e2
...
...
@@ -3,11 +3,24 @@ version: '3.3'
services
:
proxy
:
image
:
"
{{hub_org}}/{{image_name}}:{{image_tag}}"
# This is a workaround for remote ip address is not visible nginx
ports
:
-
"
443:443"
-
"
80:80"
-
mode
:
host
target
:
80
published
:
80
protocol
:
TCP
-
mode
:
host
target
:
443
published
:
443
protocol
:
TCP
deploy
:
replicas
:
{{
proxy_replicas
}}
# Nginx should run on specific nodes,
# so that we can configure loabalancer backend pool
# Make sure that replicas should match the number of physical nodes
# allocated for nginx
constraints
:
-
"
node.labels.nginx=1"
resources
:
reservations
:
memory
:
"
{{
proxy_reservation_memory
}}"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets