Commit Graph

59 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
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
e854d6064a ++ 2026-08-12 23:21:34 +05:00
ivan
fbdad7f412 ++ 2026-08-12 16:35:37 +05:00
ivan
3bb9514f1e ++ 2026-08-04 19:22:37 +05:00
ivan
16477cc6fd ++ 2026-08-04 18:56:41 +05:00
ivan
a8a4f5e50d ++ 2026-08-04 18:33:39 +05:00
ivan
987e9e3a7f ++ 2026-08-01 12:50:10 +05:00
ivan
50cee9c4d3 ++ 2026-07-31 18:40:52 +05:00
ivan
d6a830db05 ++ 2026-07-31 14:54:33 +05:00
ivan
a9ea2e7d91 change charts 2026-07-30 20:10:37 +05:00
emelinda
a64f539f3d Update Vault role for attachments app in d8-ugmk-prod configuration 2026-07-18 22:13:06 +03:00
emelinda
ccbfd63a08 Migrate attachments app to HelmRelease in d8-ugmk-prod, enable in kustomization, and update related configurations. Remove legacy namespace resource. 2026-07-18 21:43:49 +03:00
emelinda
3febe6382b Remove attachments app from d8-ugmk-prod kustomization and its namespace resource 2026-07-18 20:47:24 +03: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
62c06d3619 Merge branch 'master' of gitlab.sarex.io:infra/iac into docs 2026-07-15 16:39:45 +03:00
emelinda
182787e33b Migrate srx-admin from raw manifest definitions to HelmRelease and move from control-interface namespace to django. Remove deprecated resources and update related configurations. 2026-07-15 16:22:37 +03:00
emelinda
d191375321 Add namespace.yaml to d8-ugmk-prod kustomization 2026-07-15 15:35:50 +03:00
emelinda
2b1bc53e1b Add attachments namespace definition to d8-ugmk-prod 2026-07-15 15:35:30 +03:00
ivan
ed80fd33e6 ++ 2026-07-15 16:32:44 +05:00
emelinda
c70e30729c add attachments, transmittal, workspaces docs 2026-07-13 17:24:47 +03:00
547cd4ecf4 ++ bump all test postgresql restores 2026-06-30 13:50:15 +03:00
297cce9621 ++ bump business postgresql to 13.0.14 2026-06-30 12:12:19 +03:00
bb32344acd bump postgresql chart 2026-06-30 11:04:16 +03:00
bad77b52f1 restore buisness owned postgresql from company dumps 2026-06-29 19:22:02 +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
de420f4f5f ++ 2026-06-07 15:54:18 +05:00
ivan
ecf9b7fb5d ++ 2026-06-05 17:16:18 +05:00
26639b6208 test(db): right-size postgres requests to observed usage 2026-05-21 11:53:50 +03:00
emelinda
e37f20dcdc Remove namespace.yaml from attachments kustomization 2026-04-24 18:17:03 +03:00
emelinda
8fd2a859fc Update attachments HelmRelease chart version to 0.1.9 2026-04-24 18:11:54 +03:00
emelinda
98e52a13c5 Uncomment helmrelease.yaml in attachments kustomization 2026-04-24 18:08:13 +03:00
emelinda
ccf4091be7 Clean up attachments kustomization: comment out unused patches and HelmRelease resources 2026-04-24 18:05:00 +03:00
emelinda
315758fa99 Remove outdated comment in attachments HelmRelease configuration 2026-04-24 17:56:56 +03:00
emelinda
a835c7779a Update attachments app: increase default replica count to 2 2026-04-24 17:33:14 +03:00
emelinda
fc728939d1 Remove unused ServiceAccount from attachments app and update HelmRelease configuration 2026-04-24 17:26:39 +03:00
emelinda
82c501dc71 Migrate attachments app to HelmRelease: update replicas and kustomization configuration 2026-04-24 17:24:23 +03:00
emelinda
bc8698b5db Migrate attachments app to HelmRelease: replace Deployment and Service with HelmRelease and update kustomization configuration. 2026-04-24 17:21:56 +03:00
085c9841b0 attachments 2026-04-23 14:04:39 +03:00
emelinda
a6f6c228ef Update container image to "attachments:feature_6238c882" in attachments app deployment configuration 2026-04-14 15:38:05 +03:00
emelinda
50c0f46ef7 Enable PostgreSQL resource in yc-k8s-test kustomization configuration 2026-04-14 15:34:44 +03:00
emelinda
e2e4c1f20f Comment out unused PostgreSQL resource in yc-k8s-test kustomization configuration 2026-04-14 15:32:39 +03:00
emelinda
21cbca6bb4 Update database secret key from 'host' to 'hostname' in attachments app deployment configuration 2026-04-14 15:29:09 +03:00
emelinda
bdd891e161 Switch to secret-based environment variables for database configuration in attachments app deployment 2026-04-14 15:24:20 +03:00
emelinda
cbd0a47a3b Update database secret references in attachments app deployment configuration 2026-04-14 15:11:24 +03:00