Commit f23d99e2 authored by rjshrjndrn's avatar rjshrjndrn
Browse files

Issue #000 feat: labelling nodes, so that nginx runs on specific nodes

Showing with 15 additions and 2 deletions
+15 -2
......@@ -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 }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment