Commit Graph

48 Commits

Author SHA1 Message Date
ivan
6efd29da18 fix(brusnika-stage): битые внутрикластерные ссылки + чистка мусорных оверлеев
- django/s3-proxy: образ export-project -> s3-proxy:stable
- message-hub: backend-service.pm -> backend-svc.pm
- processing: documentations-filestream-service -> documentations-filestream
- resources: minio-service -> minio-svc
- documentations: bim-api-service -> backend-service.bim:8000;
  inspections-service -> backend-service.inspections:8000;
  remarks-static-service.remarks -> remarks-static.issues:80
- notes: sarex-* namespace -> реальные, documentations-service -> documentations-api,
  sarex-processing -> ns workflow / workflows-api-service,
  BASE_HOST уралхим -> test.sarex.brusnika.tech/notes
- подключён inspections в clusters/brusnika-stage/kustomization.yaml
- удалены мёртвые копипаст-оверлеи cross-section/faas/prescriptions/comparisons
  (нигде не подключены, побайтовые копии documentations/drawings)

brusnika-prod не трогаем.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 20:51:07 +05:00
ivan
75922e886e ++ 2026-08-29 04:54:22 +05:00
ivan
3a6ee99866 ++ 2026-08-29 02:41:33 +05:00
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
fbdad7f412 ++ 2026-08-12 16:35:37 +05:00
ivan
a9ea2e7d91 change charts 2026-07-30 20:10:37 +05:00
ivan
c318ee0ca3 ++ 2026-07-25 19:57:07 +05:00
ivan
d77e600949 ++ 2026-07-24 15:49:56 +05:00
ivan
a90a6fea22 ++ 2026-07-24 15:47:32 +05:00
ivan
e6ae2d1d31 ++ 2026-07-24 15:22:51 +05:00
ivan
dc603936ab ++ 2026-07-23 19:11:00 +05:00
ivan
09c06170db ++ 2026-07-21 21:19:57 +05:00
ivan
cd67f0211e ++ 2026-07-21 21:16:10 +05:00
emelinda
9f7fa82e0d Migrate notes app to HelmRelease. Add backend and frontend configurations and update related resources. 2026-07-21 18:48:36 +03:00
emelinda
80c4b412c0 Migrate notes app to HelmRelease, remove raw manifest definitions, and update d8-ugmk-prod kustomization and related configurations. 2026-07-21 17:55:26 +03:00
ivan
34d181a017 ++ 2026-07-21 19:15:27 +05:00
ivan
6f32692f88 ++ 2026-07-21 14:48:52 +05:00
ivan
ef9c579d3d ++ 2026-07-21 14:45:45 +05:00
ivan
eee24c8b62 -- 2026-07-21 14:41:55 +05:00
ivan
f6f5137ded ++ 2026-07-21 14:38:34 +05:00
ivan
689024267f ++ 2026-07-21 14:35:04 +05:00
ivan
4a6cd75f64 ++ 2026-07-21 14:30:44 +05:00
ivan
52ab310c65 ++ 2026-07-21 14:22:34 +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
9e8e64d097 ++ 2026-06-07 12:48:24 +05:00
ivan
037f2d9f35 ++ 2026-06-07 12:38:12 +05:00
ivan
d3fc903d40 ++ 2026-06-05 22:48:12 +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
1a64d034f1 contracts,notes,mapper 2026-04-23 11:24:35 +03:00
bb18939f5a contracts,notes,mapper 2026-04-23 11:12:00 +03:00
emelinda
af53d99607 Remove liveness and readiness probes from Notes app backend deployment configuration 2026-04-17 12:37:45 +03:00
emelinda
2d46a2f1cf Enable PG_SSL_MODE with verify-full in Notes app backend deployment configuration 2026-04-17 12:27:28 +03:00
emelinda
a1072c8538 Comment out PG_SSL_MODE environment variable in Notes app backend deployment configuration 2026-04-17 12:24:18 +03:00
emelinda
1b5763e054 Update Notes app backend deployment: scale replicas to 1, disable PG SSL, fix port, and update secret key reference 2026-04-17 12:18:23 +03:00
emelinda
3a2a76fbfe Scale down backend deployment replicas to 0 in Notes app configuration 2026-04-17 12:12:51 +03:00
emelinda
f8dcdfb810 Uncomment backend deployment resource in Notes app kustomization file 2026-04-17 12:12:34 +03:00
emelinda
563e8ae54f Add memory resource requests to PostgreSQL configurations and remove resource limits from backend deployment in Notes app 2026-04-17 12:10:34 +03:00
emelinda
930fbc5044 Reduce frontend deployment replicas from 2 to 1 in Notes app configuration 2026-04-17 12:01:32 +03:00
emelinda
08e8cd9fef Add Notes app with backend, frontend, services, namespace, ConfigMap, and PostgreSQL configuration in yc-k8s-test 2026-04-17 11:59:51 +03:00