Commit Graph

53 Commits

Author SHA1 Message Date
ivan
742a811313 ugok: rebuild all apps as standalone HelmReleases, drop vault-native base
Root cause: apps/*/ugok extended ../base via kustomize patches, but base
is vault-native (Vault Agent Injector annotations + serviceAccount +
command/args wrapper sourcing /vault/secrets/*). The Vault Agent Injector
webhook IS deployed cluster-wide in ugok (infrastructure/vault/ugok), so
it actually intercepted these pods — but no per-app Vault roles/secrets
were ever provisioned there, so every pod hung in Init.

Fix, mirrored from apps/*/wb (which never extends base for these apps):
rebuild every affected app as a standalone HelmRelease per service, with
no serviceAccount/podAnnotations override and no vault-sourcing wrapper
in command/args (dropped entirely, or replaced with the real functional
command where base's wrapper did double duty — e.g. celery invocations,
pm's `python manage.py migrate`, pdf-markings-amqp's `start-amqp-worker`).

Also recreates ConfigMaps that were referenced by name in volumes but
never actually captured into the repo (eav, subscriptions, pm, issues,
django) — copied verbatim from the cluster dump and verified byte-for-byte
against it.

Incidental bugs found and fixed along the way:
- message-hub was still extending base (missed in an earlier pass).
- system-log's patches targeted services.api/services.worker while base
  uses services.backend for both — would have produced duplicate
  Deployments per release, one of them permanently vault-broken.
- contracts' real container port is 8080, not base's default 8000.
- drawings' Service.targetPort (8000) didn't match the real containerPort
  (8080), breaking routing.
- inspections/ugok was missing entirely from this pass.

apps/documentations: intentionally left without a redis Deployment even
though VALKEY_ADDR now points at one — the cluster dump has no redis in
that namespace, so provisioning one is a scope decision, not a bug fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 01:22:21 +05:00
ivan
ded06de176 change images ugok 2026-08-29 00:32:55 +05:00
ivan
e5c01279b7 ugok: bootstrap application layer on universal-chart from cluster dump
Adds apps/<app>/ugok overlays for 31 applications, derived strictly from
a live cluster dump (kubectl get deployment/service/configmap/secret),
following the wb overlay pattern (standalone HelmRelease patches on
universal-chart, plain k8s Secret + secretKeyRef instead of Vault Agent
since the ugok cluster has zero Vault usage cluster-wide).

