Skip to content

Commit 1aa8e2e

Browse files
committed
merge
1 parent 4d2e914 commit 1aa8e2e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

services/registry/docker-compose.yml.j2

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ services:
4545
failure_action: rollback
4646
parallelism: 1
4747
placement:
48-
constraints:
48+
constraints: ${OPS_REGISTRY_PLACEMENT_CONSTRAINTS}
4949
- node.labels.ops==true
5050
resources:
5151
limits:
5252
memory: 1G
53-
cpus: '6'
53+
cpus: ${OPS_REGISTRY_CPU_LIMIT}
5454
reservations:
5555
memory: 128M
5656
cpus: '0.1'
@@ -121,8 +121,7 @@ services:
121121
parallelism: 1
122122
placement:
123123
constraints:
124-
- node.labels.gpu!=true
125-
- node.labels.dynamicsidecar!=true
124+
- node.labels.ops==true
126125
resources:
127126
limits:
128127
memory: 1G

services/registry/template.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
STACK_NAME=${STACK_NAME}
22

33
OPS_REGISTRY_REPLICAS=${OPS_REGISTRY_REPLICAS}
4+
OPS_REGISTRY_PLACEMENT_CONSTRAINTS=${OPS_REGISTRY_PLACEMENT_CONSTRAINTS}
5+
OPS_REGISTRY_CPU_LIMIT=${OPS_REGISTRY_CPU_LIMIT}
46

57
REGISTRY_DOMAIN=${REGISTRY_DOMAIN}
68

0 commit comments

Comments
 (0)