feat: cde-api
This commit is contained in:
parent
f5a217e793
commit
b8b365fe79
370
apps/documentations/base/cde-api-worker-copy.yaml
Normal file
370
apps/documentations/base/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,370 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-copy
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
[ -f /vault/secrets/cde-api-rabbitmq ] && . /vault/secrets/cde-api-rabbitmq
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-copy"
|
||||
- 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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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:8000"
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: "http://backend-svc.flows.svc.cluster.local:80"
|
||||
- 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://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://issues-service.platform:8000"
|
||||
- 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_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- 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__USER={{ index .Data.data "username" }}
|
||||
CDE_API_RABBITMQ__PASSWORD={{ index .Data.data "password" }}
|
||||
CDE_API_RABBITMQ__VHOST={{ index .Data.data "vhost" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
352
apps/documentations/base/cde-api-worker-move.yaml
Normal file
352
apps/documentations/base/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,352 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-move
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
[ -f /vault/secrets/cde-api-rabbitmq ] && . /vault/secrets/cde-api-rabbitmq
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-move"
|
||||
- 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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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:8000"
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: "http://backend-svc.flows.svc.cluster.local:80"
|
||||
- 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://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"
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: "6379"
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- 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__USER={{ index .Data.data "username" }}
|
||||
CDE_API_RABBITMQ__PASSWORD={{ index .Data.data "password" }}
|
||||
CDE_API_RABBITMQ__VHOST={{ index .Data.data "vhost" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
251
apps/documentations/base/cde-api-worker-s32d-create-upload.yaml
Normal file
251
apps/documentations/base/cde-api-worker-s32d-create-upload.yaml
Normal file
@ -0,0 +1,251 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-create-upload
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-create-upload"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://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"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
245
apps/documentations/base/cde-api-worker-s32d-handle-error.yaml
Normal file
245
apps/documentations/base/cde-api-worker-s32d-handle-error.yaml
Normal file
@ -0,0 +1,245 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-handle-error
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 50m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-handle-error"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://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"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
@ -0,0 +1,314 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-process-workflows
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-process-workflows"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "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_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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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:8000"
|
||||
- name: CDE_API_FLOWS_URL
|
||||
value:
|
||||
_default: "http://backend-svc.flows.svc.cluster.local:80"
|
||||
- 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"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
@ -0,0 +1,260 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: worker-s32d-publish-documents
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
set +a
|
||||
exec /opt/worker
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-publish-documents"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://transmittal-service.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"
|
||||
- name: CDE_API_REDIS__PORT
|
||||
value:
|
||||
_default: "6379"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
442
apps/documentations/base/cde-api.yaml
Normal file
442
apps/documentations/base/cde-api.yaml
Normal file
@ -0,0 +1,442 @@
|
||||
---
|
||||
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
|
||||
serviceAccount:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: documentations-vault
|
||||
deployment:
|
||||
enabled: true
|
||||
name:
|
||||
_default: cde-api
|
||||
replicaCount:
|
||||
_default: 1
|
||||
revisionHistoryLimit:
|
||||
_default: 5
|
||||
port:
|
||||
_default: 8000
|
||||
resources:
|
||||
requests:
|
||||
cpu:
|
||||
_default: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
command:
|
||||
_default: ["/bin/sh", "-ec"]
|
||||
args:
|
||||
_default:
|
||||
- |
|
||||
set -a
|
||||
[ -f /vault/secrets/cde-api-postgres ] && . /vault/secrets/cde-api-postgres
|
||||
[ -f /vault/secrets/cde-api-s3 ] && . /vault/secrets/cde-api-s3
|
||||
[ -f /vault/secrets/cde-api-zeebe ] && . /vault/secrets/cde-api-zeebe
|
||||
[ -f /vault/secrets/cde-api-rabbitmq ] && . /vault/secrets/cde-api-rabbitmq
|
||||
[ -f /vault/secrets/cde-api-django-auth ] && . /vault/secrets/cde-api-django-auth
|
||||
set +a
|
||||
[ -f /vault/secrets/cde-api-rsa-public ] && export CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-rsa-public)"
|
||||
exec /opt/main
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:prod_c9bc246
|
||||
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://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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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://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: "production"
|
||||
- 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: "true"
|
||||
- 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:8000"
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: "300000"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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-svc.flows.svc.cluster.local:80"
|
||||
- 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_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
podAnnotations:
|
||||
_default:
|
||||
traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411,8200"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||
vault.hashicorp.com/role: documentations
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-postgres: secrets/data/apps/documentations/postgres
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-postgres: |-
|
||||
{{- 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_ENDPOINT={{ index .Data.data.client "endpoint" }}
|
||||
CDE_API_S3_ACCESS_KEY={{ index .Data.data "access_key" }}
|
||||
CDE_API_S3_SECRET_KEY={{ index .Data.data "secret_key" }}
|
||||
{{- end -}}
|
||||
vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/apps/cde-api/zeebe
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-zeebe: |-
|
||||
{{- with secret "secrets/data/apps/cde-api/zeebe" -}}
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS={{ index .Data.data "gateway_address" }}
|
||||
CDE_API_ZEEBE_CLIENT_ID={{ index .Data.data "client_id" }}
|
||||
CDE_API_ZEEBE_CLIENT_SECRET={{ index .Data.data "client_secret" }}
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL={{ index .Data.data "auth_server_url" }}
|
||||
{{- 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__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-django-auth: secrets/data/vault/common/django_auth
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-django-auth: |-
|
||||
{{- 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-rsa-public: secrets/data/vault/common/rsa_keys
|
||||
vault.hashicorp.com/agent-inject-template-cde-api-rsa-public: |-
|
||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||
{{ index .Data.data "public_key" }}
|
||||
{{- end -}}
|
||||
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"
|
||||
@ -12,3 +12,11 @@ resources:
|
||||
- hasher.yaml
|
||||
- redis-deployment.yaml
|
||||
- redis-service.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
|
||||
180
apps/documentations/base/tasks-execution-config.yaml
Normal file
180
apps/documentations/base/tasks-execution-config.yaml
Normal file
@ -0,0 +1,180 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: |
|
||||
{
|
||||
"bim_api_metadata_inserter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v4": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_differ": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_updater": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"convert_to_potree": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"docx_to_pdf": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"dwg_to_geojson": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_limits": "4",
|
||||
"cpu_requests": "100m",
|
||||
"memory_limits": "40Gi",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"e57_to_las": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"ifc_converter_job": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"las_merge": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"parsing_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_converter_to_tiles": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_create_colored_surface_from_geotiff": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"rendering_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document_legacy": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"update_orthomosaic_data": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"web_hook_caller": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"xml_to_glb": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"document_converter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"sparkjs_converter_wrapper": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
388
apps/documentations/brusnika-prod/cde-api-worker-copy.yaml
Normal file
388
apps/documentations/brusnika-prod/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,388 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-copy"
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: "http://api-service.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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://bim-api-service.bim.svc.cluster.local:8080"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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.platform:8000"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
370
apps/documentations/brusnika-prod/cde-api-worker-move.yaml
Normal file
370
apps/documentations/brusnika-prod/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,370 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-move"
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: "http://api-service.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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://bim-api-service.bim.svc.cluster.local:8080"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
@ -0,0 +1,258 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-create-upload"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
@ -0,0 +1,252 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-handle-error"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
@ -0,0 +1,321 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-process-workflows"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "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_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://bim-api-service.bim.svc.cluster.local:8080"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
@ -0,0 +1,267 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:prod_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-publish-documents"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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:80"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
458
apps/documentations/brusnika-prod/cde-api.yaml
Normal file
458
apps/documentations/brusnika-prod/cde-api.yaml
Normal file
@ -0,0 +1,458 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:prod_c9bc246
|
||||
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://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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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.cde.brusnika.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://bim-api-service.bim.svc.cluster.local:8080"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: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.django.svc.cluster.local:8000"
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: "production"
|
||||
- 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: "true"
|
||||
- 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: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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: "postgres-service"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "hasher-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "hasher-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"
|
||||
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"
|
||||
@ -8,3 +8,11 @@ resources:
|
||||
- api.yaml
|
||||
- filestream.yaml
|
||||
- hasher.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
|
||||
180
apps/documentations/brusnika-prod/tasks-execution-config.yaml
Normal file
180
apps/documentations/brusnika-prod/tasks-execution-config.yaml
Normal file
@ -0,0 +1,180 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: |
|
||||
{
|
||||
"bim_api_metadata_inserter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v4": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_differ": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_updater": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"convert_to_potree": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"docx_to_pdf": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"dwg_to_geojson": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_limits": "4",
|
||||
"cpu_requests": "100m",
|
||||
"memory_limits": "40Gi",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"e57_to_las": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"ifc_converter_job": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"las_merge": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"parsing_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_converter_to_tiles": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_create_colored_surface_from_geotiff": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"rendering_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document_legacy": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"update_orthomosaic_data": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"web_hook_caller": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"xml_to_glb": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"document_converter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"sparkjs_converter_wrapper": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
388
apps/documentations/brusnika-stage/cde-api-worker-copy.yaml
Normal file
388
apps/documentations/brusnika-stage/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,388 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-copy"
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: "http://api-service.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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: "http://mailer-service.generic: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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "develop"
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: "http://backend.django.svc.cluster.local:8000"
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: "stage"
|
||||
- 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: "0"
|
||||
- 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.platform:8000"
|
||||
- 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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
370
apps/documentations/brusnika-stage/cde-api-worker-move.yaml
Normal file
370
apps/documentations/brusnika-stage/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,370 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-move"
|
||||
- name: CDE_API_SYSTEMLOG_BASE_URL
|
||||
value:
|
||||
_default: "http://api-service.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: "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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- name: CDE_API_ZEEBE_USE_PLAINTEXT
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: "http://mailer-service.generic: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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "develop"
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: "http://backend.django.svc.cluster.local:8000"
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: "stage"
|
||||
- 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: "0"
|
||||
- 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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,258 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-create-upload"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- 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.generic: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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,252 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-handle-error"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- 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.generic: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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,321 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-process-workflows"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- 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.generic: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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "develop"
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: "http://backend.django.svc.cluster.local:8000"
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: "stage"
|
||||
- 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: "0"
|
||||
- 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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,267 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:stage_c9bc246
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
service:
|
||||
enabled: false
|
||||
imagePullSecrets:
|
||||
enabled:
|
||||
_default: true
|
||||
name:
|
||||
_default: regcred
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-publish-documents"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-stage"
|
||||
- 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.generic: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:80"
|
||||
- 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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
458
apps/documentations/brusnika-stage/cde-api.yaml
Normal file
458
apps/documentations/brusnika-stage/cde-api.yaml
Normal file
@ -0,0 +1,458 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:stage_c9bc246
|
||||
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://iams.platform.svc.cluster.local:8080"
|
||||
- name: CDE_API_RESOURCES_TIMEOUT
|
||||
value:
|
||||
_default: "10s"
|
||||
- name: CDE_API_APP_NAME
|
||||
value:
|
||||
_default: "cde-api"
|
||||
- name: CDE_API_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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.test.sarex.brusnika.tech"
|
||||
- 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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: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: "develop"
|
||||
- name: CDE_API_DJANGO_HOST
|
||||
value:
|
||||
_default: "http://backend.django.svc.cluster.local:8000"
|
||||
- name: CDE_API_ENVIRONMENT
|
||||
value:
|
||||
_default: "stage"
|
||||
- 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: "0"
|
||||
- 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: "true"
|
||||
- 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-stage"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-stage"
|
||||
- name: CDE_API_USERS_ORIGINATOR
|
||||
value:
|
||||
_default: "docs_stage"
|
||||
- name: CDE_API_USERS_TIMEOUT_MS
|
||||
value:
|
||||
_default: "10000"
|
||||
- name: CDE_API_MAILER_BASE_URL
|
||||
value:
|
||||
_default: "http://mailer-service.generic: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: "192.168.2.45"
|
||||
- name: CDE_API_DATABASE__PORT
|
||||
value:
|
||||
_default: "5432"
|
||||
- name: CDE_API_DATABASE__NAME
|
||||
value:
|
||||
_default: "documentations"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -9,3 +9,11 @@ resources:
|
||||
- filestream.yaml
|
||||
- hasher.yaml
|
||||
- pdf-markings-amqp.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
|
||||
180
apps/documentations/brusnika-stage/tasks-execution-config.yaml
Normal file
180
apps/documentations/brusnika-stage/tasks-execution-config.yaml
Normal file
@ -0,0 +1,180 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: |
|
||||
{
|
||||
"bim_api_metadata_inserter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v4": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_differ": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_updater": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"convert_to_potree": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"docx_to_pdf": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"dwg_to_geojson": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_limits": "4",
|
||||
"cpu_requests": "100m",
|
||||
"memory_limits": "40Gi",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"e57_to_las": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"ifc_converter_job": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"las_merge": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"parsing_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_converter_to_tiles": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_create_colored_surface_from_geotiff": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"rendering_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document_legacy": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"update_orthomosaic_data": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"web_hook_caller": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"xml_to_glb": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"document_converter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"sparkjs_converter_wrapper": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
236
apps/documentations/cde-api.CONFIGURATION.md
Normal file
236
apps/documentations/cde-api.CONFIGURATION.md
Normal file
@ -0,0 +1,236 @@
|
||||
# Конфигурация cde-api и его воркеров
|
||||
|
||||
Документ описывает переменные окружения `cde-api` и воркеров, развёрнутых в неймспейсе `documentations`. Манифесты — `base/cde-api*.yaml` (канонический вариант) и одноимённые файлы в оверлеях контуров. Источник значений — `cde-api/.helm/values.yaml`; значения в таблицах — из `base` (контуры переопределяют URL зависимостей, см. ниже).
|
||||
|
||||
## Процессы
|
||||
|
||||
| HelmRelease | Deployment | Образ | Service | Назначение |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `cde-api` | `cde-api` | `cde-api` | `cde-api:8000` | HTTP-API (`CDE_API_HTTP_PORT=8000`) |
|
||||
| `cde-api-worker-s32d-create-upload` | `worker-s32d-create-upload` | `cde-api-worker-s32d-create-upload` | — | воркер S32D: создание и загрузка s3→disk |
|
||||
| `cde-api-worker-s32d-process-workflows` | `worker-s32d-process-workflows` | `cde-api-worker-s32d-process-workflows` | — | воркер S32D: запуск workflow-обработки |
|
||||
| `cde-api-worker-s32d-publish-documents` | `worker-s32d-publish-documents` | `cde-api-worker-s32d-publish-documents` | — | воркер S32D: публикация документов |
|
||||
| `cde-api-worker-s32d-handle-error` | `worker-s32d-handle-error` | `cde-api-worker-s32d-handle-error` | — | воркер S32D: обработка ошибок |
|
||||
| `cde-api-worker-copy` | `worker-copy` | `cde-api-worker-copy` | — | воркер копирования |
|
||||
| `cde-api-worker-move` | `worker-move` | `cde-api-worker-move` | — | воркер перемещения |
|
||||
|
||||
Не развёрнуты (в `universal-chart` нет поддержки `cronjobs`): `workspace-recovery`, `resource-id-backfill`, `sizer` — остаются в `cde-api/.helm`.
|
||||
|
||||
Назначение воркеров выведено из имён образов и переменных `CDE_API_S32D_*`; точное поведение — в коде `cde-api/cmd`.
|
||||
|
||||
## Способ конфигурирования
|
||||
|
||||
- Только переменные окружения с префиксом `CDE_API_`; вложенные секции задаются через `__` (`CDE_API_DATABASE__HOST`).
|
||||
- Несекретные значения — `envs` в HelmRelease. Секреты: в vault-контурах (`base`, а значит `sarex-contour`, `yc-k8s-test`, `d8-ugmk-prod`, `uralkal`, `vad`) — Vault Agent Injector (файлы в `/vault/secrets/`, которые `command: /bin/sh -ec` загружает в окружение перед `exec /opt/main` / `exec /opt/worker`, как у `documentations-api`); в остальных (`ugok`, `brusnika-*`, `wb`) — k8s `secretEnvs`.
|
||||
- Для Vault-схемы в образы cde-api добавлен статический busybox (`/bin/sh`, `/bin/cat`) — см. `.docker/*/Dockerfile` в репозитории cde-api; без него контейнер не стартует.
|
||||
- **Postgres, Valkey и S3 — общие с documentations** (отдельных ресурсов у cde-api нет): БД и креды те же, что у `documentations-api`; Valkey — внутрикластерный `redis:6379` (ns `documentations`, без TLS и пароля, DB 5); S3 — доступ MinIO из `secrets/data/minio/apps/documentations`.
|
||||
- Файл `/etc/app/tasks_execution_config.json` (`CDE_API_WORKFLOWS_CONFIG_FILEPATH`) монтируется из ConfigMap `tasks-execution-config-documentation-v2` (`tasks-execution-config.yaml`; содержимое — `cde-api/.example.tasks_execution_config.json`, в реальных контурах заменить боевыми ресурсами задач).
|
||||
- Значения по умолчанию в `values.yaml` источника — для stage; в iac всегда `global.env=_default`, поэтому здесь взяты prod-значения, а URL зависимостей — по конвенции соответствующего контура (из его `api.yaml`).
|
||||
|
||||
## Секреты в Vault (vault-контуры)
|
||||
|
||||
Инжектируются Vault Agent (role `documentations`, SA `documentations-vault`); каждый путь — отдельный файл `/vault/secrets/cde-api-<имя>`.
|
||||
|
||||
| Файл | Путь Vault | Переменные | Процессы |
|
||||
| --- | --- | --- | --- |
|
||||
| `postgres` | `secrets/data/apps/documentations/postgres` (общий с documentations) | `CDE_API_DATABASE__HOST/PORT/NAME/USER/PASSWORD` | все |
|
||||
| `s3` | `secrets/data/minio/apps/documentations` (общий) | `CDE_API_S3_ENDPOINT/ACCESS_KEY/SECRET_KEY` | все |
|
||||
| `zeebe` | `secrets/data/apps/cde-api/zeebe` (**нужно создать**: `gateway_address`, `client_id`, `client_secret`, `auth_server_url`) | `CDE_API_ZEEBE_*` | все |
|
||||
| `rabbitmq` | `secrets/data/rabbitmq/apps/cde` | `CDE_API_RABBITMQ__USER/PASSWORD/VHOST` (хост и порт — в envs) | api, copy, move |
|
||||
| `django-auth` | `secrets/data/vault/common/django_auth` (ключ `key`) | `CDE_API_USERS_AUTH_TOKEN` | api |
|
||||
| `rsa-public` | `secrets/data/vault/common/rsa_keys` (ключ `public_key`) | `CDE_API_PUBLIC_KEY` | api |
|
||||
|
||||
Точный состав файлов у каждого процесса — в `podAnnotations` его HelmRelease.
|
||||
|
||||
## Секреты k8s-контуров (`ugok`, `brusnika-*`, `wb`; ns `documentations`)
|
||||
|
||||
Postgres — тот же хост/БД, что у `documentations-api` контура (литералы в envs), логин/пароль из его секрета (`postgres-secret` или `documentations-postgresql-secret`, ключи `username`/`password`); Valkey — `redis`. S3 и RabbitMQ — Secret'ы, которые в контуре уже используют hasher / pdf-markings / api; новый нужен только для Zeebe (`cde-api-zeebe-secret`).
|
||||
|
||||
| Контур | S3 (endpoint / access / secret) | RabbitMQ |
|
||||
| --- | --- | --- |
|
||||
| `ugok` | `documentations-s3-secret`: `endpoint` / `access_key` / `secret_key` | `documentations-rabbitmq-secret`: `host, port, username, password, vhost` |
|
||||
| `brusnika-prod` | `hasher-s3-secret`: `endpoint` / `access_key` / `secret_key` | `rabbitmq`: `host, port, username, password, vhost` |
|
||||
| `brusnika-stage` | `yc-s3`: `endpoint_url` / `key_id` / `access_key` | `rabbitmq`: как выше |
|
||||
| `wb` | `yc-s3`: `endpoint_url` / `key_id` / `access_key` | как в `wb/api.yaml`: host/port/vhost (`cde`) — литералы в envs, user/password — `hasher-rabbitmq-secret` (`user`, `password`) |
|
||||
|
||||
Таблица ниже — для справки по `wb` (остальные контуры отличаются именами Secret'ов и ключей, см. таблицу выше):
|
||||
|
||||
| Secret | Ключи | Переменные |
|
||||
| --- | --- | --- |
|
||||
| `public-key` | `key` | `CDE_API_PUBLIC_KEY` |
|
||||
| `postgres-secret` | `username`, `password` | `CDE_API_DATABASE__USER`, `CDE_API_DATABASE__PASSWORD` |
|
||||
| `yc-s3` | `endpoint_url`, `key_id`, `access_key` | `CDE_API_S3_ENDPOINT`, `CDE_API_S3_ACCESS_KEY`, `CDE_API_S3_SECRET_KEY` |
|
||||
| `cde-api-zeebe-secret` | `gateway_address`, `client_id`, `client_secret`, `auth_server_url` | `CDE_API_ZEEBE_GATEWAY_ADDRESS`, `CDE_API_ZEEBE_CLIENT_ID`, `CDE_API_ZEEBE_CLIENT_SECRET`, `CDE_API_ZEEBE_AUTH_SERVER_URL` |
|
||||
| `django-auth` | `key` | `CDE_API_USERS_AUTH_TOKEN` |
|
||||
| `hasher-rabbitmq-secret` | `user`, `password` | `CDE_API_RABBITMQ__USER`, `CDE_API_RABBITMQ__PASSWORD` |
|
||||
|
||||
## Переменные окружения
|
||||
|
||||
Колонка «Процессы»: api, create-upload, process-workflows, publish-documents, handle-error, copy, move. Если значение различается между процессами, показано значение первого процесса из списка.
|
||||
|
||||
| Переменная | Значение (base) | Процессы |
|
||||
| --- | --- | --- |
|
||||
| `CDE_API_APP_NAME` | `cde-api` *(различается)* | все |
|
||||
| `CDE_API_BIMAPI_RETRY_COUNT` | `3` | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_RETRY_WAIT_MS` | `1000` | api |
|
||||
| `CDE_API_BIMAPI_TIMEOUT_MS` | `30000` | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_TIMEOUT_V2_MS` | `300000` | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_URL` | `http://backend-svc.bim.svc.cluster.local:80` | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_V2_URL` | `http://backend-svc.bim.svc.cluster.local:80` | api, process-workflows, copy, move |
|
||||
| `CDE_API_CONTAINER_REGISTRY` | `cr.yandex/crp3ccidau046kdj8g9q` | api, process-workflows, copy, move |
|
||||
| `CDE_API_CONVERTED_PDF_TO_S3` | `true` | api, process-workflows, copy, move |
|
||||
| `CDE_API_CONVERT_DWG_TO_GEOJSON` | `true` | api, process-workflows, copy, move |
|
||||
| `CDE_API_CONVERT_DXF_TO_GEOJSON` | `true` | api, process-workflows, copy, move |
|
||||
| `CDE_API_COPY_JOB_TIMEOUT_MINUTES` | `30` | copy |
|
||||
| `CDE_API_COPY_MAX_SYNC_WAIT_MS` | `300000` | api |
|
||||
| `CDE_API_COPY_S3_PARALLELISM` | `1` | copy |
|
||||
| `CDE_API_COPY_STEP_PARALLELISM` | `1` | copy |
|
||||
| `CDE_API_COPY_WORKER_JOBS` | `""` | copy |
|
||||
| `CDE_API_DATABASE_HEALTH_CHECK_PERIOD` | `30s` | все |
|
||||
| `CDE_API_DATABASE_MAX_CONN_IDLE_TIME` | `10m` | все |
|
||||
| `CDE_API_DATABASE_MAX_CONN_LIFETIME` | `30m` | все |
|
||||
| `CDE_API_DATABASE_OBSERVABILITY_ENABLE` | `true` | api |
|
||||
| `CDE_API_DATABASE_POOL_SIZE` | `10` *(различается)* | все |
|
||||
| `CDE_API_DATABASE__INSECURE_SKIP_TLS` | `false` | все |
|
||||
| `CDE_API_DATABASE__SSLMODE` | `disable` | все |
|
||||
| `CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD` | `30s` | api |
|
||||
| `CDE_API_DISK_BUCKET_NAMESPACE` | `documentations-prod` | api |
|
||||
| `CDE_API_DJANGO_HOST` | `http://backend-svc.django.svc.cluster.local:80` | api, process-workflows, copy, move |
|
||||
| `CDE_API_DOCUMENTATION_V2_URL` | `http://backend-api-svc.documentations.svc.cluster.local:80` | api, process-workflows, copy, move |
|
||||
| `CDE_API_EAV_HOST` | `http://backend-svc.eav.svc.cluster.local:80` | все |
|
||||
| `CDE_API_EAV_TIMEOUT_MS` | `10000` | api |
|
||||
| `CDE_API_ENVIRONMENT` | `production` | api, process-workflows, copy, move |
|
||||
| `CDE_API_FLOWS_URL` | `http://backend-svc.flows.svc.cluster.local:80` | все |
|
||||
| `CDE_API_HTTP_IDLE_TIMEOUT` | `120s` | api |
|
||||
| `CDE_API_HTTP_PORT` | `8000` | api |
|
||||
| `CDE_API_HTTP_READ_BUFFER_SIZE` | `96` | api |
|
||||
| `CDE_API_HTTP_READ_TIMEOUT` | `0s` | api |
|
||||
| `CDE_API_HTTP_WRITE_TIMEOUT` | `0s` | api |
|
||||
| `CDE_API_INTERNAL_URL` | `http://cde-api.documentations:8000` | api, process-workflows, copy, move |
|
||||
| `CDE_API_ISSUES_BASE_URL` | `http://issues-service.platform:8000` | copy |
|
||||
| `CDE_API_ISSUES_RETRY_COUNT` | `3` | copy |
|
||||
| `CDE_API_ISSUES_SYNC_ENABLED` | `false` | copy |
|
||||
| `CDE_API_ISSUES_TIMEOUT_MS` | `30000` | copy |
|
||||
| `CDE_API_LAST_MASTER_BIM` | `36311` | api, process-workflows, copy, move |
|
||||
| `CDE_API_LAST_SLAVE_1_BIM` | `94015` | api, process-workflows, copy, move |
|
||||
| `CDE_API_LAST_SLAVE_2_BIM` | `135771` | api, process-workflows, copy, move |
|
||||
| `CDE_API_LOG_LEVEL` | `debug` *(различается)* | все |
|
||||
| `CDE_API_MAILER_BASE_URL` | `http://mailer-service.mailer:8000` | все |
|
||||
| `CDE_API_MAILER_FROM_EMAIL` | `noreply@sarex.io` | все |
|
||||
| `CDE_API_MAILER_RETRY_COUNT` | `2` | api |
|
||||
| `CDE_API_MAILER_TIMEOUT_MS` | `10000` | api |
|
||||
| `CDE_API_MOVE_JOB_TIMEOUT_MINUTES` | `30` | move |
|
||||
| `CDE_API_MOVE_WORKER_JOBS` | `""` | move |
|
||||
| `CDE_API_OBSERVABILITY_ENABLE` | `true` | все |
|
||||
| `CDE_API_OBSERVABILITY_HOST` | `signoz-otel-collector-external.signoz.svc.cluster.local` | все |
|
||||
| `CDE_API_OBSERVABILITY_PORT` | `4317` | все |
|
||||
| `CDE_API_OBSERVABILITY_SERVICE_NAME` | `worker-s32d-create-upload` *(различается)* | create-upload, process-workflows, publish-documents, handle-error, copy, move |
|
||||
| `CDE_API_PUBLIC_LINK_HOST` | `https://document-link-srx.wb.ru` | api |
|
||||
| `CDE_API_RABBITMQ__HASHER_EXCHANGE` | `hash.compute` | api, copy, move |
|
||||
| `CDE_API_RABBITMQ__HASHER_ROUTING_KEY` | `hash.compute.normal` | api, copy, move |
|
||||
| `CDE_API_RABBITMQ__HOST` | `rabbitmq.rabbitmq.svc.cluster.local` | api, copy, move |
|
||||
| `CDE_API_RABBITMQ__MARKS_ROUTING_KEY` | `pdf_markings_input` | api, copy, move |
|
||||
| `CDE_API_RABBITMQ__PORT` | `5672` | api, copy, move |
|
||||
| `CDE_API_REDIS__DB` | `5` | api |
|
||||
| `CDE_API_REDIS__DEFAULT_TTL_MINUTES` | `10` | все |
|
||||
| `CDE_API_REDIS__DIAL_TIMEOUT_MS` | `5000` | все |
|
||||
| `CDE_API_REDIS__HOST` | `redis` | все |
|
||||
| `CDE_API_REDIS__MIN_IDLE_CONNS` | `2` *(различается)* | все |
|
||||
| `CDE_API_REDIS__PERMISSION_CACHE_ENABLED` | `false` | все |
|
||||
| `CDE_API_REDIS__POOL_SIZE` | `10` *(различается)* | все |
|
||||
| `CDE_API_REDIS__PORT` | `6379` | все |
|
||||
| `CDE_API_REDIS__READ_TIMEOUT_MS` | `3000` | все |
|
||||
| `CDE_API_REDIS__SSL` | `false` | все |
|
||||
| `CDE_API_REDIS__WRITE_TIMEOUT_MS` | `3000` | все |
|
||||
| `CDE_API_RESOURCES_BASE_URL` | `http://iams.iam.svc.cluster.local:8080` | api |
|
||||
| `CDE_API_RESOURCES_TIMEOUT` | `10s` | api |
|
||||
| `CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES` | `1099511627776` | api |
|
||||
| `CDE_API_S32D_MAX_FILES_COUNT` | `500` | api |
|
||||
| `CDE_API_S32D_READERAT_BLOCK_SIZE_MB` | `8` | create-upload |
|
||||
| `CDE_API_S32D_READERAT_CACHE_BLOCKS` | `8` | create-upload |
|
||||
| `CDE_API_S32D_WORKER_CREATE_UPLOAD_MAX_JOBS` | `2` | create-upload |
|
||||
| `CDE_API_S32D_WORKER_CREATE_UPLOAD_TIMEOUT_MIN` | `240` | create-upload |
|
||||
| `CDE_API_S32D_WORKER_HANDLE_ERROR_MAX_JOBS` | `4` | handle-error |
|
||||
| `CDE_API_S32D_WORKER_HANDLE_ERROR_TIMEOUT_MIN` | `10` | handle-error |
|
||||
| `CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_MAX_JOBS` | `2` | process-workflows |
|
||||
| `CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_TIMEOUT_MIN` | `480` | process-workflows |
|
||||
| `CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_MAX_JOBS` | `2` | publish-documents |
|
||||
| `CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_TIMEOUT_MIN` | `10` | publish-documents |
|
||||
| `CDE_API_S3_BUCKET_LOOKUP` | `auto` | все |
|
||||
| `CDE_API_S3_BUCKET_NAME` | `documentations-prod` | все |
|
||||
| `CDE_API_S3_CHECK_BUCKET` | `false` | все |
|
||||
| `CDE_API_S3_CONNECT_TIMEOUT` | `10s` | api |
|
||||
| `CDE_API_S3_INSECURE_SKIP_TLS` | `true` | все |
|
||||
| `CDE_API_S3_MAX_PART_SIZE` | `524288000` | все |
|
||||
| `CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE` | `5368709120` | все |
|
||||
| `CDE_API_S3_TLS_HANDSHAKE_TIMEOUT` | `10s` | api |
|
||||
| `CDE_API_S3_UPLOAD_STALL_TIMEOUT` | `10m` | все |
|
||||
| `CDE_API_S3_USE_SSL` | `true` | все |
|
||||
| `CDE_API_SENTRY_DSN` | `""` | все |
|
||||
| `CDE_API_SENTRY_ENVIRONMENT` | `""` | все |
|
||||
| `CDE_API_SYSTEMLOG_BASE_URL` | `http://backend-svc.system-log.svc.cluster.local:80` | api, publish-documents, copy, move |
|
||||
| `CDE_API_SYSTEMLOG_TIMEOUT_MS` | `10000` | api, publish-documents, copy, move |
|
||||
| `CDE_API_TRANSMITTALS_URL` | `http://transmittal-service.transmittal.svc.cluster.local:80` | все |
|
||||
| `CDE_API_USERS_BASE_URL` | `http://backend-svc.django.svc.cluster.local:80` | api |
|
||||
| `CDE_API_USERS_ORIGINATOR` | `docs_prod` | api |
|
||||
| `CDE_API_USERS_TIMEOUT_MS` | `10000` | api |
|
||||
| `CDE_API_USE_BIMV1_FOR_BIMV2` | `true` | api, process-workflows, copy, move |
|
||||
| `CDE_API_USE_BIM_INSERTER` | `true` | api, process-workflows, copy, move |
|
||||
| `CDE_API_USE_LEGACY_BIM_FLOW` | `0` | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKFLOWS_CONFIG_FILEPATH` | `/etc/app/tasks_execution_config.json` | все |
|
||||
| `CDE_API_WORKFLOWS_IMAGES_VERSION` | `master` | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKFLOW_BASE_URL` | `http://backend-svc.processing.svc.cluster.local:80` | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKFLOW_RETRY_COUNT` | `3` | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKFLOW_RETRY_WAIT_MS` | `500` | api |
|
||||
| `CDE_API_WORKFLOW_TIMEOUT_MS` | `30000` | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKSPACE_BASE_URL` | `http://backend-svc.workspaces.svc.cluster.local:80` | api, publish-documents, copy, move |
|
||||
| `CDE_API_WORKSPACE_RETRY_COUNT` | `3` | api, publish-documents, copy, move |
|
||||
| `CDE_API_WORKSPACE_TIMEOUT_MS` | `10000` | api, publish-documents, copy, move |
|
||||
| `CDE_API_ZEEBE_USE_PLAINTEXT` | `true` | все |
|
||||
|
||||
## Переменные из k8s-секретов (ugok, brusnika-*, wb)
|
||||
|
||||
| Переменная | Secret / ключ | Процессы |
|
||||
| --- | --- | --- |
|
||||
| `CDE_API_DATABASE__PASSWORD` | `postgres-secret` / `password` | все |
|
||||
| `CDE_API_DATABASE__USER` | `postgres-secret` / `username` | все |
|
||||
| `CDE_API_PUBLIC_KEY` | `public-key` / `key` | api |
|
||||
| `CDE_API_RABBITMQ__PASSWORD` | `hasher-rabbitmq-secret` / `password` | api, copy, move |
|
||||
| `CDE_API_RABBITMQ__USER` | `hasher-rabbitmq-secret` / `user` | api, copy, move |
|
||||
| `CDE_API_S3_ACCESS_KEY` | `yc-s3` / `key_id` | все |
|
||||
| `CDE_API_S3_ENDPOINT` | `yc-s3` / `endpoint_url` | все |
|
||||
| `CDE_API_S3_SECRET_KEY` | `yc-s3` / `access_key` | все |
|
||||
| `CDE_API_USERS_AUTH_TOKEN` | `django-auth` / `key` | api |
|
||||
| `CDE_API_ZEEBE_AUTH_SERVER_URL` | `cde-api-zeebe-secret` / `auth_server_url` | все |
|
||||
| `CDE_API_ZEEBE_CLIENT_ID` | `cde-api-zeebe-secret` / `client_id` | все |
|
||||
| `CDE_API_ZEEBE_CLIENT_SECRET` | `cde-api-zeebe-secret` / `client_secret` | все |
|
||||
| `CDE_API_ZEEBE_GATEWAY_ADDRESS` | `cde-api-zeebe-secret` / `gateway_address` | все |
|
||||
|
||||
## Различия по контурам
|
||||
|
||||
От контура к контуру меняются URL зависимостей, внешний хост публичных ссылок и источник образов:
|
||||
|
||||
| Контур | Тип оверлея | Что отличается |
|
||||
| --- | --- | --- |
|
||||
| `sarex-contour`, `yc-k8s-test` | наследуют `base` | ничего (значения `base`) |
|
||||
| `d8-ugmk-prod`, `uralkal`, `vad` | патч `cde-api.yaml` поверх `base` | `CDE_API_PUBLIC_LINK_HOST` |
|
||||
| `ugok` | полная копия HelmRelease, chart 0.1.9 | URL зависимостей (порты 8000/8080), образы из `10.4.10.187:80/library`, pull-secret `dockerhub` |
|
||||
| `brusnika-prod`, `brusnika-stage` | полная копия, chart 0.1.7 | URL зависимостей; stage — профиль stage (`CDE_API_ENVIRONMENT=stage`, bucket `documentations-stage`) |
|
||||
| `wb` | полная копия, chart 0.1.7 | URL зависимостей, `CDE_API_PUBLIC_LINK_HOST=https://document-link-srx.wb.ru` |
|
||||
|
||||
Правка `base` на полные копии (ugok, brusnika-*, wb) не влияет.
|
||||
|
||||
## Допущения и что нужно проверить
|
||||
|
||||
- **Теги образов** (`prod_c9bc246`; у brusnika-stage `stage_c9bc246`, у ugok `ugok_c9bc246`) — placeholder на основе HEAD ветки develop cde-api; заменить на фактически собранные CI.
|
||||
- `CDE_API_DJANGO_HOST` и `CDE_API_USERS_BASE_URL` в источнике — внешний хост (`https://lk.sarex.io`), здесь заменены внутренним адресом Django контура. Если cde-api использует их для внешних ссылок — вернуть внешний хост.
|
||||
- `CDE_API_S3_BUCKET_NAME` для prod-контуров выставлен в `documentations-prod` по аналогии с `CDE_API_DISK_BUCKET_NAMESPACE`; в источнике задан только stage-бакет.
|
||||
- `CDE_API_EAV_HOST`, `CDE_API_TRANSMITTALS_URL` выбраны по конвенции остальных приложений контура (`backend-svc.eav`, `eav-service.eav`, `transmittal-service.transmittal`); сверить с `inventory.yaml`.
|
||||
- Sentry отключён (`CDE_API_SENTRY_DSN=""`): DSN источника ведёт во внешний SaaS.
|
||||
- Реплики воркеров `create-upload` и `process-workflows` — `1` (в prod-конфиге cde-api — `0`).
|
||||
- Порт: в источнике `deployment.port=8080` при `CDE_API_HTTP_PORT=8000` и `service.targetPort=8000`; здесь везде 8000.
|
||||
- Общая с documentations БД: cde-api применяет свои миграции в той же базе — проверить отсутствие конфликтов имён таблиц/схемы и версий миграций (отдельная схема или префикс при необходимости).
|
||||
- Общий Valkey без пароля и TLS (в источнике cde-api — управляемый Valkey с TLS и логином): подтвердить, что cde-api работает без `CDE_API_REDIS__USERNAME/PASSWORD`. DB 5 совпадает с `VALKEY_DB=5` у documentations-api (в stage так же).
|
||||
- `secrets/data/apps/cde-api/zeebe` в Vault нужно создать; в k8s-контурах нужен только Secret `cde-api-zeebe-secret`; S3 и RabbitMQ используют существующие Secret'ы hasher / pdf-markings / api (таблица выше). Если в Secret'ах S3 другие права или бакет, чем нужны cde-api, заменить на отдельный.
|
||||
- Значения секретов из Vault подставляются в окружение через `. file` без кавычек — как у `documentations-api`; пароли со спецсимволами shell ломают этот способ.
|
||||
- Образы cde-api нужно пересобрать с добавленным busybox (проверка сборки Docker не выполнялась); без этого поды в vault-контурах не стартуют.
|
||||
42
apps/documentations/cde-api.ENDPOINTS.md
Normal file
42
apps/documentations/cde-api.ENDPOINTS.md
Normal file
@ -0,0 +1,42 @@
|
||||
# Внешние зависимости cde-api и воркеров
|
||||
|
||||
Документ перечисляет сервисы, к которым обращаются `cde-api` и воркеры, по их URL-переменным окружения (`apps/documentations/base/cde-api*.yaml`). Это карта зависимостей «кто кого зовёт»; конкретные пути запросов определяются клиентами в коде `cde-api` и здесь не разбираются.
|
||||
|
||||
Значения в таблице — из `base`. В контурах с полными копиями (`ugok`, `brusnika-*`, `wb`) имена сервисов и порты другие — см. `*/cde-api.yaml` и раздел «Различия по контурам» в [cde-api.CONFIGURATION.md](cde-api.CONFIGURATION.md).
|
||||
|
||||
## HTTP-зависимости
|
||||
|
||||
| Переменная | Значение (base) | Сервис | Процессы |
|
||||
| --- | --- | --- | --- |
|
||||
| `CDE_API_RESOURCES_BASE_URL` | `http://iams.iam.svc.cluster.local:8080` | resources / iams | api |
|
||||
| `CDE_API_WORKFLOW_BASE_URL` | `http://backend-svc.processing.svc.cluster.local:80` | workflows (processing) | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_URL` | `http://backend-svc.bim.svc.cluster.local:80` | bim (v1) | api, process-workflows, copy, move |
|
||||
| `CDE_API_BIMAPI_V2_URL` | `http://backend-svc.bim.svc.cluster.local:80` | bim (v2) | api, process-workflows, copy, move |
|
||||
| `CDE_API_WORKSPACE_BASE_URL` | `http://backend-svc.workspaces.svc.cluster.local:80` | workspaces | api, publish-documents, copy, move |
|
||||
| `CDE_API_SYSTEMLOG_BASE_URL` | `http://backend-svc.system-log.svc.cluster.local:80` | system-log | api, publish-documents, copy, move |
|
||||
| `CDE_API_EAV_HOST` | `http://backend-svc.eav.svc.cluster.local:80` | eav | все |
|
||||
| `CDE_API_DOCUMENTATION_V2_URL` | `http://backend-api-svc.documentations.svc.cluster.local:80` | documentations-api | api, process-workflows, copy, move |
|
||||
| `CDE_API_INTERNAL_URL` | `http://cde-api.documentations:8000` | сам cde-api (service `cde-api`) | api, process-workflows, copy, move |
|
||||
| `CDE_API_FLOWS_URL` | `http://backend-svc.flows.svc.cluster.local:80` | flows | api, create-upload, process-workflows, publish-documents, handle-error, copy, move |
|
||||
| `CDE_API_TRANSMITTALS_URL` | `http://transmittal-service.transmittal.svc.cluster.local:80` | transmittal | api, create-upload, process-workflows, publish-documents, handle-error, copy, move |
|
||||
| `CDE_API_MAILER_BASE_URL` | `http://mailer-service.mailer:8000` | mailer | api, create-upload, process-workflows, publish-documents, handle-error, copy, move |
|
||||
| `CDE_API_DJANGO_HOST`, `CDE_API_USERS_BASE_URL` | `http://backend-svc.django.svc.cluster.local:80` | django (пользователи, `CDE_API_USERS_AUTH_TOKEN` из секрета `django-auth`) | api, process-workflows, copy, move; `CDE_API_USERS_BASE_URL` — только api |
|
||||
| `CDE_API_PUBLIC_LINK_HOST` | зависит от контура | внешний хост document-link (используется для формирования ссылок) | api |
|
||||
|
||||
Точный список процессов для каждой переменной — в [cde-api.CONFIGURATION.md](cde-api.CONFIGURATION.md).
|
||||
|
||||
## Инфраструктурные зависимости
|
||||
|
||||
| Зависимость | Откуда конфигурируется | Для чего |
|
||||
| --- | --- | --- |
|
||||
| PostgreSQL | Vault `secrets/data/apps/documentations/postgres` (k8s-контуры: хост/БД как у documentations-api + его секрет), `sslmode=disable` | **та же БД, что у documentations-api** |
|
||||
| Valkey/Redis | `CDE_API_REDIS__HOST=redis`, `PORT=6379`, `DB=5`, без TLS и пароля | общий `redis` из ns documentations: кэш, курсоры, блокировки |
|
||||
| S3 | Vault `secrets/data/minio/apps/documentations` (k8s-контуры: существующие Secret'ы контура, см. CONFIGURATION), бакет `CDE_API_S3_BUCKET_NAME` | хранение и multipart-загрузка файлов дисков |
|
||||
| Zeebe (Camunda) | Vault `secrets/data/apps/cde-api/zeebe` (k8s-контуры: `cde-api-zeebe-secret`) | S32D-воркеры берут задачи из Zeebe |
|
||||
| RabbitMQ | Vault `secrets/data/rabbitmq/apps/cde` (k8s-контуры: существующие Secret'ы контура), хост `rabbitmq.rabbitmq.svc.cluster.local:5672`; ключи `pdf_markings_input`, `hash.compute.normal`, обмен `hash.compute` | постановка задач на штампы (pdf-markings) и хэширование (hasher) |
|
||||
| SigNoz OTLP | `CDE_API_OBSERVABILITY_HOST:4317` (`signoz-otel-collector-external.signoz`) | трейсы и метрики |
|
||||
| Контейнерный реестр / workflows | `CDE_API_CONTAINER_REGISTRY`, `CDE_API_WORKFLOWS_IMAGES_VERSION=master`, файл `tasks_execution_config.json` | запуск задач обработки (k8s-jobs) |
|
||||
|
||||
## Входящий трафик
|
||||
|
||||
Service `cde-api:8000` (ns `documentations`) используется внутри кластера (в том числе самим cde-api через `CDE_API_INTERNAL_URL`). Маршруты в `infrastructure/istio-config/*` на этот сервис **не заведены**: существующие `cde-api-virt-service` относятся к легаси-сервису cde (`cde-svc.cde`) и не затрагиваются. Входящий контракт — [cde-api.openapi.yaml](cde-api.openapi.yaml) (копия `cde-api/docs/openapi/swagger.yaml`).
|
||||
118
apps/documentations/cde-api.env.example
Normal file
118
apps/documentations/cde-api.env.example
Normal file
@ -0,0 +1,118 @@
|
||||
# =============================================================================
|
||||
# cde-api и воркеры (cde-api-worker-*) — пример переменных окружения
|
||||
# =============================================================================
|
||||
# Значения — из apps/documentations/base/cde-api.yaml; секреты оставлены пустыми.
|
||||
# Префикс CDE_API_, вложенность через "__". Полный список по процессам —
|
||||
# cde-api.CONFIGURATION.md.
|
||||
|
||||
CDE_API_RESOURCES_BASE_URL=http://iams.iam.svc.cluster.local:8080
|
||||
CDE_API_RESOURCES_TIMEOUT=10s
|
||||
CDE_API_APP_NAME=cde-api
|
||||
CDE_API_SENTRY_DSN=
|
||||
CDE_API_SENTRY_ENVIRONMENT=
|
||||
CDE_API_LOG_LEVEL=debug
|
||||
CDE_API_HTTP_PORT=8000
|
||||
CDE_API_HTTP_READ_TIMEOUT=0s
|
||||
CDE_API_HTTP_WRITE_TIMEOUT=0s
|
||||
CDE_API_HTTP_IDLE_TIMEOUT=120s
|
||||
CDE_API_HTTP_READ_BUFFER_SIZE=96
|
||||
CDE_API_OBSERVABILITY_ENABLE=true
|
||||
CDE_API_OBSERVABILITY_HOST=signoz-otel-collector-external.signoz.svc.cluster.local
|
||||
CDE_API_OBSERVABILITY_PORT=4317
|
||||
CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE=5368709120
|
||||
CDE_API_S3_MAX_PART_SIZE=524288000
|
||||
CDE_API_S3_UPLOAD_STALL_TIMEOUT=10m
|
||||
CDE_API_PUBLIC_LINK_HOST=https://document-link-srx.wb.ru
|
||||
CDE_API_WORKFLOW_BASE_URL=http://backend-svc.processing.svc.cluster.local:80
|
||||
CDE_API_WORKFLOW_RETRY_COUNT=3
|
||||
CDE_API_WORKFLOW_RETRY_WAIT_MS=500
|
||||
CDE_API_WORKFLOW_TIMEOUT_MS=30000
|
||||
CDE_API_BIMAPI_URL=http://backend-svc.bim.svc.cluster.local:80
|
||||
CDE_API_BIMAPI_V2_URL=http://backend-svc.bim.svc.cluster.local:80
|
||||
CDE_API_BIMAPI_RETRY_COUNT=3
|
||||
CDE_API_BIMAPI_RETRY_WAIT_MS=1000
|
||||
CDE_API_BIMAPI_TIMEOUT_MS=30000
|
||||
CDE_API_BIMAPI_TIMEOUT_V2_MS=300000
|
||||
CDE_API_WORKSPACE_BASE_URL=http://backend-svc.workspaces.svc.cluster.local:80
|
||||
CDE_API_WORKSPACE_RETRY_COUNT=3
|
||||
CDE_API_WORKSPACE_TIMEOUT_MS=10000
|
||||
CDE_API_SYSTEMLOG_BASE_URL=http://backend-svc.system-log.svc.cluster.local:80
|
||||
CDE_API_SYSTEMLOG_TIMEOUT_MS=10000
|
||||
CDE_API_CONTAINER_REGISTRY=cr.yandex/crp3ccidau046kdj8g9q
|
||||
CDE_API_WORKFLOWS_IMAGES_VERSION=master
|
||||
CDE_API_DJANGO_HOST=http://backend-svc.django.svc.cluster.local:80
|
||||
CDE_API_ENVIRONMENT=production
|
||||
CDE_API_CONVERTED_PDF_TO_S3=true
|
||||
CDE_API_CONVERT_DXF_TO_GEOJSON=true
|
||||
CDE_API_CONVERT_DWG_TO_GEOJSON=true
|
||||
CDE_API_USE_BIMV1_FOR_BIMV2=true
|
||||
CDE_API_EAV_HOST=http://backend-svc.eav.svc.cluster.local:80
|
||||
CDE_API_EAV_TIMEOUT_MS=10000
|
||||
CDE_API_DOCUMENTATION_V2_URL=http://backend-api-svc.documentations.svc.cluster.local:80
|
||||
CDE_API_INTERNAL_URL=http://cde-api.documentations:8000
|
||||
CDE_API_COPY_MAX_SYNC_WAIT_MS=300000
|
||||
CDE_API_LAST_MASTER_BIM=36311
|
||||
CDE_API_LAST_SLAVE_1_BIM=94015
|
||||
CDE_API_LAST_SLAVE_2_BIM=135771
|
||||
CDE_API_USE_BIM_INSERTER=true
|
||||
CDE_API_USE_LEGACY_BIM_FLOW=0
|
||||
CDE_API_DATABASE_MAX_CONN_LIFETIME=30m
|
||||
CDE_API_DATABASE_MAX_CONN_IDLE_TIME=10m
|
||||
CDE_API_DATABASE_HEALTH_CHECK_PERIOD=30s
|
||||
CDE_API_DATABASE_POOL_SIZE=10
|
||||
CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD=30s
|
||||
CDE_API_DATABASE__SSLMODE=disable
|
||||
CDE_API_DATABASE__INSECURE_SKIP_TLS=false
|
||||
CDE_API_DATABASE_OBSERVABILITY_ENABLE=true
|
||||
CDE_API_REDIS__DB=5
|
||||
CDE_API_REDIS__SSL=false
|
||||
CDE_API_REDIS__POOL_SIZE=10
|
||||
CDE_API_REDIS__MIN_IDLE_CONNS=2
|
||||
CDE_API_REDIS__DIAL_TIMEOUT_MS=5000
|
||||
CDE_API_REDIS__READ_TIMEOUT_MS=3000
|
||||
CDE_API_REDIS__WRITE_TIMEOUT_MS=3000
|
||||
CDE_API_REDIS__DEFAULT_TTL_MINUTES=10
|
||||
CDE_API_REDIS__PERMISSION_CACHE_ENABLED=false
|
||||
CDE_API_S3_BUCKET_NAME=documentations-prod
|
||||
CDE_API_S3_USE_SSL=true
|
||||
CDE_API_S3_BUCKET_LOOKUP=auto
|
||||
CDE_API_S3_INSECURE_SKIP_TLS=true
|
||||
CDE_API_S3_CHECK_BUCKET=false
|
||||
CDE_API_S3_CONNECT_TIMEOUT=10s
|
||||
CDE_API_S3_TLS_HANDSHAKE_TIMEOUT=10s
|
||||
CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES=1099511627776
|
||||
CDE_API_S32D_MAX_FILES_COUNT=500
|
||||
CDE_API_ZEEBE_USE_PLAINTEXT=true
|
||||
CDE_API_USERS_BASE_URL=http://backend-svc.django.svc.cluster.local:80
|
||||
CDE_API_DISK_BUCKET_NAMESPACE=documentations-prod
|
||||
CDE_API_USERS_ORIGINATOR=docs_prod
|
||||
CDE_API_USERS_TIMEOUT_MS=10000
|
||||
CDE_API_MAILER_BASE_URL=http://mailer-service.mailer:8000
|
||||
CDE_API_MAILER_FROM_EMAIL=noreply@sarex.io
|
||||
CDE_API_MAILER_RETRY_COUNT=2
|
||||
CDE_API_MAILER_TIMEOUT_MS=10000
|
||||
CDE_API_FLOWS_URL=http://backend-svc.flows.svc.cluster.local:80
|
||||
CDE_API_TRANSMITTALS_URL=http://transmittal-service.transmittal.svc.cluster.local:80
|
||||
CDE_API_WORKFLOWS_CONFIG_FILEPATH=/etc/app/tasks_execution_config.json
|
||||
CDE_API_RABBITMQ__MARKS_ROUTING_KEY=pdf_markings_input
|
||||
CDE_API_RABBITMQ__HASHER_ROUTING_KEY=hash.compute.normal
|
||||
CDE_API_RABBITMQ__HASHER_EXCHANGE=hash.compute
|
||||
CDE_API_REDIS__HOST=redis
|
||||
CDE_API_REDIS__PORT=6379
|
||||
CDE_API_RABBITMQ__HOST=rabbitmq.rabbitmq.svc.cluster.local
|
||||
CDE_API_RABBITMQ__PORT=5672
|
||||
|
||||
# --- секреты (k8s Secret) ---
|
||||
CDE_API_DATABASE__PASSWORD=
|
||||
CDE_API_DATABASE__USER=
|
||||
CDE_API_PUBLIC_KEY=
|
||||
CDE_API_RABBITMQ__PASSWORD=
|
||||
CDE_API_RABBITMQ__USER=
|
||||
CDE_API_S3_ACCESS_KEY=
|
||||
CDE_API_S3_ENDPOINT=
|
||||
CDE_API_S3_SECRET_KEY=
|
||||
CDE_API_USERS_AUTH_TOKEN=
|
||||
CDE_API_ZEEBE_AUTH_SERVER_URL=
|
||||
CDE_API_ZEEBE_CLIENT_ID=
|
||||
CDE_API_ZEEBE_CLIENT_SECRET=
|
||||
CDE_API_ZEEBE_GATEWAY_ADDRESS=
|
||||
8341
apps/documentations/cde-api.openapi.yaml
Normal file
8341
apps/documentations/cde-api.openapi.yaml
Normal file
File diff suppressed because it is too large
Load Diff
299
apps/documentations/d8-ugmk-prod/cde-api.yaml
Normal file
299
apps/documentations/d8-ugmk-prod/cde-api.yaml
Normal file
@ -0,0 +1,299 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
cde-api:
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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://sarex-document-link.uralmine.com"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- 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:8000"
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: "300000"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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-svc.flows.svc.cluster.local:80"
|
||||
- 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_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
@ -17,3 +17,7 @@ patches:
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: documentations-pdf-markings-amqp
|
||||
- path: cde-api.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: cde-api
|
||||
388
apps/documentations/ugok/cde-api-worker-copy.yaml
Normal file
388
apps/documentations/ugok/cde-api-worker-copy.yaml
Normal file
@ -0,0 +1,388 @@
|
||||
---
|
||||
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: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-copy:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-copy"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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-svc.bim.svc.cluster.local:8000"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-svc.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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://backend-svc.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.platform:8000"
|
||||
- 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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "host"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "port"
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "vhost"
|
||||
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"
|
||||
370
apps/documentations/ugok/cde-api-worker-move.yaml
Normal file
370
apps/documentations/ugok/cde-api-worker-move.yaml
Normal file
@ -0,0 +1,370 @@
|
||||
---
|
||||
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: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-move:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-move"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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-svc.bim.svc.cluster.local:8000"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-svc.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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://backend-svc.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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "host"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "port"
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "vhost"
|
||||
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"
|
||||
258
apps/documentations/ugok/cde-api-worker-s32d-create-upload.yaml
Normal file
258
apps/documentations/ugok/cde-api-worker-s32d-create-upload.yaml
Normal file
@ -0,0 +1,258 @@
|
||||
---
|
||||
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: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-s32d-create-upload:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-create-upload"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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"
|
||||
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"
|
||||
252
apps/documentations/ugok/cde-api-worker-s32d-handle-error.yaml
Normal file
252
apps/documentations/ugok/cde-api-worker-s32d-handle-error.yaml
Normal file
@ -0,0 +1,252 @@
|
||||
---
|
||||
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: 50m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-s32d-handle-error:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-handle-error"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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"
|
||||
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"
|
||||
@ -0,0 +1,321 @@
|
||||
---
|
||||
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: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-s32d-process-workflows:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-process-workflows"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "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_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-svc.bim.svc.cluster.local:8000"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-svc.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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"
|
||||
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"
|
||||
@ -0,0 +1,267 @@
|
||||
---
|
||||
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: 100m
|
||||
memory:
|
||||
_default: 64Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api-worker-s32d-publish-documents:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-publish-documents"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://backend-svc.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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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"
|
||||
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"
|
||||
458
apps/documentations/ugok/cde-api.yaml
Normal file
458
apps/documentations/ugok/cde-api.yaml
Normal file
@ -0,0 +1,458 @@
|
||||
---
|
||||
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: 200m
|
||||
memory:
|
||||
_default: 256Mi
|
||||
image:
|
||||
name:
|
||||
_default: 10.4.10.187:80/library/cde-api:ugok_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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://ugok-document-link-sarex.uralmine.com"
|
||||
- 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-svc.bim.svc.cluster.local:8000"
|
||||
- name: CDE_API_BIMAPI_V2_URL
|
||||
value:
|
||||
_default: "http://backend-svc.bim.svc.cluster.local:8000"
|
||||
- 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: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: "production"
|
||||
- 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: "true"
|
||||
- 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: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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: "postgres-service"
|
||||
- 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: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_DATABASE__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-postgresql-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_S3_ENDPOINT
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "endpoint"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "documentations-s3-secret"
|
||||
secretKey:
|
||||
_default: "access_key"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "documentations-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: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "host"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "port"
|
||||
- name: CDE_API_RABBITMQ__USER
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "username"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
secretName:
|
||||
_default: "documentations-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "vhost"
|
||||
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"
|
||||
@ -13,3 +13,11 @@ resources:
|
||||
- pdf-markings-amqp.yaml
|
||||
- pdf-markings.yaml
|
||||
- frontend.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
|
||||
180
apps/documentations/ugok/tasks-execution-config.yaml
Normal file
180
apps/documentations/ugok/tasks-execution-config.yaml
Normal file
@ -0,0 +1,180 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: |
|
||||
{
|
||||
"bim_api_metadata_inserter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v4": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_differ": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_updater": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"convert_to_potree": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"docx_to_pdf": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"dwg_to_geojson": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_limits": "4",
|
||||
"cpu_requests": "100m",
|
||||
"memory_limits": "40Gi",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"e57_to_las": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"ifc_converter_job": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"las_merge": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"parsing_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_converter_to_tiles": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_create_colored_surface_from_geotiff": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"rendering_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document_legacy": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"update_orthomosaic_data": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"web_hook_caller": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"xml_to_glb": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"document_converter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"sparkjs_converter_wrapper": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
299
apps/documentations/uralkal/cde-api.yaml
Normal file
299
apps/documentations/uralkal/cde-api.yaml
Normal file
@ -0,0 +1,299 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
cde-api:
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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.sarex.local.uralkali.com"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- 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:8000"
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: "300000"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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-svc.flows.svc.cluster.local:80"
|
||||
- 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_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
@ -27,3 +27,7 @@ patches:
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: pdm-api
|
||||
- path: cde-api.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: cde-api
|
||||
|
||||
299
apps/documentations/vad/cde-api.yaml
Normal file
299
apps/documentations/vad/cde-api.yaml
Normal file
@ -0,0 +1,299 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cde-api
|
||||
namespace: documentations
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
cde-api:
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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://sarex-document-link.vadroad.ru"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- 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:8000"
|
||||
- name: CDE_API_COPY_MAX_SYNC_WAIT_MS
|
||||
value:
|
||||
_default: "300000"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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-svc.flows.svc.cluster.local:80"
|
||||
- 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_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
@ -15,3 +15,7 @@ patches:
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: documentations-pdf-markings-amqp
|
||||
- path: cde-api.yaml
|
||||
target:
|
||||
kind: HelmRelease
|
||||
name: cde-api
|
||||
|
||||
382
apps/documentations/wb/cde-api-worker-copy.yaml
Normal file
382
apps/documentations/wb/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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-copy"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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.platform:8000"
|
||||
- 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"
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
value:
|
||||
_default: "cde"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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__USER
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "user"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
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"
|
||||
364
apps/documentations/wb/cde-api-worker-move.yaml
Normal file
364
apps/documentations/wb/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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-move"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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"
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
value:
|
||||
_default: "cde"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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__USER
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "user"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
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"
|
||||
258
apps/documentations/wb/cde-api-worker-s32d-create-upload.yaml
Normal file
258
apps/documentations/wb/cde-api-worker-s32d-create-upload.yaml
Normal file
@ -0,0 +1,258 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-create-upload"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
252
apps/documentations/wb/cde-api-worker-s32d-handle-error.yaml
Normal file
252
apps/documentations/wb/cde-api-worker-s32d-handle-error.yaml
Normal file
@ -0,0 +1,252 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-handle-error"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,321 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-process-workflows"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "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_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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- name: CDE_API_LAST_MASTER_BIM
|
||||
value:
|
||||
_default: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
@ -0,0 +1,267 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_LOG_LEVEL
|
||||
value:
|
||||
_default: "info"
|
||||
- name: CDE_API_OBSERVABILITY_ENABLE
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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_OBSERVABILITY_SERVICE_NAME
|
||||
value:
|
||||
_default: "worker-s32d-publish-documents"
|
||||
- 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: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_CHECK_BUCKET
|
||||
value:
|
||||
_default: "false"
|
||||
- name: CDE_API_S3_BUCKET_NAME
|
||||
value:
|
||||
_default: "documentations-prod"
|
||||
- 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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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"
|
||||
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"
|
||||
452
apps/documentations/wb/cde-api.yaml
Normal file
452
apps/documentations/wb/cde-api.yaml
Normal file
@ -0,0 +1,452 @@
|
||||
---
|
||||
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
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:prod_c9bc246
|
||||
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_SENTRY_DSN
|
||||
value:
|
||||
_default: ""
|
||||
- name: CDE_API_SENTRY_ENVIRONMENT
|
||||
value:
|
||||
_default: ""
|
||||
- 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: "true"
|
||||
- name: CDE_API_OBSERVABILITY_HOST
|
||||
value:
|
||||
_default: "signoz-otel-collector-external.signoz.svc.cluster.local"
|
||||
- name: CDE_API_OBSERVABILITY_PORT
|
||||
value:
|
||||
_default: "4317"
|
||||
- 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://backend-service.bim.svc.cluster.local:8000"
|
||||
- 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: "production"
|
||||
- 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: "true"
|
||||
- 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: "36311"
|
||||
- name: CDE_API_LAST_SLAVE_1_BIM
|
||||
value:
|
||||
_default: "94015"
|
||||
- name: CDE_API_LAST_SLAVE_2_BIM
|
||||
value:
|
||||
_default: "135771"
|
||||
- name: CDE_API_USE_BIM_INSERTER
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_USE_LEGACY_BIM_FLOW
|
||||
value:
|
||||
_default: "0"
|
||||
- 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_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: "true"
|
||||
- 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-prod"
|
||||
- name: CDE_API_S3_USE_SSL
|
||||
value:
|
||||
_default: "true"
|
||||
- name: CDE_API_S3_BUCKET_LOOKUP
|
||||
value:
|
||||
_default: "auto"
|
||||
- name: CDE_API_S3_INSECURE_SKIP_TLS
|
||||
value:
|
||||
_default: "true"
|
||||
- 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-prod"
|
||||
- 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"
|
||||
- name: CDE_API_RABBITMQ__HOST
|
||||
value:
|
||||
_default: "rabbitmq.rabbitmq.svc.cluster.local"
|
||||
- name: CDE_API_RABBITMQ__PORT
|
||||
value:
|
||||
_default: "5672"
|
||||
- name: CDE_API_RABBITMQ__VHOST
|
||||
value:
|
||||
_default: "cde"
|
||||
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: "yc-s3"
|
||||
secretKey:
|
||||
_default: "endpoint_url"
|
||||
- name: CDE_API_S3_ACCESS_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "key_id"
|
||||
- name: CDE_API_S3_SECRET_KEY
|
||||
secretName:
|
||||
_default: "yc-s3"
|
||||
secretKey:
|
||||
_default: "access_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__USER
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "user"
|
||||
- name: CDE_API_RABBITMQ__PASSWORD
|
||||
secretName:
|
||||
_default: "hasher-rabbitmq-secret"
|
||||
secretKey:
|
||||
_default: "password"
|
||||
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"
|
||||
@ -12,3 +12,11 @@ resources:
|
||||
- frontend-static.yaml
|
||||
- redis.yaml
|
||||
- stamp-verification.yaml
|
||||
- tasks-execution-config.yaml
|
||||
- cde-api.yaml
|
||||
- cde-api-worker-s32d-create-upload.yaml
|
||||
- cde-api-worker-s32d-process-workflows.yaml
|
||||
- cde-api-worker-s32d-publish-documents.yaml
|
||||
- cde-api-worker-s32d-handle-error.yaml
|
||||
- cde-api-worker-copy.yaml
|
||||
- cde-api-worker-move.yaml
|
||||
|
||||
180
apps/documentations/wb/tasks-execution-config.yaml
Normal file
180
apps/documentations/wb/tasks-execution-config.yaml
Normal file
@ -0,0 +1,180 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: tasks-execution-config-documentation-v2
|
||||
namespace: documentations
|
||||
data:
|
||||
tasks-execution-config-documentation-v2.json: |
|
||||
{
|
||||
"bim_api_metadata_inserter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_api_metadata_inserter_v4": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_differ": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"bim_updater": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"convert_to_potree": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"docx_to_pdf": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"dwg_to_geojson": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_limits": "4",
|
||||
"cpu_requests": "100m",
|
||||
"memory_limits": "40Gi",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"e57_to_las": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"ifc_converter_job": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"las_merge": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"mesh_optimizer_v2": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"parsing_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_converter_to_tiles": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"processing_create_colored_surface_from_geotiff": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"rendering_template": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"split_pdf_document_legacy": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"update_orthomosaic_data": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"web_hook_caller": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"xml_to_glb": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"document_converter": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
},
|
||||
"sparkjs_converter_wrapper": {
|
||||
"executor": "k8s",
|
||||
"resources": {
|
||||
"cpu_requests": "100m",
|
||||
"memory_requests": "64Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -15,11 +15,19 @@ flowchart LR
|
||||
API[deployment: api]:::comp
|
||||
Filestream[deployment: filestream<br/>upload/download]:::comp
|
||||
PDM[deployment: pdm<br/>product data mgmt]:::comp
|
||||
CDEAPI[deployment: cde-api<br/>новый CDE API]:::comp
|
||||
Workers[deployments: cde-api-worker-*<br/>s32d x4, copy, move]:::comp
|
||||
Frontend --> API
|
||||
API --> Filestream
|
||||
API --> PDM
|
||||
CDEAPI --> API
|
||||
Workers --> API
|
||||
end
|
||||
|
||||
Zeebe[Camunda / Zeebe]:::infra
|
||||
CDEPG[(PostgreSQL, общий)]:::data
|
||||
Valkey[(Valkey)]:::data
|
||||
|
||||
DocLink[document-link]:::peer
|
||||
CDE[cde]:::peer
|
||||
Transmittal[transmittal]:::peer
|
||||
@ -32,6 +40,11 @@ flowchart LR
|
||||
PDM --> PG
|
||||
Filestream -->|files| S3 --> MinIO
|
||||
API -. JWT .-> KC
|
||||
CDEAPI --> CDEPG
|
||||
CDEAPI --> Valkey
|
||||
CDEAPI -->|files| S3
|
||||
Workers --> CDEPG
|
||||
Workers -->|jobs| Zeebe
|
||||
|
||||
classDef comp fill:#ec4899,stroke:#9d174d,stroke-width:2px,color:#fff
|
||||
classDef peer fill:#fce7f3,stroke:#9d174d,color:#000
|
||||
@ -40,3 +53,12 @@ flowchart LR
|
||||
classDef idp fill:#f59e0b,stroke:#92400e,color:#fff
|
||||
style NS fill:#fdf2f8,stroke:#ec4899,stroke-width:2px
|
||||
```
|
||||
|
||||
## cde-api
|
||||
|
||||
`cde-api` — новый CDE API (Go) и 6 воркеров (`s32d-create-upload`, `s32d-process-workflows`, `s32d-publish-documents`, `s32d-handle-error`, `copy`, `move`), развёрнутых в ns `documentations`. Не путать с легаси-сервисом `cde` (`cde-svc.cde`, см. `cde.md`).
|
||||
|
||||
- Манифесты: `apps/documentations/base/cde-api*.yaml`, оверлеи — в каталогах контуров (`sarex-contour`, `yc-k8s-test` наследуют `base`; `d8-ugmk-prod`, `uralkal`, `vad` патчат `cde-api`; `ugok`, `brusnika-*`, `wb` — полные копии).
|
||||
- Postgres, Valkey (`redis`) и S3 общие с documentations. Секреты — Vault Agent (в образы cde-api добавлен busybox для shell-обёртки запуска); путь `secrets/data/apps/cde-api/zeebe` нужно создать. В k8s-контурах (`ugok`, `brusnika-*`, `wb`) вместо Vault используются Secret'ы.
|
||||
- CronJob'ы (`workspace-recovery`, `resource-id-backfill`, `sizer`) пока не перенесены.
|
||||
- Подробности: `apps/documentations/cde-api.CONFIGURATION.md`, `cde-api.ENDPOINTS.md`, `cde-api.env.example`, `cde-api.openapi.yaml`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user