- processing (workflow namespace) does not extend base: base is
  vault-native, ugok is not, so it's four standalone HelmReleases
  modeled on apps/processing/wb/*.
- issues/redis and django/redis are raw Deployments patched via JSON6902.
- documentations/pdf-markings and django/auth-flow-frontend,
  export-project are copied in as standalone files (base has no
  HelmRelease for them, and kustomize forbids cross-overlay references
  outside a directory's own tree).
- Images and images-with-registry updated to match wb where the same
  build lineage applies; left as-is where the wb tag carries a distinct
  client/cluster name (donstroi1, brusnika_*, dev4, UGOK_*, ugok1_*) or
  points at a different image repository entirely.
- Missing backend envs backfilled from wb where safe (internal
  svc.cluster.local refs, feature flags, already-established ugok
  domains); skipped where wb-specific (external DB/Kafka hosts, TLS CA
  content, features not deployed in ugok like gatekeeper/Superset).
- message-hub patch was missing its entire env block from the original
  bootstrap; rebuilt from the raw dump (not wb, whose Kafka/DB config is
  incompatible) plus a handful of small env gaps found while
  cross-checking every ugok app's rendered envs against the raw dump.

clusters/ugok/kustomization.yaml keeps the apps section commented out —
not wired into the Flux Kustomization yet, pending review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 23:41:50 +05:00
ivan
935f8fa372 Revert "brusnika-stage: align images with wb, add missing backend envs"
This reverts commit e18124c73a.
2026-08-28 19:03:00 +05:00
ivan
e18124c73a brusnika-stage: align images with wb, add missing backend envs
Образы подтянуты под теги wb там, где это один и тот же сервис.
В backend-файлах добавлены недостающие env-переменные — с адаптацией
доменов под конвенцию brusnika-stage (test.sarex.brusnika.tech), без
слепого копирования wb-специфичных значений (доменов/секретов).

Не тронуты apps/comparisons/brusnika-stage/backend.yaml,
apps/faas/brusnika-stage/backend.yaml, apps/notes/brusnika-stage/backend.yaml —
по содержимому принадлежат другим приложениям/клиенту, требуют отдельного
разбора.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 16:00:24 +05:00
ivan
dff652819a wb: set requests/limits from 14d VictoriaMetrics utilization
Проставлены requests и limits в apps/*/wb на основе p95/max
потребления CPU и памяти за 14 дней (scripts/wb-resource-utilization.sh).
request ~ p95*1.2, limit ~ max*1.5-2, с полом 10m/20m CPU и 32Mi/48Mi
памяти. documentations/pdf-markings: request урезан до пола (10m/32Mi),
limit оставлен на исходном уровне (2 CPU/8Gi) — редко используется, но
при вызове может понадобиться весь объём.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 15:36:59 +05:00
ivan
599eba2031 ++ 2026-08-13 01:04:12 +05:00
ivan
e854d6064a ++ 2026-08-12 23:21:34 +05:00
ivan
fbdad7f412 ++ 2026-08-12 16:35:37 +05:00
ivan
390eec0d1f ++ 2026-08-07 13:03:50 +05:00
ivan
f2223ceab4 ++ 2026-08-07 12:52:30 +05:00
emelinda
3317bbf5cd Update celery and backend in d8-ugmk-prod: enable caching, configure Redis host/port, and adjust environment variables for deployment consistency 2026-08-05 16:02:56 +03:00
emelinda
8447ab76bb Add frontend HelmRelease to d8-ugmk-prod and configure Istio route for s3-proxy in Istio config 2026-08-05 15:33:56 +03:00
emelinda
2dbc0b9266 add python manage.py makemigrations pm --noinput to pm entripoint 2026-08-05 15:09:35 +03:00
emelinda
2993c12487 Add python manage.py migrate execution to d8-ugmk-prod backend entrypoint script 2026-08-05 15:03:17 +03:00
emelinda
028abbe4d2 Merge remote-tracking branch 'origin/master' 2026-08-05 14:52:47 +03:00
emelinda
ae70f63fa3 Update celery and backend image tags in d8-ugmk-prod to production_fa0f1551 and adjust deployment configuration accordingly. 2026-08-05 14:51:51 +03:00
ivan
bc7f8c4950 ++ 2026-08-05 16:42:30 +05:00
emelinda
16c1c03b9e Rename backend-s3 HelmRelease to backend in d8-ugmk-prod and update deployment configuration with environment variable management and migration script adjustments. 2026-08-05 14:13:14 +03:00
emelinda
3cd5600f23 Add backend-s3, celery, and redis HelmReleases to d8-ugmk-prod: configure charts, deployment settings, and include in cluster Kustomization 2026-08-05 13:44:47 +03:00
ivan
1e1280d74e ++ 2026-08-04 18:54:52 +05:00
ivan
84c51343f9 ++ 2026-07-31 17:32:56 +05:00
ivan
396702429f ++ 2026-07-31 17:10:00 +05:00
ivan
800718737d ++ 2026-07-31 17:01:48 +05:00
ivan
7868779771 ++ 2026-07-31 15:12:16 +05:00
ivan
d6a830db05 ++ 2026-07-31 14:54:33 +05:00
ivan
c7b749fd09 ++ 2026-07-31 12:55:03 +05:00
emelinda
9b0942f228 Migrate various applications to manifest definitions and HelmRelease. Add them to the appropriate namespaces and update related configurations. 2026-07-16 14:01:21 +03:00
emelinda
9cff5d6e39 Add example .env files and detailed configuration documentation for mapper, message-hub, notes, pm, and prescriptions services. 2026-07-13 23:48:41 +03:00
547cd4ecf4 ++ bump all test postgresql restores 2026-06-30 13:50:15 +03:00
9bfb5cc3b8 restore buisness owned postgresql from company dumps 2026-06-29 18:45:57 +03:00
1565d9550e restore buisness owned postgresql from company dumps 2026-06-29 17:54:02 +03:00
1cc5f1c72e ++ bump business postgresql to 13.0.10 2026-06-29 17:54:02 +03:00
ivan
3039fe2b53 ++ 2026-06-07 14:16:16 +05:00
ivan
788566cc3c ++ 2026-06-05 13:32:52 +05:00
ivan
c5ee8bb1c2 ++ 2026-06-05 13:22:53 +05:00
26639b6208 test(db): right-size postgres requests to observed usage 2026-05-21 11:53:50 +03:00
663b06a529 test: reduce business app requests based on current yc-k8s-test usage 2026-05-21 11:46:11 +03:00
9d9de98a1e lower requests 2026-05-21 11:08:01 +03:00
41a8b47dd7 message hub + pm 2026-04-27 12:14:21 +03:00
0d6dd1c1b3 message hub + pm 2026-04-27 11:03:20 +03:00
ivan
11793c71d4 ++ 2026-04-24 13:16:32 +05:00
emelinda
d214b3ea8c Add Redis deployment and service to yc-k8s-test configuration, update kustomization and environment references. 2026-04-17 17:14:42 +03:00
emelinda
f8200091fb Update PM backend deployment: update RabbitMQ secret reference 2026-04-17 16:51:28 +03:00
emelinda
f817578733 Update Celery deployment: update RabbitMQ secret reference 2026-04-17 16:51:09 +03:00
emelinda
be5c715b39 Remove unused ch-cert volume and related volumeMounts from PM backend deployment configuration 2026-04-17 16:50:36 +03:00
emelinda
f04a93fe12 Enable backend and Celery deployments in PM app kustomization configuration 2026-04-17 16:46:12 +03:00
emelinda
8d2a5e62ef Simplify PM app backend and Celery deployments: remove unused environment variables, streamline secret references, and set default values for configuration. 2026-04-17 16:40:38 +03:00
emelinda
addd56ca74 Update Celery deployment: remove unused ConfigMap volume, set default Kafka configuration, and update RabbitMQ secret references 2026-04-17 16:10:24 +03:00
emelinda
40fb627202 Simplify PM app backend and Celery deployments: remove unused environment variables, update secret references, and set default values for configuration. 2026-04-17 15:57:22 +03:00