Commit Graph

830 Commits

Author SHA1 Message Date
emelinda
91d6aa41d6 Add HelmRelease for pdf-markings-amqp in d8-ugmk-prod and update kustomization configuration 2026-10-26 09:53:21 +05:00
ivan
b3a1fe63c2 ++ 2026-10-24 12:53:11 +05:00
ivan
10d962dce5 ++ 2026-10-24 12:30:16 +05:00
ivan
3cfe74c301 ++ 2026-10-24 12:18:37 +05:00
ivan
c36406209f issues: SAREX_API from env, in-cluster Django in uralkal, vad, ugmk
The base production.py hardcoded SAREX_API = https://srx.wb.ru, ignoring the
env, so issue export (GET /api/core/users/<id>/) failed from closed contours
with CERTIFICATE_VERIFY_FAILED. Read it from SAREX_API with the old value as
default; wb keeps it.

uralkal, vad, d8-ugmk-prod: SAREX_API -> backend-svc.django:80 (server-side
calls, no TLS), and SAREX_HOST set to the contour's public host so links in
exports and notifications stay external.
2026-10-24 12:01:25 +05:00
emelinda
ced8b7bc04 Update wb configurations: increase filestream resource limits, fix BIM_API_URL references, and add Istio routing for /bimv2/api/ 2026-10-23 18:09:28 +05:00
ivan
7d25e214cd ++ 2026-10-23 17:06:06 +05:00
ivan
934241a9b1 premises/d8-ugmk-prod: privileged pod-policy on the namespace
Deckhouse admission-policy-engine (baseline) rejected the pods because
istio-init needs NET_ADMIN and NET_RAW. Label the namespace
security.deckhouse.io/pod-policy=privileged like the other app namespaces in
ugmk.
2026-10-23 16:38:08 +05:00
ivan
54c036b23e premises in ugmk, inspections VS name fix, remarks contour image, debug pod sleep
premises: d8-ugmk-prod overlay (ugmk Kafka CA mounted, prod-sized requests
dropped), wired into the cluster, /premises/api/ routed on sarex.uralmine.com.
Terraform side is infra/terraform 856ab54.

istio-config d8-ugmk-prod, vad, uralkal: inspections-api reused the name
flows-api-virt-service, so two VirtualServices collided and one of
/flows/api/ and /inspections/api/ was lost. It is now
inspections-api-virt-service.

remarks base frontend image -> remarks-frontend:contour_013c5091.
psql-tools-debug in uralkal sleeps forever so it can be exec'd into.
2026-10-23 16:07:19 +05:00
ivan
7dbefd16c9 ++ 2026-10-22 22:19:52 +05:00
ivan
30eb5c554f mapper/uralkal: own env with in-cluster addresses
The overlay inherited SaaS prod hosts from base (api.sarex.io, lk.sarex.io),
which fail TLS verification from the closed contour. Point documentations,
flows, django and notes at their uralkal services; REDIS_USE and TIMEOUT
unchanged.
2026-10-22 21:32:36 +05:00
ivan
005e88d91e drawings/uralkal: workflow env for DWG export
drawings-api builds its workflows client from WORKFLOW_HOST, which no cluster
set, so POST /internal/v1/exports failed with 'unsupported protocol scheme'.
Add WORKFLOW_HOST and the other export settings from the drawings-api chart
with uralkal service addresses (processing, drawings, attachments).
2026-10-22 21:25:53 +05:00
ivan
5e87556471 ++ 2026-10-22 15:13:08 +05:00
ivan
bbe4d60705 notes/uralkal: own env with in-cluster addresses
The overlay inherited base env copied from SaaS prod: DJANGO_HOST
https://lk.sarex.io, workspaces/workflows on api.sarex.io and PG_SSL_MODE
verify-full. From the closed contour every request to django failed with
CERTIFICATE_VERIFY_FAILED. Point django, workspaces and workflows at their
uralkal services, attachments at its real port 8000, disable postgres SSL
(the uralkal server has none). FAAS_SERVICE and RESOURCE_URL stay as in base:
neither service exists in uralkal.
2026-10-22 14:41:39 +05:00
ivan
d8ed05e07f attachments/uralkal: S3 endpoint straight to MinIO
YANDEX_S3_ENDPOINT_URL 10.133.0.245:9000 instead of s3-proxy, same as
documentations; the minioadmin credentials come from minio/apps/attachments
(terraform contour).
2026-10-22 12:41:35 +05:00
ivan
e0dcd7372c ++ 2026-10-22 11:26:49 +05:00
ivan
0c651d3d92 comparisons/uralkal: own tasks-execution-config
Overrides the base tasks-execution-config-comparisons-v2 ConfigMap (mounted
at /etc/app/tasks-execution-config.json) for uralkal: all 16 workflow tasks
run on the k8s executor with 2 CPU / 4Gi requests.
2026-10-22 00:55:17 +05:00
ivan
7a3d4740bc comparisons/uralkal: documentations external host -> internal service
comparisons-api-v2 calls GET /api/v1/bundles and /api/v1/workspaces on
DOCUMENTATIONS_EXTERNAL_HOST from inside the pod. sarex.local.uralkali.com
is signed by the customer's internal CA, which the image does not trust
(x509: unknown authority), so creating a comparison failed with 500. The
documentations service serves the same /api/v1 paths internally.
2026-10-22 00:14:15 +05:00
ivan
0c0f5c7f55 ++ 2026-10-21 20:32:59 +05:00
ivan
ca9184405a ++ 2026-10-21 20:08:28 +05:00
ivan
f9325ca612 ++ 2026-10-21 18:44:23 +05:00
ivan
6bacdace28 ++ 2026-10-21 18:13:37 +05:00
ivan
ddb2fefdf0 pdm drawings URL, notes routes in uralkal, notes contour frontend image
documentations base: pdm-api pointed DRAWINGS_INTERNAL_URL at
drawings-api-service:80, which does not exist in the clusters inheriting
base (vad, d8-ugmk-prod, sarex-contour, uralkal, yc-k8s-test); their drawings
service is backend-service:8000. brusnika and wb keep their own pdm copies.

