- activities-tasks-configmap: пропатченный tasks.py (request_body Optional — pydantic v2
падал на None в send_to_django_action/send_to_system_log), смонтирован поверх
/opt/sarex/sarex/activities/tasks.py в backend и celery.
ВРЕМЕННО: убрать конфигмап и маунты после выката образа с 76a3fbad5
- backend/celery: SERVER_LOGINGG_BODY_ACTION=0 — не писать request_body/response_body
в Action (csrf-токены и персональные данные в логе действий)
- volumes в патчах продублированы из base полностью: в HelmRelease-патчах списки
заменяются целиком, частичное добавление отрезает base-маунты
SERVER_USE_CHANGELOG=True and SERVER_CHANGELOG_MODE_CELERY=True on backend
and celery (worker already runs on the default queue), rotation enabled via
SERVER_CHANGELOG_ROTATION=True, SERVER_CHANGELOG_PERIOD_IN_DAYS=14.
celery patch now carries the full envs list (copy of base + changelog
vars) since the kustomize merge replaces the list wholesale.
The base django-configmap hardcoded HOST to the yc-k8s-test domain, and every
cluster inheriting it got that value. HOST now reads DJANGO_HOST with the old
value as the default; backend in vad, uralkal and d8-ugmk-prod sets its own
public host. celery is left on the default.
Missing env vars copied from wb for ams-sync, attachments, bi/frontend,
checklists, django (celery, export-project, sarex-backend), documentations
(api, filestream, pdm), eav, flows (backend, celery, frontend), iam,
inspections, issues (backend, celery), rfi, transmittal/worker.
Image tags updated to match wb for flows (backend/celery/frontend), iam.
Known issue, not yet fixed in this commit: several of the copied env
values are wb-specific hosts (*.wb.ru, one uralmine.com) that don't apply
to brusnika-stage — ZITADEL_HOST/ZITADEL_DOMAIN (django, documentations,
iam), DATABASE_HOST/FLOWS_DB_HOST/ISSUES_DB_HOST (checklists, flows),
SUPERSET_HOST (bi), DJANGO_BASE_HOST/SAREX_BACKEND_URL (flows,
inspections), RESOURCES_INTERNAL_HOST/RESOURCE_URL (ams-sync, django,
flows, notes-related). To be corrected in a follow-up commit.
bi/backend.yaml, bim/backend.yaml and notes/backend.yaml were reverted
before this commit (image-tag updates for bi-backend/bim/notes and bi's
SUPERSET_* env additions are not included).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Every services.<svc>.deployment.resources.requests.{cpu,memory} across the
36 uralkal apps (69 HelmRelease/service entries total) is now nulled via a
kustomize patch, so Helm never renders a requests block for these pods on
uralkal — Kubernetes won't reserve CPU/memory for them there.
Where a uralkal patch already existed for that service (13 cases:
documentations api/filestream/pdf-markings-amqp, django backend, flows
backend/celery, pm backend/celery, transmittal backend/worker, bi,
document-link, stamp-verification, message-hub), the null block was added
into that same file. Where no uralkal patch existed yet (55 cases,
including all 13 cde workers and every plain frontend), a new minimal
patch file was added and wired into that app's kustomization.yaml.
vad and the other clusters are untouched — only apps/*/uralkal/* changed.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>