Merge branch 'master' into rmk
This commit is contained in:
commit
eb115fc94e
10
CLAUDE.md
10
CLAUDE.md
@ -25,7 +25,7 @@
|
||||
|
||||
| Путь | Что |
|
||||
|---|---|
|
||||
| `clusters/` | 17 точек входа Flux + шаблон `contour` — **источник истины «что где раскатано»** |
|
||||
| `clusters/` | Точки входа Flux + шаблон `contour` — **источник истины «что где раскатано»** |
|
||||
| `infrastructure/` | 44 платформенных компонента |
|
||||
| `apps/` | 39 прикладных сервисов |
|
||||
| `docs/apps/` | 34 mermaid-диаграммы по сервисам + `README.md` с доменной группировкой |
|
||||
@ -40,12 +40,12 @@
|
||||
|
||||
**Кластер.** `clusters/<cluster>/kustomization.yaml` — плоский список `../../apps/<app>/<cluster>`. Инфраструктура подключается двумя разными способами:
|
||||
|
||||
- `d8-ugmk-prod`, `sarex-contour`, `ugok`, `uralkal`, `vad` — прямо в корневом kustomization как `../../infrastructure/<comp>/<c>`;
|
||||
- `d8-ugmk-prod`, `ugok`, `uralkal`, `vad` — прямо в корневом kustomization как `../../infrastructure/<comp>/<c>`;
|
||||
- `brusnika-prod`, `brusnika-stage`, `vk-infra`, `vk-prod` — через `clusters/<c>/infrastructure/kustomization.yaml`, который ссылается на оверлеи `../../../infrastructure/<comp>/<c>` (`base` + патч HelmRelease + сопутствующие манифесты компонента);
|
||||
- `wb`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02` — через `clusters/<c>/infrastructure/kustomization.yaml`, который ссылается на `../../../infrastructure/<comp>` (резолвится в `base`), а различия лежат в `clusters/<c>/infrastructure/patches/*.yaml`;
|
||||
- `stand` — послойно: `layers.yaml` объявляет Flux-`Kustomization` `00-vault → 10-mesh → 20-data → 30-platform → 40-routing` (каталоги `clusters/stand/<NN>-<layer>/`). Слои ссылаются на оверлеи `infrastructure/<comp>/contour-template`, а значения контура (`${STORAGE_CLASS}`, `${HOST_*}`, `${GATEWAY_REPLICAS}`) Flux подставляет через `postBuild.substituteFrom` из ConfigMap `contour-vars`.
|
||||
|
||||
Кластеры с приложениями: `asterus`, `brusnika-prod`, `brusnika-stage`, `d8-ugmk-prod`, `sarex-contour`, `ugok`, `uralkal`, `vad`, `wb`, `yc-ecp`, `yc-k8s-test`. Только инфраструктура: `stand`, `vk-infra`, `vk-prod`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02`. Шаблон: `contour`.
|
||||
Кластеры с приложениями: `asterus`, `brusnika-prod`, `brusnika-stage`, `d8-ugmk-prod`, `ugok`, `uralkal`, `vad`, `wb`, `yc-ecp`. Только инфраструктура: `stand`, `vk-infra`, `vk-prod`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02`. Шаблон: `contour`.
|
||||
|
||||
**Приложение.** `apps/<app>/base/` — по одному `.yaml` на процесс (`backend.yaml`, `celery.yaml`, `frontend.yaml`) плюс `namespace.yaml`; оверлеи в `apps/<app>/<cluster>/`. Namespace = имя приложения. Рядом с манифестами лежит документация: `CONFIGURATION.md` (все env-переменные и откуда берутся), `ENDPOINTS.md` (исходящие HTTP-вызовы), `openapi.yaml` (входящий контракт), `.env.example`. Если процессов несколько — файлы с префиксом процесса: `api.ENDPOINTS.md`, `pdm.CONFIGURATION.md`, `frontend.CONFIGURATION.md`.
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
## Ловушки
|
||||
|
||||
- **`dsinv/`** — оверлей есть у 25 приложений, но `clusters/dsinv/` не существует. Это материализованный снимок живого контура WB, а не источник деплоя. Развёрнутым не считать.
|
||||
- **Две несовместимые конвенции оверлеев** (`IAC-CATALOG.md` §5.3.4). `d8-ugmk-prod`, `yc-k8s-test`, `vad`, `uralkal`, `sarex-contour`, `dsinv` наследуют `base` и патчат его. `brusnika-prod`, `brusnika-stage`, `yc-ecp`, `asterus` — полные копии HelmRelease, которые молча дрейфуют от base. Правка `base` на них не влияет. **`wb` (4 из 27) и `ugok` (9 из 33) смешанные** — проверяйте `resources:` конкретного оверлея; в `ugok` причина обычно указана комментарием в его `kustomization.yaml`.
|
||||
- **Две несовместимые конвенции оверлеев** (`IAC-CATALOG.md` §5.3.4). `d8-ugmk-prod`, `vad`, `uralkal`, `dsinv` наследуют `base` и патчат его. `brusnika-prod`, `brusnika-stage`, `yc-ecp`, `asterus` — полные копии HelmRelease, которые молча дрейфуют от base. Правка `base` на них не влияет. **`wb` (4 из 27) и `ugok` (9 из 33) смешанные** — проверяйте `resources:` конкретного оверлея; в `ugok` причина обычно указана комментарием в его `kustomization.yaml`.
|
||||
- **`asterus` подключён почти пустым**: оверлеи есть у 26 приложений, но в `clusters/asterus/kustomization.yaml` активен только `auth-flow`, остальные закомментированы. Инфраструктуры в кластере нет.
|
||||
- **Слайс публикуется для каждого `clusters/*/kustomization.yaml`** — в том числе для тестовых и инфраструктурных кластеров. Новая папка в `clusters/` с этим файлом автоматически станет слайсом на следующем теге. У `contour` такого файла нет, поэтому для него слайс не собирается.
|
||||
- **`IAC-CATALOG.md` — снимок на 05.08.2026** и по составу приложений на контур уже расходится с реальностью (там у `wb` ноль приложений, фактически 26 оверлеев). Всегда сверяться с `clusters/*/kustomization.yaml`.
|
||||
@ -82,7 +82,7 @@
|
||||
- **Path-роутинг лежит в `infrastructure/istio-config/<c>/` у большинства контуров, но не у WB.** В `clusters/wb/infrastructure/patches/istio-config.yaml` через Istio публикуются только платформенные UI (Gitea, Grafana, OpenObserve, Superset, Vault, GoAlert), а прикладной трафик разводится вне репозитория. В Brusnika схема смешанная: часть путей идёт напрямую в сервисы, остальное — одним правилом в `yet-another-nginx-service.global-ingress`.
|
||||
- **`vk-prod` маршрутизирует в namespace с суффиксом `-prod`** (`eav-prod`, `pm-prod`, `inspections-prod`), а приложений из `apps/` в этом кластере нет: сервисы раскатываются не этим репозиторием.
|
||||
- **Имена namespace расходятся между источниками**: `inventory.yaml` и `vk-prod` используют суффикс (`flows-prod`), `apps/` — голое имя (`flows`).
|
||||
- **66 оверлеев приложений не подключены ни к одному кластеру**: 25 — `dsinv`, 25 — закомментированные в `asterus`, остальные 16 — мёртвый код (в основном `brusnika-prod`, плюс `bi`/`iam` в `wb` и `yc-k8s-test`).
|
||||
- Некоторые оверлеи приложений не подключены к кластерам: например, `dsinv`, закомментированные приложения `asterus` и отдельные оверлеи других контуров. Наличие оверлея само по себе не означает развёртывание.
|
||||
- **Нет диаграмм** в `docs/apps/` для `ams-sync`, `auth-flow`, `bi`, `iam`, `premises`.
|
||||
- **Чистые фронтенды без бэкенда в этом репозитории**: `auth-flow`, `control-interface`, `cross-section`, `document-link`, `prescriptions`, `projects`, `remarks`, `reviews`, `stamp-verification`. Бэкенд `projects` живёт в `planning/projects-backend`.
|
||||
- Самые центральные сервисы по числу входящих ссылок: `documentations` (~85), `processing` / `workflow` (~76), `django` (~53), `eav` (~47), `resources` (~44), `bim` (~39), `flows` (~38). Менять их конфигурацию — дороже всего.
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
|
||||
- Источники: GitLab-группа `infra` (209 проектов, включая подгруппы) + содержимое `infra/iac`.
|
||||
- Дата среза: **2026-08-05**.
|
||||
- Обновление 2026-11-25: контуры `sarex-contour` и `yc-k8s-test` выведены из эксплуатации, их конфигурации удалены. Упоминания ниже относятся к историческому срезу; `yc-k8s-test-02` сохранён.
|
||||
- Все ссылки — на `https://gitlab.sarex.io`.
|
||||
|
||||
Пометки достоверности:
|
||||
|
||||
181
apps/ams-sync/stand/helmrelease.yaml
Normal file
181
apps/ams-sync/stand/helmrelease.yaml
Normal file
@ -0,0 +1,181 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: ams-sync
|
||||
namespace: ams-sync
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
version: 0.1.9
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: ams-sync-vault
|
||||
secretEnvs: []
|
||||
volumes:
|
||||
_default: []
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}'
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200,9092
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: ams-sync
|
||||
vault.hashicorp.com/agent-inject-secret-ams-sync-kafka: secrets/data/kafka/apps/ams-sync
|
||||
vault.hashicorp.com/agent-inject-template-ams-sync-kafka: '{{- with secret
|
||||
"secrets/data/kafka/apps/ams-sync" -}}
|
||||
|
||||
KAFKA_BOOTSTRAP_SERVERS=''["{{ index .Data.data "bootstrap_servers"
|
||||
}}"]''
|
||||
|
||||
KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}''
|
||||
|
||||
KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-ams-sync-zitadel: secrets/data/zitadel/setup
|
||||
vault.hashicorp.com/agent-inject-template-ams-sync-zitadel: '{{- with
|
||||
secret "secrets/data/zitadel/setup" -}}
|
||||
|
||||
ZITADEL_SERVICE_ACCESS_TOKEN=''{{ index .Data.data "django_zitadel_access_token"
|
||||
}}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-ams-sync-auth: secrets/data/vault/common/django_auth
|
||||
vault.hashicorp.com/agent-inject-template-ams-sync-auth: '{{- with secret
|
||||
"secrets/data/vault/common/django_auth" -}}
|
||||
|
||||
AUTH_ADMIN_USERNAME=''{{ index .Data.data "username" }}''
|
||||
|
||||
AUTH_ADMIN_PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-ams-sync-db: secrets/data/apps/django/postgres
|
||||
vault.hashicorp.com/agent-inject-template-ams-sync-db: '{{- with secret
|
||||
"secrets/data/apps/django/postgres" -}}
|
||||
|
||||
USER_DB_NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
USER_DB_USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
USER_DB_PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
USER_DB_HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
USER_DB_PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
{{- end -}}'
|
||||
sidecar.istio.io/inject: 'true'
|
||||
envs:
|
||||
- name: AMS_SYNC_TOPIC
|
||||
value:
|
||||
_default: ams-sync
|
||||
- name: ENVIRONMENT
|
||||
value:
|
||||
_default: PRODUCTION
|
||||
- name: HOST_ORGANIZATION_ID
|
||||
value:
|
||||
_default: '397401610885551249'
|
||||
- name: ALERT_ENABLED
|
||||
value:
|
||||
_default: 'False'
|
||||
- name: VERIFY_USERS
|
||||
value:
|
||||
_default: 'True'
|
||||
- name: USER_SERVER_HOST
|
||||
value:
|
||||
_default: https://sarex.${CONTOUR_DOMAIN}
|
||||
- name: AUTH_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: RESOURCES_INTERNAL_HOST
|
||||
value:
|
||||
_default: http://iam-backend.iam.svc.cluster.local:8000
|
||||
- name: ZITADEL_HOST
|
||||
value:
|
||||
_default: https://${HOST_LOGIN}
|
||||
- name: KAFKA_SECURITY_PROTOCOL
|
||||
value:
|
||||
_default: SASL_PLAINTEXT
|
||||
- name: KAFKA_SASL_MECHANISM
|
||||
value:
|
||||
_default: SCRAM-SHA-512
|
||||
- name: KAFKA_SSL_CAFILE
|
||||
value:
|
||||
_default: ''
|
||||
- name: TELEGRAM_TOKEN
|
||||
value:
|
||||
_default: 000000:disabled
|
||||
- name: TELEGRAM_GROUP_ID
|
||||
value:
|
||||
_default: '0'
|
||||
- name: PYTHONUNBUFFERED
|
||||
value:
|
||||
_default: '1'
|
||||
- name: HEALTHCHECK_PORT
|
||||
value:
|
||||
_default: '8008'
|
||||
service:
|
||||
enabled: false
|
||||
deployment:
|
||||
port:
|
||||
_default: 8008
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/ams-sync-kafka
|
||||
|
||||
. /vault/secrets/ams-sync-zitadel
|
||||
|
||||
. /vault/secrets/ams-sync-auth
|
||||
|
||||
. /vault/secrets/ams-sync-db
|
||||
|
||||
set +a
|
||||
|
||||
exec python3 cmd.py run
|
||||
|
||||
'
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
probes:
|
||||
readiness:
|
||||
enabled: true
|
||||
type: &id001
|
||||
_default: tcpSocket
|
||||
tcpSocket: &id002
|
||||
port:
|
||||
_default: 8008
|
||||
periodSeconds:
|
||||
_default: 5
|
||||
timeoutSeconds: &id003
|
||||
_default: 2
|
||||
liveness:
|
||||
enabled: true
|
||||
type: *id001
|
||||
tcpSocket: *id002
|
||||
periodSeconds:
|
||||
_default: 30
|
||||
timeoutSeconds: *id003
|
||||
initialDelaySeconds:
|
||||
_default: 30
|
||||
@ -6,7 +6,7 @@ configMapGenerator:
|
||||
- name: ams-sync-contour-env
|
||||
literals:
|
||||
- USER_SERVER_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- AUTH_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- AUTH_HOST=http://backend-svc.django.svc.cluster.local:80
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
annotations:
|
||||
@ -32,3 +32,5 @@ replacements:
|
||||
name: ams-sync
|
||||
fieldPaths:
|
||||
- spec.values.services.backend.envs.[name=AUTH_HOST].value._default
|
||||
patches:
|
||||
- path: helmrelease.yaml
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches: []
|
||||
# - path: replicas.yaml
|
||||
# target:
|
||||
# kind: HelmRelease
|
||||
# name: attachments
|
||||
@ -1,122 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: attachments
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: attachments_db
|
||||
user: attachments
|
||||
passwordKey: attachments
|
||||
extensions: []
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/attachments/288/attachments_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: attachments
|
||||
namespace: attachments
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
attachments:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 2
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches: []
|
||||
# - path: replicas.yaml
|
||||
# target:
|
||||
# kind: HelmRelease
|
||||
# name: frontend
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: frontend
|
||||
namespace: auth-flow
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
frontend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -154,7 +154,7 @@ Slave-2 кластер — те же поля с суффиксом `_3`:
|
||||
- `base/backend-deployment.yaml` — Deployment `backend` в namespace `bim`, образ `bim-api`, `containerPort: 8000`, `API_ADDRESS=0.0.0.0:8000`, health-проба `GET /ping`.
|
||||
- Секреты PostgreSQL инъектируются **из Vault** (аннотации `vault.hashicorp.com/*`, роль `bim`, путь `secrets/data/postgresql/apps/bim`) в файл `/vault/secrets/bim-postgresql`, который экспортируется в окружение перед запуском (`set -a; . /vault/secrets/bim-postgresql; set +a; exec ./httpserver`). Шаблон Vault задаёт `POSTGRES_ADDRESS[_2../_4]`, `POSTGRES_PORT*`, `POSTGRES_DB*` (все указывают на `postgresql.bim.svc.cluster.local:5432`, БД `bim_db`) и `POSTGRES_USER*`/`POSTGRES_PASSWORD*` из Vault.
|
||||
- Прочие env заданы прямо в манифесте: `LAST_MASTER_BIM`, `LAST_MASTER_BIM_V3`, `LAST_SLAVE_1_BIM`, `POSTGRES_POOL_SIZE`, `DB_CERT_PATH_2/3/4`, `DJANGO_HOST` (`http://backend.django.svc.cluster.local:8000`), `ENABLE_SQL_QUERY=0`, `ENABLE_SSL=0`.
|
||||
- Оверлеи `brusnika-prod`, `brusnika-stage`, `yc-k8s-test` патчат base (реплики, образ, postgresql).
|
||||
- Оверлеи `brusnika-prod`, `brusnika-stage` патчат base (реплики, образ, postgresql).
|
||||
|
||||
## Переменные в CI (`.gitlab-ci.yml`)
|
||||
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -1,126 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: bim
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
strategy: uninstall
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: bim_db
|
||||
user: bim
|
||||
passwordKey: bim
|
||||
extensions:
|
||||
- ltree
|
||||
- timescaledb
|
||||
- uuid-ossp
|
||||
- pg_partman
|
||||
restoreFromDump: false
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: bim
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -202,7 +202,7 @@
|
||||
|
||||
В `iac/apps/cde` секреты доставляются не через `secretEnvs` чарта, а через **Vault Agent Injector**: аннотации подов монтируют секрет `secrets/data/vault/apps/cde` в файл `/vault/secrets/cde-env`, который экспортируется перед запуском (`source /vault/secrets/cde-env`, затем `exec /http` или `/worker`). Дополнительно контейнерам задаётся `S3_IS_CONTOUR=true` (примечание: в коде используется переменная `IS_CONTOUR`).
|
||||
|
||||
Оверлеи: `base` (общие манифесты), `brusnika-stage`, `brusnika-prod`, `yc-k8s-test`.
|
||||
Оверлеи: `base` (общие манифесты), `brusnika-stage`, `brusnika-prod`.
|
||||
|
||||
## Замечания и потенциальные проблемы
|
||||
|
||||
|
||||
@ -55,3 +55,20 @@ patches:
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: cde
|
||||
- target:
|
||||
kind: HelmRelease
|
||||
name: cde-(worker-.*|flowscallback|splitpdf)
|
||||
patch: |-
|
||||
- op: add
|
||||
path: /spec/postRenderers
|
||||
value:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment|StatefulSet
|
||||
patch: |-
|
||||
- op: add
|
||||
path: /spec/replicas
|
||||
value: 0
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches: []
|
||||
# - path: replicas.yaml
|
||||
# target:
|
||||
# kind: Deployment
|
||||
# name: frontend
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: cde
|
||||
spec:
|
||||
replicas: 1
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
33
apps/checklists/stand/jwt-access.yaml
Normal file
33
apps/checklists/stand/jwt-access.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: checklists
|
||||
namespace: checklists
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
checklists:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-checklists-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-checklists-jwt-public: '{{-
|
||||
with secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/checklists-db ] && . /vault/secrets/checklists-db
|
||||
|
||||
[ -f /vault/secrets/checklists-jwt-public ] && export JWT_AUTH_PUBLIC_KEY="$(cat
|
||||
/vault/secrets/checklists-jwt-public)"
|
||||
|
||||
set +a
|
||||
|
||||
exec ./entrypoint.sh
|
||||
|
||||
'
|
||||
@ -2,3 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: jwt-access.yaml
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches: []
|
||||
@ -1,124 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: checklists
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: checklists_db
|
||||
user: checklists
|
||||
passwordKey: checklists
|
||||
extensions:
|
||||
- pg_stat_statements
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/checklists/288/checklists_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -117,7 +117,7 @@
|
||||
|
||||
## Развёртывание через Kustomize (этот репозиторий, `apps/comparisons`)
|
||||
|
||||
Структура: `base` (общие манифесты) и оверлеи `brusnika-stage`, `brusnika-prod`, `yc-k8s-test`. Секреты БД и публичный JWT-ключ подтягиваются из **HashiCorp Vault** (аннотации `vault.hashicorp.com/*` в `base/backend-deployment.yaml`), а не из k8s-секретов.
|
||||
Структура: `base` (общие манифесты) и оверлеи `brusnika-stage`, `brusnika-prod`. Секреты БД и публичный JWT-ключ подтягиваются из **HashiCorp Vault** (аннотации `vault.hashicorp.com/*` в `base/backend-deployment.yaml`), а не из k8s-секретов.
|
||||
|
||||
> **Важно: расхождение схем переменных.** Манифест `base/backend-deployment.yaml` использует другой (более новый) набор имён переменных, чем Go-код из `comparisons-backend` (`config/config.go`): напр. `HTTP_PORT`, `LOGGER_LOG_LEVEL`, `DATABASE_NAME`, `DOCUMENTATIONS_INTERNAL_HOST`, `DOCUMENTATIONS_EXTERNAL_HOST`, `WORKFLOWS_HOST`, `WORKFLOWS_DJANGO_HOST`, `WORKFLOWS_BIMV2_INTERNAL_HOST`, `WORKSPACES_HOST`, `EAV_HOST`, `APP_NAME`, `AUTH_PUBLIC_KEY`, `WORKFLOWS_CONFIG_FILEPATH` и др., а также `/ping` в health-проверках и образ `comparisons_backend_prod`. Такой схемы нет в Go-репозитории. Перед использованием этих файлов стоит убедиться, какой именно образ бэкенда деплоится оверлеем: если это Go-сервис из `comparisons-backend`, набор env нужно привести к именам из таблиц выше.
|
||||
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches:
|
||||
- path: replicas.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
@ -1,122 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: comparisons
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: comparisons_db
|
||||
user: comparisons
|
||||
passwordKey: comparisons
|
||||
extensions: []
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/comparisons/288/comparisons_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: comparisons
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
39
apps/contracts/stand/jwt-access.yaml
Normal file
39
apps/contracts/stand/jwt-access.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: contracts
|
||||
namespace: contracts
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
contracts:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-contracts-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-contracts-jwt-public: '{{- with
|
||||
secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/contracts-db ] && . /vault/secrets/contracts-db
|
||||
|
||||
[ -f /vault/secrets/contracts-jwt-public ] && export PUBLIC_KEY="$(cat
|
||||
/vault/secrets/contracts-jwt-public)"
|
||||
|
||||
[ -f /vault/secrets/contracts-rabbitmq ] && . /vault/secrets/contracts-rabbitmq
|
||||
|
||||
[ -f /vault/secrets/contracts-s3 ] && . /vault/secrets/contracts-s3
|
||||
|
||||
[ -f /vault/secrets/contracts-kafka ] && . /vault/secrets/contracts-kafka
|
||||
|
||||
set +a
|
||||
|
||||
exec /usr/local/bin/http
|
||||
|
||||
'
|
||||
@ -2,3 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: jwt-access.yaml
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches: []
|
||||
# - path: replicas.yaml
|
||||
# target:
|
||||
# kind: Deployment
|
||||
# name: backend
|
||||
@ -1,126 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: contracts
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: contracts_db
|
||||
user: contracts
|
||||
passwordKey: contracts
|
||||
extensions:
|
||||
- btree_gist
|
||||
- ltree
|
||||
- pg_stat_statements
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/contracts/288/contracts_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: backend
|
||||
spec:
|
||||
replicas: 1
|
||||
@ -1,6 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: control-interface
|
||||
labels:
|
||||
istio-injection: enabled
|
||||
79
apps/control-interface/stand/admin-frontend.yaml
Normal file
79
apps/control-interface/stand/admin-frontend.yaml
Normal file
@ -0,0 +1,79 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: admin-frontend
|
||||
namespace: django
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 1
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 1
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
admin-frontend:
|
||||
enabled: true
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/admin-frontend:uralkal_4d0a3684
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: admin-frontend
|
||||
replicaCount:
|
||||
_default: 1
|
||||
port:
|
||||
_default: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
readiness:
|
||||
enabled: false
|
||||
service:
|
||||
enabled: true
|
||||
name:
|
||||
_default: admin-frontend-svc
|
||||
type:
|
||||
_default: ClusterIP
|
||||
port:
|
||||
_default: 8080
|
||||
targetPort:
|
||||
_default: 80
|
||||
portName:
|
||||
_default: http
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
commitSha: ''
|
||||
gitlabUri: ''
|
||||
gitlabJobUrl: ''
|
||||
owner: ''
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- admin-frontend.yaml
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: django
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: replicas.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: srx-admin
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: srx-admin
|
||||
namespace: django
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
frontend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: replicas.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: cross-section-static
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cross-section-static
|
||||
namespace: cross-section
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
frontend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -288,7 +288,7 @@ Module Federation) конфигурируется отдельно на этап
|
||||
## Конфигурация в кластере (Kubernetes)
|
||||
|
||||
Манифесты приложения — в этом же каталоге (`base/`, оверлеи `brusnika-stage`,
|
||||
`brusnika-prod`, `yc-k8s-test`). Секреты монтируются через **Vault Agent Injector**
|
||||
`brusnika-prod`). Секреты монтируются через **Vault Agent Injector**
|
||||
(аннотации `vault.hashicorp.com/*` на Deployment `backend` и `celery`). Файлы
|
||||
секретов в контейнере и их содержимое:
|
||||
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: nginx-configmap.yaml
|
||||
target:
|
||||
kind: ConfigMap
|
||||
name: nginx-configmap
|
||||
@ -1,160 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: nginx-configmap
|
||||
namespace: django
|
||||
data:
|
||||
nginx.conf: |
|
||||
worker_processes auto;
|
||||
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
use epoll;
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
# Basic Settings
|
||||
large_client_header_buffers 8 128k;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 300;
|
||||
types_hash_max_size 2048;
|
||||
client_max_body_size 5000M;
|
||||
client_header_buffer_size 5M;
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Logging Settings
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
# GZIP Settings
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
root /opt/react_client/;
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header 'Access-Control-Allow-Methods' '*' always;
|
||||
add_header 'Access-Control-Allow-Headers' '*' always;
|
||||
|
||||
location = /static/index.bundle.js {
|
||||
add_header Cache-Control 'no-store no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||
if_modified_since off;
|
||||
expires off;
|
||||
}
|
||||
|
||||
# location ~^/api/pm/ {
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Connection "";
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_pass http://backend-svc.pm.svc.cluster.local:8000;
|
||||
# }
|
||||
|
||||
# location ~^/api/v1/documents/ {
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_pass http://backend-filestream-svc.documentations.svc.cluster.local:80;
|
||||
# }
|
||||
|
||||
location ~^/(api|admin)/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://backend-svc.django.svc.cluster.local:80;
|
||||
}
|
||||
|
||||
location = /static/pdf-runtime/assets/mupdf-wasm.wasm {
|
||||
alias /opt/react_client/static/pdf-runtime/assets/mupdf-wasm.wasm;
|
||||
add_header Content-Type application/wasm always;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always;
|
||||
}
|
||||
|
||||
location = /workspaces-v2/worker/static/viewer-pdf/mupdf-wasm.js {
|
||||
alias /opt/react_client/static/viewer-pdf/mupdf-wasm.js;
|
||||
add_header Content-Type application/javascript always;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always;
|
||||
}
|
||||
|
||||
location = /workspaces-v2/worker/mupdf.worker-3.3.9.js {
|
||||
alias /opt/react_client/static/pdf-runtime/mupdf.worker-3.3.9.js;
|
||||
add_header Content-Type application/javascript always;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always;
|
||||
}
|
||||
|
||||
location = /workspaces-v2/worker/static/viewer-pdf/mupdf.js {
|
||||
alias /opt/react_client/static/viewer-pdf/mupdf.js;
|
||||
add_header Content-Type application/javascript always;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always;
|
||||
}
|
||||
|
||||
location = /workspaces-v2/worker/static/viewer-pdf/mupdf-wasm.wasm {
|
||||
add_header Content-Type application/wasm always;
|
||||
alias /opt/react_client/static/viewer-pdf/mupdf-wasm.wasm;
|
||||
}
|
||||
|
||||
location ~^/workspaces-v2/(.+).js {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
rewrite /workspaces-v2/(.+) /$1 break;
|
||||
proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80;
|
||||
}
|
||||
|
||||
location ~^/workspaces-v2/(.+)\.wasm$ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
rewrite ^/workspaces-v2/(.+) /$1 break;
|
||||
proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80;
|
||||
}
|
||||
|
||||
location @index {
|
||||
add_header Cache-Control 'no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||
if_modified_since off;
|
||||
expires off;
|
||||
try_files /static/index.html =404;
|
||||
}
|
||||
|
||||
# location ~^/workflows/(.+).js {
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Connection "";
|
||||
# rewrite /workflows/(.+) /$1 break;
|
||||
# proxy_pass http://frontend-svc.processing.svc.cluster.local:80;
|
||||
# }
|
||||
|
||||
location /service-worker.js {
|
||||
try_files /static/$uri @index;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri @index;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -9,21 +9,52 @@ spec:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-template-django-s3: |-
|
||||
{{- with secret "secrets/data/minio/apps/django" }}
|
||||
vault.hashicorp.com/agent-inject-template-django-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/django" }}
|
||||
|
||||
AWS_S3_ENDPOINT_URL=http://${MINIO_ENDPOINT}
|
||||
|
||||
S3_HOST=http://${MINIO_ENDPOINT}
|
||||
|
||||
S3_BUCKET={{ index .Data.data "bucket" }}
|
||||
|
||||
S3_LOGIN={{ index .Data.data "access_key_id" }}
|
||||
|
||||
S3_PASSWORD={{ index .Data.data "secret_access_key" }}
|
||||
|
||||
AWS_S3_ACCESS_KEY_ID={{ index .Data.data "access_key_id" }}
|
||||
|
||||
AWS_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_access_key" }}
|
||||
|
||||
AWS_STORAGE_BUCKET_NAME={{ index .Data.data "bucket" }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}'
|
||||
vault.hashicorp.com/agent-inject-secret-django-common: secrets/data/zitadel/setup
|
||||
vault.hashicorp.com/agent-inject-template-django-common: |-
|
||||
{{- with secret "secrets/data/zitadel/setup" -}}
|
||||
ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-django-kafka: null
|
||||
vault.hashicorp.com/agent-inject-template-django-kafka: null
|
||||
vault.hashicorp.com/agent-inject-template-django-common: '{{- with secret
|
||||
"secrets/data/zitadel/setup" -}}
|
||||
|
||||
ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token"
|
||||
}}
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-django-kafka: secrets/data/kafka/apps/iam
|
||||
vault.hashicorp.com/agent-inject-template-django-kafka: '{{- with secret
|
||||
"secrets/data/kafka/apps/iam" -}}
|
||||
|
||||
KAFKA_BOOTSTRAP_SERVERS=''["{{ with index .Data.data "auth" }}{{ index
|
||||
. "bootstrap_servers" }}{{ else }}{{ index .Data.data "bootstrap_servers"
|
||||
}}{{ end }}"]''
|
||||
|
||||
KAFKA_SECURITY_PROTOCOL=''SASL_PLAINTEXT''
|
||||
|
||||
KAFKA_SASL_MECHANISM=''SCRAM-SHA-512''
|
||||
|
||||
KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}''
|
||||
|
||||
KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
KAFKA_SSL_CAFILE=''''
|
||||
|
||||
{{- end -}}'
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 8200,9092
|
||||
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}'
|
||||
|
||||
@ -9,18 +9,46 @@ spec:
|
||||
celery:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-template-django-s3: |-
|
||||
{{- with secret "secrets/data/minio/apps/django" }}
|
||||
vault.hashicorp.com/agent-inject-template-django-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/django" }}
|
||||
|
||||
AWS_S3_ENDPOINT_URL=http://${MINIO_ENDPOINT}
|
||||
|
||||
S3_HOST=http://${MINIO_ENDPOINT}
|
||||
|
||||
S3_BUCKET={{ index .Data.data "bucket" }}
|
||||
|
||||
S3_LOGIN={{ index .Data.data "access_key_id" }}
|
||||
|
||||
S3_PASSWORD={{ index .Data.data "secret_access_key" }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}'
|
||||
vault.hashicorp.com/agent-inject-secret-django-common: secrets/data/zitadel/setup
|
||||
vault.hashicorp.com/agent-inject-template-django-common: |-
|
||||
{{- with secret "secrets/data/zitadel/setup" -}}
|
||||
ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-django-kafka: null
|
||||
vault.hashicorp.com/agent-inject-template-django-kafka: null
|
||||
vault.hashicorp.com/agent-inject-template-django-common: '{{- with secret
|
||||
"secrets/data/zitadel/setup" -}}
|
||||
|
||||
ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token"
|
||||
}}
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-django-kafka: secrets/data/kafka/apps/iam
|
||||
vault.hashicorp.com/agent-inject-template-django-kafka: '{{- with secret
|
||||
"secrets/data/kafka/apps/iam" -}}
|
||||
|
||||
KAFKA_BOOTSTRAP_SERVERS=''["{{ with index .Data.data "auth" }}{{ index
|
||||
. "bootstrap_servers" }}{{ else }}{{ index .Data.data "bootstrap_servers"
|
||||
}}{{ end }}"]''
|
||||
|
||||
KAFKA_SECURITY_PROTOCOL=''SASL_PLAINTEXT''
|
||||
|
||||
KAFKA_SASL_MECHANISM=''SCRAM-SHA-512''
|
||||
|
||||
KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}''
|
||||
|
||||
KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
KAFKA_SSL_CAFILE=''''
|
||||
|
||||
{{- end -}}'
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 8200,9092
|
||||
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}'
|
||||
|
||||
88
apps/django/stand/export-project.yaml
Normal file
88
apps/django/stand/export-project.yaml
Normal file
@ -0,0 +1,88 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: export-project
|
||||
namespace: django
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
backend:
|
||||
enabled: true
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/export-project:prod_ef8aa756
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: export-project
|
||||
replicaCount:
|
||||
_default: 1
|
||||
stage: 1
|
||||
preprod: 3
|
||||
production: 3
|
||||
port:
|
||||
_default: 8000
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
readiness:
|
||||
enabled: false
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
service:
|
||||
enabled: true
|
||||
name:
|
||||
_default: export-project-service
|
||||
type:
|
||||
_default: ClusterIP
|
||||
port:
|
||||
_default: 8000
|
||||
targetPort:
|
||||
_default: 8000
|
||||
portName:
|
||||
_default: http
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
labels:
|
||||
monitoring: prometheus
|
||||
envs:
|
||||
- name: TIMEOUT
|
||||
value:
|
||||
_default: '180'
|
||||
commitSha: ''
|
||||
gitlabUri: ''
|
||||
gitlabJobUrl: ''
|
||||
owner: ''
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
265
apps/django/stand/jwt-access.yaml
Normal file
265
apps/django/stand/jwt-access.yaml
Normal file
@ -0,0 +1,265 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: django
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-private: secrets/data/vault/apps/django/jwt_private
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-private: '{{- with
|
||||
secret "secrets/data/vault/apps/django/jwt_private" -}}
|
||||
|
||||
{{ index .Data.data "private_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-public: '{{- with
|
||||
secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
checksum/jwt-runtime: 58bae88d1d81ac414b2cac6ff81e0f441dc9a8f05a42d9d3d11bdfa97d38772b
|
||||
vault.hashicorp.com/agent-inject-secret-jwt-signer-client: secrets/data/vault/apps/django/jwt_signer_client
|
||||
vault.hashicorp.com/agent-inject-template-jwt-signer-client: '{{- with
|
||||
secret "secrets/data/vault/apps/django/jwt_signer_client" -}}
|
||||
|
||||
JWT_SIGNER_CLIENT_TOKEN={{ index .Data.data "token" }}
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/role: django-backend
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/django-postgresql ] && . /vault/secrets/django-postgresql
|
||||
|
||||
[ -f /vault/secrets/django-rabbitmq ] && . /vault/secrets/django-rabbitmq
|
||||
|
||||
[ -f /vault/secrets/django-s3 ] && . /vault/secrets/django-s3
|
||||
|
||||
[ -f /vault/secrets/django-kafka ] && . /vault/secrets/django-kafka
|
||||
|
||||
[ -f /vault/secrets/django-jwt-private ] && export JWT_PRIVATE_KEY="$(cat
|
||||
/vault/secrets/django-jwt-private)"
|
||||
|
||||
[ -f /vault/secrets/django-jwt-public ] && export JWT_PUBLIC_KEY="$(cat
|
||||
/vault/secrets/django-jwt-public)"
|
||||
|
||||
[ -f /vault/secrets/jwt-signer-client ] && . /vault/secrets/jwt-signer-client
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/sarex/entrypoint.sh
|
||||
|
||||
'
|
||||
volumes:
|
||||
_default:
|
||||
- configMap:
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
name:
|
||||
_default: django-configmap
|
||||
mountPath:
|
||||
_default: /jwt-config/original-production.py
|
||||
name: django-configmap
|
||||
readOnly:
|
||||
_default: true
|
||||
subPath:
|
||||
_default: production.py
|
||||
- configMap:
|
||||
items:
|
||||
- key: uwsgi.ini
|
||||
path:
|
||||
_default: uwsgi.ini
|
||||
name:
|
||||
_default: uwsgi-configmap
|
||||
mountPath:
|
||||
_default: /opt/sarex/uwsgi.ini
|
||||
name: uwsgi-configmap
|
||||
readOnly:
|
||||
_default: true
|
||||
subPath:
|
||||
_default: uwsgi.ini
|
||||
- name: jwt-runtime-production
|
||||
mountPath:
|
||||
_default: /opt/sarex/config/settings/production.py
|
||||
subPath:
|
||||
_default: production.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
- name: jwt-runtime-client
|
||||
mountPath:
|
||||
_default: /opt/sarex/config/jwt_signer_client.py
|
||||
subPath:
|
||||
_default: client.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: client.py
|
||||
path:
|
||||
_default: client.py
|
||||
- name: jwt-runtime-urls
|
||||
mountPath:
|
||||
_default: /opt/sarex/config/jwt_signer_urls.py
|
||||
subPath:
|
||||
_default: urls.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: urls.py
|
||||
path:
|
||||
_default: urls.py
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: backend
|
||||
patch: "- op: add\n path: /spec/template/spec/serviceAccountName\n value:\
|
||||
\ django-backend-vault\n- op: add\n path: /spec/template/spec/containers/0/env/-\n\
|
||||
\ value:\n name: JWT_SIGNER_MODE\n value: server\n"
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: celery
|
||||
namespace: django
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
celery:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-private: null
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-private: null
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-public: '{{- with
|
||||
secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
checksum/jwt-runtime: 58bae88d1d81ac414b2cac6ff81e0f441dc9a8f05a42d9d3d11bdfa97d38772b
|
||||
vault.hashicorp.com/agent-inject-secret-jwt-signer-client: secrets/data/vault/apps/django/jwt_signer_client
|
||||
vault.hashicorp.com/agent-inject-template-jwt-signer-client: '{{- with
|
||||
secret "secrets/data/vault/apps/django/jwt_signer_client" -}}
|
||||
|
||||
JWT_SIGNER_CLIENT_TOKEN={{ index .Data.data "token" }}
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/role: django-celery
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/django-postgresql ] && . /vault/secrets/django-postgresql
|
||||
|
||||
[ -f /vault/secrets/django-rabbitmq ] && . /vault/secrets/django-rabbitmq
|
||||
|
||||
[ -f /vault/secrets/django-s3 ] && . /vault/secrets/django-s3
|
||||
|
||||
[ -f /vault/secrets/django-kafka ] && . /vault/secrets/django-kafka
|
||||
|
||||
[ -f /vault/secrets/django-jwt-public ] && export JWT_PUBLIC_KEY="$(cat
|
||||
/vault/secrets/django-jwt-public)"
|
||||
|
||||
[ -f /vault/secrets/jwt-signer-client ] && . /vault/secrets/jwt-signer-client
|
||||
|
||||
set +a
|
||||
|
||||
exec celery -A config worker -B -l info -E -Q default -n default_worker.%h
|
||||
--concurrency=2
|
||||
|
||||
'
|
||||
volumes:
|
||||
_default:
|
||||
- configMap:
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
name:
|
||||
_default: django-configmap
|
||||
mountPath:
|
||||
_default: /jwt-config/original-production.py
|
||||
name: django-configmap
|
||||
readOnly:
|
||||
_default: true
|
||||
subPath:
|
||||
_default: production.py
|
||||
- name: jwt-runtime-production
|
||||
mountPath:
|
||||
_default: /opt/sarex/config/settings/production.py
|
||||
subPath:
|
||||
_default: production.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
- name: jwt-runtime-client
|
||||
mountPath:
|
||||
_default: /opt/sarex/config/jwt_signer_client.py
|
||||
subPath:
|
||||
_default: client.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: client.py
|
||||
path:
|
||||
_default: client.py
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: celery
|
||||
patch: "- op: add\n path: /spec/template/spec/volumes/-\n value:\n name:\
|
||||
\ jwt-runtime-patch\n configMap:\n name: jwt-runtime\n- op: add\n\
|
||||
\ path: /spec/template/spec/initContainers\n value:\n - name: jwt-delegation-code\n\
|
||||
\ image: cr.yandex/crp3ccidau046kdj8g9q/backend:production_18e5ac1e\n\
|
||||
\ command:\n - python\n - /jwt-source/patch.py\n volumeMounts:\n\
|
||||
\ - name: jwt-runtime-patch\n mountPath: /jwt-source\n readOnly:\
|
||||
\ true\n - name: jwt-patched\n mountPath: /jwt-patched\n resources:\n\
|
||||
\ requests:\n cpu: 25m\n memory: 64Mi\n- op: add\n path:\
|
||||
\ /spec/template/spec/volumes/-\n value:\n name: jwt-patched\n emptyDir:\
|
||||
\ {}\n- op: add\n path: /spec/template/spec/containers/0/volumeMounts/-\n\
|
||||
\ value:\n name: jwt-patched\n mountPath: /opt/sarex/sarex/base/tasks.py\n\
|
||||
\ subPath: tasks.py\n readOnly: true\n- op: add\n path: /spec/template/spec/containers/0/volumeMounts/-\n\
|
||||
\ value:\n name: jwt-patched\n mountPath: /opt/sarex/sarex/services/mixin.py\n\
|
||||
\ subPath: mixin.py\n readOnly: true\n- op: add\n path: /spec/template/spec/containers/0/env/-\n\
|
||||
\ value:\n name: JWT_SIGNER_URL\n value: http://backend-svc.django.svc.cluster.local:80/internal/jwt/access-token/\n\
|
||||
- op: add\n path: /spec/template/spec/serviceAccountName\n value: django-celery-vault\n"
|
||||
11
apps/django/stand/jwt-serviceaccount.yaml
Normal file
11
apps/django/stand/jwt-serviceaccount.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: django-backend-vault
|
||||
namespace: django
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: django-celery-vault
|
||||
namespace: django
|
||||
31
apps/django/stand/jwt/client.py
Normal file
31
apps/django/stand/jwt/client.py
Normal file
@ -0,0 +1,31 @@
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
from urllib.error import HTTPError, URLError
|
||||
from urllib.request import Request, urlopen
|
||||
|
||||
|
||||
def issue_access_token(user_id):
|
||||
endpoint = os.environ["JWT_SIGNER_URL"]
|
||||
credential = os.environ["JWT_SIGNER_CLIENT_TOKEN"]
|
||||
request = Request(
|
||||
endpoint,
|
||||
data=json.dumps({"user_id": int(user_id)}).encode(),
|
||||
headers={"Authorization": "Bearer " + credential, "Content-Type": "application/json"},
|
||||
method="POST",
|
||||
)
|
||||
for attempt in range(3):
|
||||
try:
|
||||
with urlopen(request, timeout=5) as response:
|
||||
payload = json.load(response)
|
||||
token = payload.get("access")
|
||||
if not isinstance(token, str) or not token:
|
||||
raise RuntimeError("JWT signer returned an invalid response")
|
||||
return token
|
||||
except HTTPError as error:
|
||||
if error.code < 500 or attempt == 2:
|
||||
raise RuntimeError("JWT signer rejected the request: HTTP %d" % error.code) from None
|
||||
except URLError:
|
||||
if attempt == 2:
|
||||
raise RuntimeError("JWT signer is unavailable") from None
|
||||
time.sleep(attempt + 1)
|
||||
15
apps/django/stand/jwt/patch.py
Normal file
15
apps/django/stand/jwt/patch.py
Normal file
@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
|
||||
cases = [
|
||||
("/opt/sarex/sarex/base/tasks.py", "tasks.py", "str(TokenObtainPairSerializer.get_token(user).access_token)", 2),
|
||||
("/opt/sarex/sarex/services/mixin.py", "mixin.py", "str(CustomRefreshToken.for_user(user).access_token)", 1),
|
||||
]
|
||||
for source, destination, expression, expected in cases:
|
||||
original = Path(source).read_text()
|
||||
if original.count(expression) != expected:
|
||||
raise RuntimeError("JWT delegation patch does not match the application image: " + source)
|
||||
modified = "from config.jwt_signer_client import issue_access_token\n" + original.replace(
|
||||
expression, "issue_access_token(user.id)"
|
||||
)
|
||||
compile(modified, source, "exec")
|
||||
Path("/jwt-patched", destination).write_text(modified)
|
||||
14
apps/django/stand/jwt/production.py
Normal file
14
apps/django/stand/jwt/production.py
Normal file
@ -0,0 +1,14 @@
|
||||
import os as _jwt_os
|
||||
|
||||
_jwt_has_private = bool(_jwt_os.environ.get("JWT_PRIVATE_KEY"))
|
||||
if not _jwt_has_private:
|
||||
_jwt_os.environ["JWT_PRIVATE_KEY"] = ""
|
||||
with open("/jwt-config/original-production.py") as _jwt_source:
|
||||
exec(compile(_jwt_source.read(), "/jwt-config/original-production.py", "exec"), globals())
|
||||
if not _jwt_has_private:
|
||||
_jwt_os.environ.pop("JWT_PRIVATE_KEY", None)
|
||||
SIMPLE_JWT["SIGNING_KEY"] = ""
|
||||
if _jwt_os.environ.get("JWT_SIGNER_MODE") == "server":
|
||||
ROOT_URLCONF = "config.jwt_signer_urls"
|
||||
DEBUG = False
|
||||
del _jwt_has_private, _jwt_source
|
||||
64
apps/django/stand/jwt/urls.py
Normal file
64
apps/django/stand/jwt/urls.py
Normal file
@ -0,0 +1,64 @@
|
||||
import hmac
|
||||
import json
|
||||
import os
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.http import JsonResponse
|
||||
from django.urls import path
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from django.views.decorators.debug import sensitive_variables
|
||||
|
||||
from config import urls as original_urls
|
||||
from sarex.core.serializers.token import CustomTokenSerializer
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
@sensitive_variables("credential", "supplied", "token")
|
||||
def issue_access_token(request):
|
||||
if request.method != "POST":
|
||||
return JsonResponse({"detail": "Method not allowed"}, status=405)
|
||||
credential = os.environ.get("JWT_SIGNER_CLIENT_TOKEN", "")
|
||||
supplied = request.headers.get("Authorization", "")
|
||||
if not credential or not hmac.compare_digest(supplied.encode(), ("Bearer " + credential).encode()):
|
||||
return JsonResponse({"detail": "Unauthorized"}, status=401)
|
||||
if len(request.body) > 1024:
|
||||
return JsonResponse({"detail": "Invalid request"}, status=400)
|
||||
try:
|
||||
value = json.loads(request.body)
|
||||
user_id = value["user_id"]
|
||||
if isinstance(user_id, bool) or not isinstance(user_id, int) or not 0 < user_id <= 9223372036854775807:
|
||||
raise ValueError()
|
||||
except (ValueError, TypeError, KeyError):
|
||||
return JsonResponse({"detail": "Invalid request"}, status=400)
|
||||
user = get_user_model().objects.filter(pk=user_id, is_active=True).first()
|
||||
if user is None:
|
||||
return JsonResponse({"detail": "User not found"}, status=404)
|
||||
token = str(CustomTokenSerializer.get_token(user).access_token)
|
||||
return JsonResponse({"access": token}, headers={"Cache-Control": "no-store"})
|
||||
|
||||
|
||||
@sensitive_variables("credential", "token")
|
||||
def issue_legacy_access_token(request, pk):
|
||||
credential = os.environ.get("JWT_SIGNER_CLIENT_TOKEN", "")
|
||||
if not credential or not hmac.compare_digest(
|
||||
request.headers.get("Authorization", "").encode(), ("Bearer " + credential).encode()
|
||||
):
|
||||
return JsonResponse({"detail": "Unauthorized"}, status=401)
|
||||
if request.method != "GET":
|
||||
return JsonResponse({"detail": "Method not allowed"}, status=405)
|
||||
if not 0 < pk <= 9223372036854775807:
|
||||
return JsonResponse({"detail": "Invalid request"}, status=400)
|
||||
user = get_user_model().objects.filter(pk=pk, is_active=True).first()
|
||||
if user is None:
|
||||
return JsonResponse({"detail": "User not found"}, status=404)
|
||||
token = str(CustomTokenSerializer.get_token(user).access_token)
|
||||
return JsonResponse(token, safe=False, headers={"Cache-Control": "no-store"})
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("internal/jwt/access-token/", issue_access_token),
|
||||
path("internal/client/token/<int:pk>/", issue_legacy_access_token),
|
||||
] + original_urls.urlpatterns
|
||||
for name in ("handler400", "handler403", "handler404", "handler500"):
|
||||
if hasattr(original_urls, name):
|
||||
globals()[name] = getattr(original_urls, name)
|
||||
@ -2,8 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- service-user-job.yaml
|
||||
- jwt-serviceaccount.yaml
|
||||
- export-project.yaml
|
||||
patches:
|
||||
- path: jwt-access.yaml
|
||||
- path: backend.yaml
|
||||
- path: celery.yaml
|
||||
- path: s3-proxy.yaml
|
||||
@ -26,6 +28,15 @@ patches:
|
||||
value:
|
||||
_default: https://sarex.${CONTOUR_DOMAIN}
|
||||
configMapGenerator:
|
||||
- name: jwt-runtime
|
||||
namespace: django
|
||||
files:
|
||||
- production.py=jwt/production.py
|
||||
- client.py=jwt/client.py
|
||||
- urls.py=jwt/urls.py
|
||||
- patch.py=jwt/patch.py
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
- name: django-contour-env
|
||||
literals:
|
||||
- SAREX_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
|
||||
@ -25,14 +25,9 @@ spec:
|
||||
DJANGO_POSTGRES_USER={{ index .Data.data "username" }}
|
||||
DJANGO_POSTGRES_PASSWORD={{ index .Data.data "password" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-private: secrets/data/vault/common/rsa_keys
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-private: |-
|
||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||
{{ index .Data.data "private_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/rsa_keys
|
||||
vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-django-jwt-public: |-
|
||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||
{{- with secret "secrets/data/vault/common/jwt_public" -}}
|
||||
{{ index .Data.data "public_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-service-user: secrets/data/vault/common/django_auth
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches: []
|
||||
@ -1,124 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: django
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: sarex_db
|
||||
user: sarex
|
||||
passwordKey: sarex
|
||||
extensions:
|
||||
- ltree
|
||||
- pg_stat_statements
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/sarex_db/288/sarex_db_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -63,7 +63,6 @@
|
||||
| `base` | kustomize (`Deployment` + `Service` + `Namespace`) | namespace `document-link` c `istio-injection: enabled`; `Deployment/frontend` |
|
||||
| `brusnika-stage` | FluxCD `HelmRelease` → `universal-chart` `0.1.7` | `replicaCount`: stage `1`; probes выключены |
|
||||
| `brusnika-prod` | FluxCD `HelmRelease` → `universal-chart` `0.1.7` | `replicaCount`: preprod/production `3`; probes выключены |
|
||||
| `yc-k8s-test` | kustomize (`../base`) | тестовый контур |
|
||||
|
||||
Порты сервиса: в `universal-chart` — `service.port 8080` → `targetPort 3000` (`portName: http`); в `base/service.yaml` — `port 80` → `targetPort 80`.
|
||||
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches: []
|
||||
# - path: replicas.yaml
|
||||
# target:
|
||||
# kind: Deployment
|
||||
# name: frontend
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: frontend
|
||||
namespace: document-link
|
||||
spec:
|
||||
replicas: 1
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
169
apps/documentations/stand/cde-api-integration.yaml
Normal file
169
apps/documentations/stand/cde-api-integration.yaml
Normal file
@ -0,0 +1,169 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: documentations-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
envs:
|
||||
- name: POSTGRES_POOL_SIZE
|
||||
value:
|
||||
_default: '20'
|
||||
- name: USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: ZITADEL_ACCOUNT
|
||||
value:
|
||||
_default: /vault/secrets/documentations-zitadel-account-json
|
||||
- name: ZITADEL_DOMAIN
|
||||
value:
|
||||
_default: ${HOST_LOGIN}
|
||||
- name: USE_ZITADEL
|
||||
value:
|
||||
_default: '1'
|
||||
- name: FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '36311'
|
||||
- name: API_ADDRESS
|
||||
value:
|
||||
_default: 0.0.0.0:8080
|
||||
- name: API_ADDRESS_FILE
|
||||
value:
|
||||
_default: 0.0.0.0:8080
|
||||
- name: DOCUMENT_PUBLIC_LINK_JWT_EXPIRATION_MINUTES
|
||||
value:
|
||||
_default: '5'
|
||||
- name: PUBLIC_LINK_FOLDER_CONNECTOR_ENABLED
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: ENABLE_SQL_QUERY
|
||||
value:
|
||||
_default: '0'
|
||||
- name: ENABLE_SSL
|
||||
value:
|
||||
_default: '0'
|
||||
- name: WORKSPACE_V2_EXTERNAL_URL
|
||||
value:
|
||||
_default: https://sarex.${CONTOUR_DOMAIN}/workspaces-v2/
|
||||
- name: ENABLE_S3
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: ENVIRONMENT
|
||||
value:
|
||||
_default: production
|
||||
- name: LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '1000000'
|
||||
- name: HOST
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
- name: FILE_STREAM_HOST
|
||||
value:
|
||||
_default: sarex.${CONTOUR_DOMAIN}
|
||||
- name: DOCUMENTATION_URL
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80/
|
||||
- name: WORKFLOW_URL
|
||||
value:
|
||||
_default: http://backend-svc.processing.svc.cluster.local:80/
|
||||
- name: WORKSPACE_URL
|
||||
value:
|
||||
_default: http://backend-svc.workspaces.svc.cluster.local:80/
|
||||
- name: BIM_API_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80/
|
||||
- name: BIM_API_V2_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80/
|
||||
- name: WORKSPACE_BUNDLE_VERSION
|
||||
value:
|
||||
_default: v1
|
||||
- name: SYSTEM_LOG_URL
|
||||
value:
|
||||
_default: http://backend-svc.system-log.svc.cluster.local:80
|
||||
- name: DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: MARKS_PROCESSING_URL
|
||||
value:
|
||||
_default: http://marks-service:8000
|
||||
- name: USE_MARKS_RABBITMQ
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: MARKS_RABBITMQ_HOST
|
||||
value:
|
||||
_default: rabbitmq.rabbitmq.svc.cluster.local
|
||||
- name: MARKS_RABBITMQ_PORT
|
||||
value:
|
||||
_default: '5672'
|
||||
- name: PUBLIC_LINK_HOST
|
||||
value:
|
||||
_default: https://document-link.${CONTOUR_DOMAIN}
|
||||
- name: NAMESPACE
|
||||
value:
|
||||
_default: documentations
|
||||
- name: DJANGO_ORIGINATOR
|
||||
value:
|
||||
_default: docs_prod
|
||||
- name: WORKFLOW_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: S3_SERVICE_ACCOUNT
|
||||
value:
|
||||
_default: /vault/secrets/documentations-s3-account-json
|
||||
- name: READ_WRITE_TIMEOUT_FILE_STREAM
|
||||
value:
|
||||
_default: 6h
|
||||
- name: CACHE_DEFAULT_EXPIRATION
|
||||
value:
|
||||
_default: 60s
|
||||
- name: ENABLE_SMTP
|
||||
value:
|
||||
_default: 'True'
|
||||
- name: ENABLE_MAILGUN
|
||||
value:
|
||||
_default: 'False'
|
||||
- name: CACHE_CLEANUP_INTERVAL
|
||||
value:
|
||||
_default: 60s
|
||||
- name: DOCUMENT_PUBLIC_LINK_JWT_SECRET
|
||||
value:
|
||||
_default: mock
|
||||
- name: ENABLE_AUTH_JWT_IN_URL
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: ENABLE_SIGNATURE_IN_URL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: USE_CACHE_IN_FILE_STREAMER
|
||||
value:
|
||||
_default: '0'
|
||||
- name: VALKEY_ADDR
|
||||
value:
|
||||
_default: redis:6379
|
||||
- name: VALKEY_HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: VALKEY_PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_ENABLED
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations.svc.cluster.local:8000
|
||||
399
apps/documentations/stand/cde-api/cde-api-worker-copy.yaml
Normal file
399
apps/documentations/stand/cde-api/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,399 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-copy
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-copy:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-copy
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
. /vault/secrets/cde-api-rabbitmq
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-copy
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.system-log.svc.cluster.local:80
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.processing.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: stand
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations.svc.cluster.local:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.workspaces.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_ISSUES_SYNC_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ISSUES_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.issues.svc.cluster.local:80
|
||||
- name: CDE_API_ISSUES_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_ISSUES_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_COPY_WORKER_JOBS
|
||||
value:
|
||||
_default: ''
|
||||
- name: CDE_API_COPY_JOB_TIMEOUT_MINUTES
|
||||
value:
|
||||
_default: '30'
|
||||
- name: CDE_API_COPY_STEP_PARALLELISM
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_COPY_S3_PARALLELISM
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with
|
||||
secret "secrets/data/rabbitmq/apps/cde" -}}
|
||||
|
||||
CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
381
apps/documentations/stand/cde-api/cde-api-worker-move.yaml
Normal file
381
apps/documentations/stand/cde-api/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,381 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-move
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-move:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-move
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
. /vault/secrets/cde-api-rabbitmq
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-move
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.system-log.svc.cluster.local:80
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.processing.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: stand
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations.svc.cluster.local:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.workspaces.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_MOVE_WORKER_JOBS
|
||||
value:
|
||||
_default: ''
|
||||
- name: CDE_API_MOVE_JOB_TIMEOUT_MINUTES
|
||||
value:
|
||||
_default: '30'
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with
|
||||
secret "secrets/data/rabbitmq/apps/cde" -}}
|
||||
|
||||
CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,277 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-create-upload
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-create-upload:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-create-upload
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-create-upload
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_READERAT_BLOCK_SIZE_MB
|
||||
value:
|
||||
_default: '8'
|
||||
- name: CDE_API_S32D_READERAT_CACHE_BLOCKS
|
||||
value:
|
||||
_default: '8'
|
||||
- name: CDE_API_S32D_WORKER_CREATE_UPLOAD_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '240'
|
||||
- name: CDE_API_S32D_WORKER_CREATE_UPLOAD_MAX_JOBS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,271 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-handle-error
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-handle-error:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-handle-error
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-handle-error
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_HANDLE_ERROR_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_S32D_WORKER_HANDLE_ERROR_MAX_JOBS
|
||||
value:
|
||||
_default: '4'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,340 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-process-workflows
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-process-workflows:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-process-workflows
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-process-workflows
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '480'
|
||||
- name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_MAX_JOBS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.processing.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: stand
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations.svc.cluster.local:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,286 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-publish-documents
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-publish-documents:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-publish-documents
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/worker
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-publish-documents
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_MAX_JOBS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.system-log.svc.cluster.local:80
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.workspaces.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
487
apps/documentations/stand/cde-api/cde-api.yaml
Normal file
487
apps/documentations/stand/cde-api/cde-api.yaml
Normal file
@ -0,0 +1,487 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.9
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
cde-api:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: cde-api
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
port:
|
||||
_default: 8000
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 25m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
probes:
|
||||
readiness:
|
||||
enabled: true
|
||||
type:
|
||||
_default: tcpSocket
|
||||
tcpSocket:
|
||||
port:
|
||||
_default: 8000
|
||||
periodSeconds:
|
||||
_default: 5
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
command:
|
||||
_default:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
. /vault/secrets/cde-api-rabbitmq
|
||||
|
||||
. /vault/secrets/cde-api-users
|
||||
|
||||
CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-public-key)"
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/main
|
||||
|
||||
'
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:preprod_905f8821
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: true
|
||||
name:
|
||||
_default: cde-api
|
||||
type:
|
||||
_default: ClusterIP
|
||||
port:
|
||||
_default: 8000
|
||||
targetPort:
|
||||
_default: 8000
|
||||
portName:
|
||||
_default: http
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
envs:
|
||||
- name: CDE_API_RESOURCES_BASE_URL
|
||||
value:
|
||||
_default: http://iam-backend.iam.svc.cluster.local:8000
|
||||
- name: CDE_API_RESOURCES_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: cde-api
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: debug
|
||||
- name: CDE_API_HTTP_PORT
|
||||
value:
|
||||
_default: '8000'
|
||||
- name: CDE_API_HTTP_READ_TIMEOUT
|
||||
value:
|
||||
_default: 0s
|
||||
- name: CDE_API_HTTP_WRITE_TIMEOUT
|
||||
value:
|
||||
_default: 0s
|
||||
- name: CDE_API_HTTP_IDLE_TIMEOUT
|
||||
value:
|
||||
_default: 120s
|
||||
- name: CDE_API_HTTP_READ_BUFFER_SIZE
|
||||
value:
|
||||
_default: '96'
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_PUBLIC_LINK_HOST
|
||||
value:
|
||||
_default: https://document-link.stand.sarex.tech
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.processing.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_RETRY_WAIT_MS
|
||||
value:
|
||||
_default: '500'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://backend-svc.bim.svc.cluster.local:80
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_RETRY_WAIT_MS
|
||||
value:
|
||||
_default: '1000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.workspaces.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.system-log.svc.cluster.local:80
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: stand
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://backend-svc.eav.svc.cluster.local:80
|
||||
- name: CDE_API_EAV_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations.svc.cluster.local:8000
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__DB
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CONNECT_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_S3_TLS_HANDSHAKE_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES
|
||||
value:
|
||||
_default: '1099511627776'
|
||||
- name: CDE_API_S32D_MAX_FILES_COUNT
|
||||
value:
|
||||
_default: '500'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USERS_BASE_URL
|
||||
value:
|
||||
_default: http://backend-svc.django.svc.cluster.local:80
|
||||
- name: CDE_API_DISK_BUCKET_NAMESPACE
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_USERS_ORIGINATOR
|
||||
value:
|
||||
_default: docs_stand
|
||||
- name: CDE_API_USERS_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_MAILER_RETRY_COUNT
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-svc.flows.svc.cluster.local:80
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://backend-svc.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis.documentations.svc.cluster.local
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
value:
|
||||
_default: minio.storage.svc.cluster.local:9000
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
value:
|
||||
_default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
value:
|
||||
_default: zeebe
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
value:
|
||||
_default: http://camunda-keycloak.camunda.svc.cluster.local
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: false
|
||||
name:
|
||||
_default: documentations-vault
|
||||
podAnnotations:
|
||||
_default:
|
||||
sidecar.istio.io/proxyCPU: 25m
|
||||
sidecar.istio.io/proxyMemory: 128Mi
|
||||
sidecar.istio.io/proxyCPULimit: '2'
|
||||
sidecar.istio.io/proxyMemoryLimit: 1Gi
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/agent-init-first: 'true'
|
||||
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
||||
vault.hashicorp.com/agent-requests-cpu: 25m
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret
|
||||
"secrets/data/apps/documentations/postgres" -}}
|
||||
|
||||
CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}''
|
||||
|
||||
CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret
|
||||
"secrets/data/minio/apps/documentations" -}}
|
||||
|
||||
CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index
|
||||
.Data.data "access_key") }}''
|
||||
|
||||
CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key")
|
||||
(index .Data.data "secret_key") }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret
|
||||
"secrets/data/camunda/identity-components" -}}
|
||||
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with
|
||||
secret "secrets/data/rabbitmq/apps/cde" -}}
|
||||
|
||||
CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}''
|
||||
|
||||
CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}''
|
||||
|
||||
CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}''
|
||||
|
||||
CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-users: secrets/data/vault/common/django_auth
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-users: '{{- with secret
|
||||
"secrets/data/vault/common/django_auth" -}}
|
||||
|
||||
CDE_API_USERS_AUTH_TOKEN=''{{ index .Data.data "key" }}''
|
||||
|
||||
{{- end -}}'
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-public-key: secrets/data/vault/common/rsa_keys
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-public-key: '{{- with
|
||||
secret "secrets/data/vault/common/rsa_keys" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
12
apps/documentations/stand/cde-api/kustomization.yaml
Normal file
12
apps/documentations/stand/cde-api/kustomization.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- virtualservice.yaml
|
||||
@ -0,0 +1,66 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: "{\n \"bim_api_metadata_inserter\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"bim_api_metadata_inserter_v2\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"bim_api_metadata_inserter_v4\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"bim_differ\": {\n \"executor\": \"k8s\",\n \"\
|
||||
resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"bim_updater\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"convert_to_potree\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"docx_to_pdf\": {\n \"executor\": \"k8s\",\n \"\
|
||||
resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"dwg_to_geojson\": {\n \"executor\"\
|
||||
: \"k8s\",\n \"resources\": {\n \"cpu_limits\": \"4\",\n \
|
||||
\ \"cpu_requests\": \"100m\",\n \"memory_limits\": \"40Gi\"\
|
||||
,\n \"memory_requests\": \"64Mi\"\n }\n },\n \"e57_to_las\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"ifc_converter_job\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"las_merge\": {\n \
|
||||
\ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\
|
||||
: \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \
|
||||
\ \"mesh_optimizer\": {\n \"executor\": \"k8s\",\n \"resources\"\
|
||||
: {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"mesh_optimizer_v2\": {\n \"executor\"\
|
||||
: \"k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n\
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"parsing_template\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"processing_converter_to_tiles\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"processing_create_colored_surface_from_geotiff\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"rendering_template\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"split_pdf_document\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"split_pdf_document_legacy\": {\n \"executor\": \"k8s\"\
|
||||
,\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"update_orthomosaic_data\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"web_hook_caller\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \"\
|
||||
memory_requests\": \"64Mi\"\n }\n },\n \"xml_to_glb\": {\n \
|
||||
\ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\
|
||||
: \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \
|
||||
\ \"document_converter\": {\n \"executor\": \"k8s\",\n \"resources\"\
|
||||
: {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"sparkjs_converter_wrapper\": {\n \"\
|
||||
executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\":\
|
||||
\ \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n }\n}\n"
|
||||
52
apps/documentations/stand/cde-api/virtualservice.yaml
Normal file
52
apps/documentations/stand/cde-api/virtualservice.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
apiVersion: networking.istio.io/v1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: vs-cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /documentations/v2/
|
||||
rewrite:
|
||||
uri: /external/v2/
|
||||
corsPolicy: &id001
|
||||
allowOrigins:
|
||||
- exact: https://sarex.stand.sarex.tech
|
||||
- exact: https://document-link.stand.sarex.tech
|
||||
allowMethods:
|
||||
- GET
|
||||
- POST
|
||||
- PUT
|
||||
- DELETE
|
||||
- PATCH
|
||||
- OPTIONS
|
||||
- HEAD
|
||||
allowHeaders:
|
||||
- Authorization
|
||||
- Content-Type
|
||||
- Identity
|
||||
- Range
|
||||
- Cache-control
|
||||
allowCredentials: true
|
||||
maxAge: 24h
|
||||
route:
|
||||
- destination:
|
||||
host: cde-api.documentations.svc.cluster.local
|
||||
port:
|
||||
number: 8000
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /cde/app/
|
||||
rewrite:
|
||||
uri: /app/
|
||||
corsPolicy: *id001
|
||||
route:
|
||||
- destination:
|
||||
host: cde-api.documentations.svc.cluster.local
|
||||
port:
|
||||
number: 8000
|
||||
150
apps/documentations/stand/jwt-access.yaml
Normal file
150
apps/documentations/stand/jwt-access.yaml
Normal file
@ -0,0 +1,150 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
cde-api:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-public-key: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-public-key: '{{- with
|
||||
secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
. /vault/secrets/cde-api-db
|
||||
|
||||
. /vault/secrets/cde-api-s3
|
||||
|
||||
. /vault/secrets/cde-api-zeebe
|
||||
|
||||
. /vault/secrets/cde-api-rabbitmq
|
||||
|
||||
. /vault/secrets/cde-api-users
|
||||
|
||||
CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-public-key)"
|
||||
|
||||
set +a
|
||||
|
||||
exec /opt/main
|
||||
|
||||
'
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: documentations-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
||||
with secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
||||
|
||||
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
||||
|
||||
[ -f /vault/secrets/documentations-marks-rabbitmq ] && . /vault/secrets/documentations-marks-rabbitmq
|
||||
|
||||
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
||||
/vault/secrets/documentations-rsa-public)"
|
||||
|
||||
set +a
|
||||
|
||||
exec /app/entrypoint.sh
|
||||
|
||||
'
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: documentations-filestream
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
||||
with secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
||||
|
||||
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
||||
|
||||
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
||||
/vault/secrets/documentations-rsa-public)"
|
||||
|
||||
set +a
|
||||
|
||||
exec /app/file_entrypoint.sh
|
||||
|
||||
'
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: pdm-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{-
|
||||
with secret "secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql
|
||||
|
||||
[ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common
|
||||
|
||||
[ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat
|
||||
/vault/secrets/documentations-rsa-public)"
|
||||
|
||||
set +a
|
||||
|
||||
exec ./httpserver
|
||||
|
||||
'
|
||||
@ -2,8 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- cde-api
|
||||
patches:
|
||||
- path: jwt-access.yaml
|
||||
- path: api.yaml
|
||||
- path: cde-api-integration.yaml
|
||||
- path: filestream.yaml
|
||||
- path: pdm.yaml
|
||||
configMapGenerator:
|
||||
|
||||
382
apps/documentations/wb/cde-api/cde-api-worker-copy.yaml
Normal file
382
apps/documentations/wb/cde-api/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,382 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-copy
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-copy:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-copy
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-copy
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://api-service.system-log.svc.cluster.local:8000
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://workflows-api-service.workflow.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-service.bim.svc.cluster.local:8000
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend.django.svc.cluster.local:8000
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: wb
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://workspaces-service.workspaces.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_ISSUES_SYNC_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ISSUES_BASE_URL
|
||||
value:
|
||||
_default: http://issues-service.issues.svc.cluster.local:80
|
||||
- name: CDE_API_ISSUES_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_ISSUES_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_COPY_WORKER_JOBS
|
||||
value:
|
||||
_default: ''
|
||||
- name: CDE_API_COPY_JOB_TIMEOUT_MINUTES
|
||||
value:
|
||||
_default: '30'
|
||||
- name: CDE_API_COPY_STEP_PARALLELISM
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_COPY_S3_PARALLELISM
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: host
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: port
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: vhost
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
364
apps/documentations/wb/cde-api/cde-api-worker-move.yaml
Normal file
364
apps/documentations/wb/cde-api/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,364 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-move
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-move:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-move
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-move
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://api-service.system-log.svc.cluster.local:8000
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://workflows-api-service.workflow.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-service.bim.svc.cluster.local:8000
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend.django.svc.cluster.local:8000
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: wb
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://workspaces-service.workspaces.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_MOVE_WORKER_JOBS
|
||||
value:
|
||||
_default: ''
|
||||
- name: CDE_API_MOVE_JOB_TIMEOUT_MINUTES
|
||||
value:
|
||||
_default: '30'
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: host
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: port
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: vhost
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,252 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-create-upload
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-create-upload:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-create-upload
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-create-upload
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_READERAT_BLOCK_SIZE_MB
|
||||
value:
|
||||
_default: '8'
|
||||
- name: CDE_API_S32D_READERAT_CACHE_BLOCKS
|
||||
value:
|
||||
_default: '8'
|
||||
- name: CDE_API_S32D_WORKER_CREATE_UPLOAD_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '240'
|
||||
- name: CDE_API_S32D_WORKER_CREATE_UPLOAD_MAX_JOBS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,246 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-handle-error
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-handle-error:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-handle-error
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 50m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-handle-error
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_HANDLE_ERROR_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_S32D_WORKER_HANDLE_ERROR_MAX_JOBS
|
||||
value:
|
||||
_default: '4'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,315 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-process-workflows
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-process-workflows:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-process-workflows
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-process-workflows
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '480'
|
||||
- name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_MAX_JOBS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://workflows-api-service.workflow.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-service.bim.svc.cluster.local:8000
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend.django.svc.cluster.local:8000
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: wb
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations:8000
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
@ -0,0 +1,261 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api-worker-s32d-publish-documents
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
worker-s32d-publish-documents:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-publish-documents
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: worker-s32d-publish-documents
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '1'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_TIMEOUT_MIN
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_MAX_JOBS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://api-service.system-log.svc.cluster.local:8000
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://workspaces-service.workspaces.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
462
apps/documentations/wb/cde-api/cde-api.yaml
Normal file
462
apps/documentations/wb/cde-api/cde-api.yaml
Normal file
@ -0,0 +1,462 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
cde-api:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: cde-api
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
port:
|
||||
_default: 8000
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
probes:
|
||||
readiness:
|
||||
enabled: true
|
||||
type:
|
||||
_default: tcpSocket
|
||||
tcpSocket:
|
||||
port:
|
||||
_default: 8000
|
||||
periodSeconds:
|
||||
_default: 5
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:production_19194531
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: true
|
||||
name:
|
||||
_default: cde-api
|
||||
type:
|
||||
_default: ClusterIP
|
||||
port:
|
||||
_default: 8000
|
||||
targetPort:
|
||||
_default: 8000
|
||||
portName:
|
||||
_default: http
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: CDE_API_RESOURCES_BASE_URL
|
||||
value:
|
||||
_default: http://iams.iam.svc.cluster.local:8080
|
||||
- name: CDE_API_RESOURCES_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: cde-api
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: debug
|
||||
- name: CDE_API_HTTP_PORT
|
||||
value:
|
||||
_default: '8000'
|
||||
- name: CDE_API_HTTP_READ_TIMEOUT
|
||||
value:
|
||||
_default: 0s
|
||||
- name: CDE_API_HTTP_WRITE_TIMEOUT
|
||||
value:
|
||||
_default: 0s
|
||||
- name: CDE_API_HTTP_IDLE_TIMEOUT
|
||||
value:
|
||||
_default: 120s
|
||||
- name: CDE_API_HTTP_READ_BUFFER_SIZE
|
||||
value:
|
||||
_default: '96'
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE
|
||||
value:
|
||||
_default: '5368709120'
|
||||
- name: CDE_API_S3_MAX_PART_SIZE
|
||||
value:
|
||||
_default: '524288000'
|
||||
- name: CDE_API_S3_UPLOAD_STALL_TIMEOUT
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_PUBLIC_LINK_HOST
|
||||
value:
|
||||
_default: https://document-link-srx.wb.ru
|
||||
- name: CDE_API_WORKFLOW_BASE_URL
|
||||
value:
|
||||
_default: http://workflows-api-service.workflow.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKFLOW_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKFLOW_RETRY_WAIT_MS
|
||||
value:
|
||||
_default: '500'
|
||||
- name: CDE_API_WORKFLOW_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_URL
|
||||
value:
|
||||
_default: http://backend-service.bim.svc.cluster.local:8000
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080
|
||||
- name: CDE_API_BIMAPI_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_BIMAPI_RETRY_WAIT_MS
|
||||
value:
|
||||
_default: '1000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_MS
|
||||
value:
|
||||
_default: '30000'
|
||||
- name: CDE_API_BIMAPI_TIMEOUT_V2_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_WORKSPACE_BASE_URL
|
||||
value:
|
||||
_default: http://workspaces-service.workspaces.svc.cluster.local:8000
|
||||
- name: CDE_API_WORKSPACE_RETRY_COUNT
|
||||
value:
|
||||
_default: '3'
|
||||
- name: CDE_API_WORKSPACE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: http://api-service.system-log.svc.cluster.local:8000
|
||||
- name: CDE_API_SYSTEMLOG_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_CONTAINER_REGISTRY
|
||||
value:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q
|
||||
- name: CDE_API_WORKFLOWS_IMAGES_VERSION
|
||||
value:
|
||||
_default: master
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: http://backend.django.svc.cluster.local:8000
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: wb
|
||||
- name: CDE_API_CONVERTED_PDF_TO_S3
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DXF_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_CONVERT_DWG_TO_GEOJSON
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_BIMV1_FOR_BIMV2
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_EAV_HOST
|
||||
value:
|
||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: CDE_API_EAV_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_DOCUMENTATION_V2_URL
|
||||
value:
|
||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||
- name: CDE_API_INTERNAL_URL
|
||||
value:
|
||||
_default: http://cde-api.documentations:8000
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: '300000'
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: '2000'
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: '2250'
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: '15000'
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_DATABASE_MAX_CONN_LIFETIME
|
||||
value:
|
||||
_default: 30m
|
||||
- name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME
|
||||
value:
|
||||
_default: 10m
|
||||
- name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE_POOL_SIZE
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD
|
||||
value:
|
||||
_default: 30s
|
||||
- name: CDE_API_DATABASE__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: CDE_API_DATABASE__INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_DATABASE_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__DB
|
||||
value:
|
||||
_default: '5'
|
||||
- name: CDE_API_REDIS__SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_REDIS__POOL_SIZE
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__MIN_IDLE_CONNS
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_REDIS__DIAL_TIMEOUT_MS
|
||||
value:
|
||||
_default: '5000'
|
||||
- name: CDE_API_REDIS__READ_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__WRITE_TIMEOUT_MS
|
||||
value:
|
||||
_default: '3000'
|
||||
- name: CDE_API_REDIS__DEFAULT_TTL_MINUTES
|
||||
value:
|
||||
_default: '10'
|
||||
- name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: auto
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: 'false'
|
||||
- name: CDE_API_S3_CONNECT_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_S3_TLS_HANDSHAKE_TIMEOUT
|
||||
value:
|
||||
_default: 10s
|
||||
- name: CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES
|
||||
value:
|
||||
_default: '1099511627776'
|
||||
- name: CDE_API_S32D_MAX_FILES_COUNT
|
||||
value:
|
||||
_default: '500'
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: 'true'
|
||||
- name: CDE_API_USERS_BASE_URL
|
||||
value:
|
||||
_default: http://backend.django.svc.cluster.local:8000
|
||||
- name: CDE_API_DISK_BUCKET_NAMESPACE
|
||||
value:
|
||||
_default: documentations
|
||||
- name: CDE_API_USERS_ORIGINATOR
|
||||
value:
|
||||
_default: docs_prod
|
||||
- name: CDE_API_USERS_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: http://mailer-service.mailer:8000
|
||||
- name: CDE_API_MAILER_FROM_EMAIL
|
||||
value:
|
||||
_default: noreply@sarex.io
|
||||
- name: CDE_API_MAILER_RETRY_COUNT
|
||||
value:
|
||||
_default: '2'
|
||||
- name: CDE_API_MAILER_TIMEOUT_MS
|
||||
value:
|
||||
_default: '10000'
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: http://backend-service.flows.svc.cluster.local:8000
|
||||
- name: CDE_API_TRANSMITTALS_URL
|
||||
value:
|
||||
_default: http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
- name: CDE_API_WORKFLOWS_CONFIG_FILEPATH
|
||||
value:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
- name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY
|
||||
value:
|
||||
_default: pdf_markings_input
|
||||
- name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY
|
||||
value:
|
||||
_default: hash.compute.normal
|
||||
- name: CDE_API_RABBITMQ__HASHER_EXCHANGE
|
||||
value:
|
||||
_default: hash.compute
|
||||
- name: CDE_API_REDIS__HOST
|
||||
value:
|
||||
_default: redis
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: '6379'
|
||||
- name: CDE_API_DATABASE__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
secretEnvs:
|
||||
- name: CDE_API_PUBLIC_KEY
|
||||
secretName:
|
||||
_default: public-key
|
||||
secretKey:
|
||||
_default: key
|
||||
- name: CDE_API_DATABASE__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: endpoint
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: access_key
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: secret_key
|
||||
- name: CDE_API_ZEEBE_GATEWAY_ADDRESS
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: gateway_address
|
||||
- name: CDE_API_ZEEBE_CLIENT_ID
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_id
|
||||
- name: CDE_API_ZEEBE_CLIENT_SECRET
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: client_secret
|
||||
- name: CDE_API_ZEEBE_AUTH_SERVER_URL
|
||||
secretName:
|
||||
_default: cde-api-zeebe-secret
|
||||
secretKey:
|
||||
_default: auth_server_url
|
||||
- name: CDE_API_USERS_AUTH_TOKEN
|
||||
secretName:
|
||||
_default: django-auth
|
||||
secretKey:
|
||||
_default: key
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: host
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: port
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: password
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: rabbitmq
|
||||
secretKey:
|
||||
_default: vhost
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
secretName:
|
||||
_default: cde-api-s3-secret
|
||||
secretKey:
|
||||
_default: bucket
|
||||
volumes:
|
||||
_default:
|
||||
- name: tasks-execution-config
|
||||
mountPath:
|
||||
_default: /etc/app/tasks_execution_config.json
|
||||
subPath:
|
||||
_default: tasks_execution_config.json
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: tasks-execution-config-documentation-v2
|
||||
items:
|
||||
- key: tasks-execution-config-documentation-v2.json
|
||||
path:
|
||||
_default: tasks_execution_config.json
|
||||
defaultMode:
|
||||
_default: '0644'
|
||||
14
apps/documentations/wb/cde-api/kustomization.yaml
Normal file
14
apps/documentations/wb/cde-api/kustomization.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: documentations
|
||||
resources:
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- outbox-relay.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- virtualservice.yaml
|
||||
137
apps/documentations/wb/cde-api/outbox-relay.yaml
Normal file
137
apps/documentations/wb/cde-api/outbox-relay.yaml
Normal file
@ -0,0 +1,137 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: outbox-relay
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: universal-chart
|
||||
version: 0.1.7
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
global:
|
||||
env: _default
|
||||
services:
|
||||
outbox-relay:
|
||||
enabled: true
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: outbox-relay
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 128Mi
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/outbox-relay:production_3e895e8a
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: dockerhub
|
||||
envs:
|
||||
- name: OUTBOX_RELAY_APP_NAME
|
||||
value:
|
||||
_default: cde-api-outbox-relay
|
||||
- name: OUTBOX_RELAY_APP_VERSION
|
||||
value:
|
||||
_default: 0.1.0
|
||||
- name: OUTBOX_RELAY_LOG_LEVEL
|
||||
value:
|
||||
_default: info
|
||||
- name: OUTBOX_RELAY_SOURCE_SERVICE
|
||||
value:
|
||||
_default: cde-api
|
||||
- name: OUTBOX_RELAY_SOURCE_VERSION
|
||||
value:
|
||||
_default: 0.1.0
|
||||
- name: OUTBOX_RELAY_PG__SSLMODE
|
||||
value:
|
||||
_default: disable
|
||||
- name: OUTBOX_RELAY_PG__POOL_MIN
|
||||
value:
|
||||
_default: '1'
|
||||
- name: OUTBOX_RELAY_PG__POOL_MAX
|
||||
value:
|
||||
_default: '3'
|
||||
- name: OUTBOX_RELAY_PG__TABLE
|
||||
value:
|
||||
_default: outbox
|
||||
- name: OUTBOX_RELAY_PG__HOST
|
||||
value:
|
||||
_default: sarex-vpsql-01.xc.wb.ru
|
||||
- name: OUTBOX_RELAY_PG__PORT
|
||||
value:
|
||||
_default: '5432'
|
||||
- name: OUTBOX_RELAY_PG__NAME
|
||||
value:
|
||||
_default: documentations_db
|
||||
- name: OUTBOX_RELAY_POLL_INTERVAL
|
||||
value:
|
||||
_default: 500ms
|
||||
- name: OUTBOX_RELAY_BATCH_SIZE
|
||||
value:
|
||||
_default: '100'
|
||||
- name: OUTBOX_RELAY_MAX_ATTEMPTS
|
||||
value:
|
||||
_default: '8'
|
||||
- name: OUTBOX_RELAY_INITIAL_BACKOFF
|
||||
value:
|
||||
_default: 1s
|
||||
- name: OUTBOX_RELAY_MAX_BACKOFF
|
||||
value:
|
||||
_default: 5m
|
||||
- name: OUTBOX_RELAY_SHUTDOWN_TIMEOUT
|
||||
value:
|
||||
_default: 30s
|
||||
- name: OUTBOX_RELAY_KAFKA__BROKERS
|
||||
value:
|
||||
_default: wb-prod-kafka-bootstrap.kafka.svc.cluster.local:9093
|
||||
- name: OUTBOX_RELAY_KAFKA__SECURITY_PROTOCOL
|
||||
value:
|
||||
_default: SSL
|
||||
- name: OUTBOX_RELAY_KAFKA__INSECURE_SKIP_VERIFY
|
||||
value:
|
||||
_default: 'true'
|
||||
secretEnvs:
|
||||
- name: OUTBOX_RELAY_PG__USER
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: username
|
||||
- name: OUTBOX_RELAY_PG__PASSWORD
|
||||
secretName:
|
||||
_default: postgres-secret
|
||||
secretKey:
|
||||
_default: password
|
||||
dependsOn:
|
||||
- name: cde-api
|
||||
namespace: documentations
|
||||
66
apps/documentations/wb/cde-api/tasks-execution-config.yaml
Normal file
66
apps/documentations/wb/cde-api/tasks-execution-config.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: "{\n \"bim_api_metadata_inserter\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"bim_api_metadata_inserter_v2\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"bim_api_metadata_inserter_v4\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"bim_differ\": {\n \"executor\": \"k8s\",\n \"\
|
||||
resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"bim_updater\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"convert_to_potree\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"docx_to_pdf\": {\n \"executor\": \"k8s\",\n \"\
|
||||
resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"dwg_to_geojson\": {\n \"executor\"\
|
||||
: \"k8s\",\n \"resources\": {\n \"cpu_limits\": \"4\",\n \
|
||||
\ \"cpu_requests\": \"100m\",\n \"memory_limits\": \"40Gi\"\
|
||||
,\n \"memory_requests\": \"64Mi\"\n }\n },\n \"e57_to_las\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"ifc_converter_job\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"las_merge\": {\n \
|
||||
\ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\
|
||||
: \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \
|
||||
\ \"mesh_optimizer\": {\n \"executor\": \"k8s\",\n \"resources\"\
|
||||
: {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"mesh_optimizer_v2\": {\n \"executor\"\
|
||||
: \"k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n\
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"parsing_template\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"processing_converter_to_tiles\": {\n \"executor\": \"\
|
||||
k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"processing_create_colored_surface_from_geotiff\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"rendering_template\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"split_pdf_document\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"split_pdf_document_legacy\": {\n \"executor\": \"k8s\"\
|
||||
,\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \
|
||||
\ \"memory_requests\": \"64Mi\"\n }\n },\n \"update_orthomosaic_data\"\
|
||||
: {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\
|
||||
cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \
|
||||
\ }\n },\n \"web_hook_caller\": {\n \"executor\": \"k8s\",\n \
|
||||
\ \"resources\": {\n \"cpu_requests\": \"100m\",\n \"\
|
||||
memory_requests\": \"64Mi\"\n }\n },\n \"xml_to_glb\": {\n \
|
||||
\ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\
|
||||
: \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \
|
||||
\ \"document_converter\": {\n \"executor\": \"k8s\",\n \"resources\"\
|
||||
: {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\
|
||||
: \"64Mi\"\n }\n },\n \"sparkjs_converter_wrapper\": {\n \"\
|
||||
executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\":\
|
||||
\ \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n }\n}\n"
|
||||
54
apps/documentations/wb/cde-api/virtualservice.yaml
Normal file
54
apps/documentations/wb/cde-api/virtualservice.yaml
Normal file
@ -0,0 +1,54 @@
|
||||
apiVersion: networking.istio.io/v1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: vs-cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
hosts:
|
||||
- srx.wb.ru
|
||||
- lk.srx.wb.ru
|
||||
gateways:
|
||||
- istio-system/main-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /documentations/v2/
|
||||
rewrite:
|
||||
uri: /external/v2/
|
||||
corsPolicy: &id001
|
||||
allowOrigins:
|
||||
- exact: https://srx.wb.ru
|
||||
- exact: https://lk.srx.wb.ru
|
||||
- exact: https://document-link-srx.wb.ru
|
||||
allowMethods:
|
||||
- GET
|
||||
- POST
|
||||
- PUT
|
||||
- DELETE
|
||||
- PATCH
|
||||
- OPTIONS
|
||||
- HEAD
|
||||
allowHeaders:
|
||||
- Authorization
|
||||
- Content-Type
|
||||
- Identity
|
||||
- Range
|
||||
- Cache-control
|
||||
allowCredentials: true
|
||||
maxAge: 24h
|
||||
route:
|
||||
- destination:
|
||||
host: cde-api.documentations.svc.cluster.local
|
||||
port:
|
||||
number: 8000
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /cde/app/
|
||||
rewrite:
|
||||
uri: /app/
|
||||
corsPolicy: *id001
|
||||
route:
|
||||
- destination:
|
||||
host: cde-api.documentations.svc.cluster.local
|
||||
port:
|
||||
number: 8000
|
||||
@ -12,3 +12,4 @@ resources:
|
||||
- frontend-static.yaml
|
||||
- redis.yaml
|
||||
- stamp-verification.yaml
|
||||
- cde-api
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches: []
|
||||
@ -1,126 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: documentations
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: documentations_db
|
||||
user: documentations
|
||||
passwordKey: documentations
|
||||
extensions:
|
||||
- ltree
|
||||
- pg_stat_statements
|
||||
- timescaledb
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/documentations/288/documentations_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches:
|
||||
- path: replicas.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
@ -1,124 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: drawings
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: drawings_db
|
||||
user: drawings
|
||||
passwordKey: drawings
|
||||
extensions:
|
||||
- pg_stat_statements
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/drawings/288/drawings_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: drawings
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
68
apps/eav/stand/jwt-access.yaml
Normal file
68
apps/eav/stand/jwt-access.yaml
Normal file
@ -0,0 +1,68 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: eav
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-secret-eav-jwt-private: null
|
||||
vault.hashicorp.com/agent-inject-secret-eav-jwt-public: secrets/data/vault/common/jwt_public
|
||||
vault.hashicorp.com/agent-inject-template-eav-jwt-private: null
|
||||
vault.hashicorp.com/agent-inject-template-eav-jwt-public: '{{- with secret
|
||||
"secrets/data/vault/common/jwt_public" -}}
|
||||
|
||||
{{ index .Data.data "public_key" }}
|
||||
|
||||
{{- end -}}'
|
||||
checksum/jwt-runtime: e0960a7201af6acef03562faf53a36d9880a2724c954a752b416b886bb249e79
|
||||
deployment:
|
||||
args:
|
||||
_default:
|
||||
- 'set -a
|
||||
|
||||
[ -f /vault/secrets/eav-db ] && . /vault/secrets/eav-db
|
||||
|
||||
[ -f /vault/secrets/eav-s3 ] && . /vault/secrets/eav-s3
|
||||
|
||||
[ -f /vault/secrets/eav-jwt-public ] && export JWT_PUBLIC_KEY="$(cat
|
||||
/vault/secrets/eav-jwt-public)"
|
||||
|
||||
set +a
|
||||
|
||||
exec /server/entrypoint.sh
|
||||
|
||||
'
|
||||
volumes:
|
||||
_default:
|
||||
- configMap:
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
name:
|
||||
_default: django-configmap
|
||||
mountPath:
|
||||
_default: /jwt-config/original-production.py
|
||||
name: django-configmap
|
||||
readOnly:
|
||||
_default: true
|
||||
subPath:
|
||||
_default: production.py
|
||||
- name: jwt-runtime-production
|
||||
mountPath:
|
||||
_default: /server/config/settings/production.py
|
||||
subPath:
|
||||
_default: production.py
|
||||
readOnly:
|
||||
_default: true
|
||||
configMap:
|
||||
name:
|
||||
_default: jwt-runtime
|
||||
items:
|
||||
- key: production.py
|
||||
path:
|
||||
_default: production.py
|
||||
13
apps/eav/stand/jwt/production.py
Normal file
13
apps/eav/stand/jwt/production.py
Normal file
@ -0,0 +1,13 @@
|
||||
import os as _jwt_os
|
||||
|
||||
_jwt_has_private = bool(_jwt_os.environ.get("JWT_PRIVATE_KEY"))
|
||||
if not _jwt_has_private:
|
||||
_jwt_os.environ["JWT_PRIVATE_KEY"] = ""
|
||||
with open("/jwt-config/original-production.py") as _jwt_source:
|
||||
exec(compile(_jwt_source.read(), "/jwt-config/original-production.py", "exec"), globals())
|
||||
if not _jwt_has_private:
|
||||
_jwt_os.environ.pop("JWT_PRIVATE_KEY", None)
|
||||
SIMPLE_JWT["SIGNING_KEY"] = ""
|
||||
if _jwt_os.environ.get("JWT_SIGNER_MODE") == "server":
|
||||
ROOT_URLCONF = "config.jwt_signer_urls"
|
||||
del _jwt_has_private, _jwt_source
|
||||
@ -2,3 +2,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: jwt-access.yaml
|
||||
configMapGenerator:
|
||||
- name: jwt-runtime
|
||||
namespace: eav
|
||||
files:
|
||||
- production.py=jwt/production.py
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- postgresql.yaml
|
||||
patches:
|
||||
- path: replicas.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
@ -1,127 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: eav
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 2h
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "13.0.15"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
|
||||
install:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
upgrade:
|
||||
timeout: 2h
|
||||
remediation:
|
||||
retries: 3
|
||||
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
defaultStorageClass: local-path
|
||||
postgresql:
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
auth:
|
||||
username: ""
|
||||
database: ""
|
||||
secretKeys:
|
||||
userPasswordKey: "postgres-password"
|
||||
image:
|
||||
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||
repository: contour/postgresql
|
||||
tag: 13.0.15
|
||||
pullPolicy: Always
|
||||
metrics:
|
||||
enabled: false
|
||||
prometheusRule:
|
||||
enabled: false
|
||||
primary:
|
||||
containerSecurityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
customLivenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customReadinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
customStartupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
adminUser: "postgres"
|
||||
sharedPreloadLibraries: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: postgresql
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/postgresql/admin
|
||||
secretKey: postgres-password
|
||||
usersSecretPath: secrets/data/postgresql/users
|
||||
databases:
|
||||
- name: eav_db
|
||||
user: eav
|
||||
passwordKey: eav
|
||||
extensions:
|
||||
- ltree
|
||||
- pg_stat_statements
|
||||
- postgis
|
||||
- timescaledb
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: "sanitized_dumps_multi/eav/288/eav_company288_20260626T202844Z.tar.gz"
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -1,13 +0,0 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: eav
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
backend:
|
||||
deployment:
|
||||
replicaCount:
|
||||
_default: 1
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user