istio-config uralkal: /notes/api/ -> backend-service.notes:8000 (rewrite
/api/) and /notes/static/ -> frontend-service.notes:80.

notes base frontend image -> notes-frontend:contour_5ff34172.
2026-10-21 17:27:59 +05:00
ivan
91fed827b4 ++ 2026-10-21 17:07:52 +05:00
ivan
be78040179 cross-section: contour image in base, /cross-section/static/ route in uralkal
Base image moves to cross-section-app:contour_c5e5d476 for every cluster
inheriting it. istio-config uralkal routes /cross-section/static/ to
cross-section-static:80.
2026-10-21 16:35:01 +05:00
ivan
2e4879aa53 comparisons/uralkal: PGSSLMODE=disable
comparisons-api-v2 builds its postgres URI without sslmode, so both lib/pq
(migrations) and pgx (api) default to requiring TLS, which the uralkal
postgres does not serve.
2026-10-21 16:29:54 +05:00
ivan
86d8a066cd comparisons: v2 backend in uralkal, routes, contour frontend image
uralkal runs comparisons-api-v2:contour_9a2bab4e (built with bash so the
Vault Agent files can be sourced): migrations up before exec ./api, port 8080
behind the unchanged service port 8000, v2 env schema with uralkal service
addresses. istio-config uralkal routes /comparisons/api/ and
/comparisons/static/. Base frontend image moves to
comparisons-frontend:contour_0570a1f1 for every cluster using base.
2026-10-21 16:22:15 +05:00
ivan
03f6eef5b9 ++ 2026-10-21 15:41:09 +05:00
ivan
2c1ab636ef ++ 2026-10-21 14:10:59 +05:00
ivan
cad5668b5b ++ 2026-10-21 13:31:39 +05:00
emelinda
f22d5cc773 **Update d8-ugmk-prod configurations to fix service references and ensure proper workflow and API integration**
- Replace incorrect `WORKFLOWS_HOST` and `WORKFLOWS_URL` references across multiple YAML files to point to `backend-svc.processing.svc.cluster.local`.
- Update `DOCUMENTATIONS_URL` to use the accurate service name `backend-api-svc.documentations.svc.cluster.local`.
- Adjust `SAREX_API` and related settings for consistency using `https://sarex.uralmine.com`.
- Refactor `production-configmap.yaml` to align environment variable overrides and remove obsolete hardcoded values.
- Resolve key INFRA-3005 issues to prevent Excel export and notification failures caused by invalid DNS and configuration.
2026-10-20 18:01:28 +03:00
emelinda
709985b4a6 **Update d8-ugmk-prod configuration: replace SAREX_API and related endpoints with sarex.uralmine.com and adjust production ConfigMap.** 2026-10-20 17:42:13 +03:00
8c8a3b7cc2 Merge branch 'pdm/update_wb_fix_copy' into 'master'
fix: adding marks via rabbit value

See merge request infra/iac!7
2026-10-16 09:49:35 +00:00
diamondrigido
be58c1cddd fix: adding marks via rabbit value 2026-10-16 11:32:59 +02:00
ivan
8f03e59c97 ++ 2026-10-16 13:54:26 +05:00
ivan
41f2f2f539 ++ 2026-10-16 13:39:59 +05:00
ivan
fc78f0f145 ++ 2026-10-16 13:39:59 +05:00
emelinda
a30c689d50 Merge remote-tracking branch 'origin/master' 2026-10-15 18:37:31 +03:00
emelinda
be09be5067 Update SYSTEM_LOG_URL references to backend-svc.system-log in pdm and filestream configurations 2026-10-15 18:36:10 +03:00
ivan
7f8263ede6 ++ 2026-10-15 20:18:09 +05:00
ivan
2e6fd7bfe8 ++ 2026-10-15 20:15:38 +05:00
emelinda
1067163ef7 Merge remote-tracking branch 'origin/master' 2026-10-15 18:00:43 +03:00
emelinda
c29ad3284d Add HelmRelease configuration for worker in system-log for d8-ugmk-prod 2026-10-15 17:08:24 +03:00
ivan
96c594efe1 ++ 2026-10-15 18:18:38 +05:00
ivan
b36a349aff ++ 2026-10-15 16:58:22 +05:00
ivan
fd78c1bc0b ++ 2026-10-15 13:48:11 +05:00
ivan
ff27b79765 ++ 2026-10-15 13:30:21 +05:00
ivan
7f48b1ad0d django: take HOST from DJANGO_HOST
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.
2026-10-14 16:25:11 +05:00
ivan
9a373f670c brusnika-stage: manage orchestrator and documentations hasher/pdf-markings-amqp in git
Manifests exported from the live cluster with server-side and Helm/Lens
metadata stripped; selectors and pod labels kept as they are so Flux takes
the objects over without restarting pods.

orchestrator: cde API, its Service and ServiceAccount, the v1 workers
installed by the old helm release cde and the v2 workers rolled out today.
documentations: hasher and pdf-markings-amqp. Secrets (cde-secret,
hasher-*, postgres-secret, rabbitmq, yc-s3, dockerhub, regcred) stay in the
cluster only. The old apps/cde/brusnika-stage overlay (namespace contracts,
HelmRelease cde) was never wired; its kustomization now lists only these
manifests.
2026-10-14 15:27:23 +05:00
ivan
e4d145ec95 ++ 2026-10-14 14:49:18 +05:00