Реализовать лабораторную 7: mTLS, OpenBao и защита worker

This commit is contained in:
wpyatzy
2026-12-04 20:35:40 +03:00
parent 20afc2c790
commit 1b865eac83
146 changed files with 9552 additions and 87 deletions
+7
View File
@@ -0,0 +1,7 @@
"""Reload HAProxy without replacing shared network namespaces."""
import subprocess,time
for role in ['db','s3','broker','cache','collector','prometheus','loki','tempo','grafana','lb','api','worker','publisher','observer','janitor']:
ids=subprocess.check_output(['./scripts/compose.sh','ps','-q',role],text=True).split()
if ids:subprocess.run(['docker','kill','--signal','USR2',*ids],check=True,stdout=subprocess.DEVNULL)
time.sleep(6)
print('Mesh reloaded; old connections bounded by hard-stop-after5s')