Skip to content

Commit 06e6e5b

Browse files
authored
Merge branch 'main' into 2025/add/chatVendorService
2 parents 6ade5ee + 67d6a91 commit 06e6e5b

File tree

5 files changed

+39
-7
lines changed

5 files changed

+39
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
- [ ] Service is restartable
2020
- [ ] Service restart is zero-downtime
2121
- [ ] Service has >1 replicas in PROD
22-
- [ ] Service has docker heathlcheck enabled
22+
- [ ] Service has docker healthcheck enabled
2323
- [ ] Service is monitored (via prometheus and grafana)
2424
- [ ] Service is not bound to one specific node (e.g. via files or volumes)
2525
- [ ] Relevant OPS E2E Test are added
26+
- [ ] Grafana dashboards updated accordingly
2627
2728
If exposed via traefik
2829
- [ ] Service's Public URL is included in maintenance mode

charts/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ helmfile-sync: .check-helmfile-installed helmfile.yaml ## Syncs the helmfile con
5050
fi
5151

5252
.PHONY: configure-local-hosts
53-
configure-local-hosts: ## Adds local hosts entries for the machine
54-
@echo "Adding $(MACHINE_FQDN) hosts to /etc/hosts ..."
55-
@grep -q '127.0.0.1 k8s.monitoring.$(MACHINE_FQDN)' /etc/hosts || echo '127.0.0.1 k8s.monitoring.$(MACHINE_FQDN)' | sudo tee -a /etc/hosts
53+
configure-local-hosts: $(REPO_CONFIG_LOCATION) ## Adds local hosts entries for the machine
54+
# "Updating /etc/hosts with k8s $(MACHINE_FQDN) hosts ..."
55+
@set -a; source $(REPO_CONFIG_LOCATION); set +a; \
56+
grep -q "127.0.0.1 $$K8S_MONITORING_FQDN" /etc/hosts || echo "127.0.0.1 $$K8S_MONITORING_FQDN" | sudo tee -a /etc/hosts
57+
@set -a; source $(REPO_CONFIG_LOCATION); set +a; \
58+
grep -q "127.0.0.1 $$K8S_PRIVATE_FQDN" /etc/hosts || echo "127.0.0.1 $$K8S_PRIVATE_FQDN" | sudo tee -a /etc/hosts
5659

5760
.PHONY: helmfile-diff
5861
helmfile-diff: .check-helmfile-installed helmfile.yaml ## Shows the differences that would be applied by helmfile

services/simcore/docker-compose.yml.j2

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,34 @@ services:
337337
cpus: "1.0"
338338
memory: "512M"
339339
340+
wb-auth:
341+
networks:
342+
- monitored # traces
343+
- public # public service use auth
344+
deploy:
345+
replicas: ${WB_AUTH_REPLICAS}
346+
update_config:
347+
parallelism: 2
348+
order: start-first
349+
failure_action: rollback
350+
delay: 10s
351+
restart_policy:
352+
condition: any
353+
delay: 5s
354+
max_attempts: 3
355+
window: 120s
356+
placement:
357+
constraints:
358+
- node.labels.simcore==true
359+
resources:
360+
reservations:
361+
cpus: "0.1"
362+
memory: "256M"
363+
limits:
364+
cpus: "1"
365+
memory: "1G"
366+
# healthcheck: defined in image
367+
340368
storage:
341369
environment:
342370
- S3_ENDPOINT=${S3_ENDPOINT}

services/traefik/docker-compose.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ services:
131131
- traefik.http.middlewares.ops_ratelimit.ratelimit.sourcecriterion.ipstrategy.depth=1
132132
# Platform user auth: Use this middleware to enforce only authenticated users
133133
# https://doc.traefik.io/traefik/middlewares/http/forwardauth
134-
- traefik.http.middlewares.authenticated_platform_user.forwardauth.address=http://${WEBSERVER_HOST}:${WEBSERVER_PORT}/v0/auth:check
134+
- traefik.http.middlewares.authenticated_platform_user.forwardauth.address=http://${WB_AUTH_WEBSERVER_HOST}:${WB_AUTH_WEBSERVER_PORT}/v0/auth:check
135135
- traefik.http.middlewares.authenticated_platform_user.forwardauth.trustForwardHeader=true
136136
- traefik.http.middlewares.authenticated_platform_user.forwardauth.authResponseHeaders=Set-Cookie,osparc-sc2
137137
#

services/traefik/template.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFIK_RULE='${DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFI
3434
PUBLIC_NETWORK=${PUBLIC_NETWORK}
3535
MONITORED_NETWORK=${MONITORED_NETWORK}
3636

37-
WEBSERVER_HOST=${WEBSERVER_HOST}
38-
WEBSERVER_PORT=${WEBSERVER_PORT}
37+
WB_AUTH_WEBSERVER_HOST=${WB_AUTH_WEBSERVER_HOST}
38+
WB_AUTH_WEBSERVER_PORT=${WB_AUTH_WEBSERVER_PORT}
3939

4040
TRAEFIK_DOMAINS_REDIRECT_FROM=${TRAEFIK_DOMAINS_REDIRECT_FROM}
4141
TRAEFIK_DOMAINS_REDIRECT_TO=${TRAEFIK_DOMAINS_REDIRECT_TO}

0 commit comments

Comments
 (0)