File tree Expand file tree Collapse file tree 5 files changed +39
-7
lines changed
Expand file tree Collapse file tree 5 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 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
2728If exposed via traefik
2829- [ ] Service's Public URL is included in maintenance mode
Original file line number Diff line number Diff 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
5861helmfile-diff : .check-helmfile-installed helmfile.yaml # # Shows the differences that would be applied by helmfile
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 }/v 0/auth :check
134+ - traefik .http .middlewares .authenticated_platform_user .forwardauth .address =http ://${WB_AUTH_WEBSERVER_HOST }:${WB_AUTH_WEBSERVER_PORT }/v 0/auth :check
135135 - traefik .http .middlewares .authenticated_platform_user .forwardauth .trustForwardHeader =true
136136 - traefik .http .middlewares .authenticated_platform_user .forwardauth .authResponseHeaders =Set -Cookie ,osparc -sc 2
137137 #
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFIK_RULE='${DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFI
3434PUBLIC_NETWORK = ${ PUBLIC_NETWORK }
3535MONITORED_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
4040TRAEFIK_DOMAINS_REDIRECT_FROM = ${ TRAEFIK_DOMAINS_REDIRECT_FROM }
4141TRAEFIK_DOMAINS_REDIRECT_TO = ${ TRAEFIK_DOMAINS_REDIRECT_TO }
You can’t perform that action at this time.
0 commit comments