From a34b4811d3276092cc34e8944606b57038693db2 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 5 Jun 2026 17:12:49 +0500 Subject: [PATCH 1/2] ++ --- apps/processing/brusnika-stage/api.yaml | 145 +++++++ .../processing/brusnika-stage/engine-low.yaml | 407 ++++++++++++++++++ apps/processing/brusnika-stage/engine.yaml | 403 +++++++++++++++++ apps/processing/brusnika-stage/frontend.yaml | 93 ++++ .../brusnika-stage/kustomization.yaml | 9 + clusters/brusnika-stage/kustomization.yaml | 1 + 6 files changed, 1058 insertions(+) create mode 100644 apps/processing/brusnika-stage/api.yaml create mode 100644 apps/processing/brusnika-stage/engine-low.yaml create mode 100644 apps/processing/brusnika-stage/engine.yaml create mode 100644 apps/processing/brusnika-stage/frontend.yaml create mode 100644 apps/processing/brusnika-stage/kustomization.yaml diff --git a/apps/processing/brusnika-stage/api.yaml b/apps/processing/brusnika-stage/api.yaml new file mode 100644 index 0000000..b73a0b4 --- /dev/null +++ b/apps/processing/brusnika-stage/api.yaml @@ -0,0 +1,145 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: workflows-api + namespace: workflow + +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: + backend: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/workflows-api:prod_ee75fda9 + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: workflows-api + + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + + port: + _default: 8000 + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: workflows-api-service + + type: + _default: ClusterIP + + port: + _default: 8000 + + targetPort: + _default: 8000 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + + envs: + - name: POSTGRES_ADDRESS + value: + _default: "192.168.2.45" + + - name: POSTGRES_PORT + value: + _default: "5432" + + - name: POSTGRES_POOL_SIZE + value: + _default: "3" + + - name: HTTP_HOST + value: + _default: "0.0.0.0:8080" + + - name: DJANGO_HOST + value: + _default: "http://backend.django.svc.cluster.local:8000" + + - name: S3_SERVICE_ACCOUNT + value: + _default: "/etc/sarex/yc-s3/yc-s3-service-account.json" + + - name: ENABLE_SQL_QUERY + value: + _default: "0" + + - name: POSTGRES_SSL_USE + value: + _default: "0" + secretEnvs: + - name: POSTGRES_USER + secretName: + _default: "postgres-secret" + secretKey: "username" + + - name: POSTGRES_PASSWORD + secretName: + _default: "postgres-secret" + secretKey: "password" + + - name: POSTGRES_DB + secretName: + _default: "postgres-secret" + secretKey: "database" + + - name: PUBLIC_KEY + secretName: + _default: "public-key" + secretKey: "key" + + commitSha: "" + gitlabUri: "" + gitlabJobUrl: "" + owner: "" \ No newline at end of file diff --git a/apps/processing/brusnika-stage/engine-low.yaml b/apps/processing/brusnika-stage/engine-low.yaml new file mode 100644 index 0000000..ae4b4a4 --- /dev/null +++ b/apps/processing/brusnika-stage/engine-low.yaml @@ -0,0 +1,407 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: engine-low + namespace: workflow + +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: + backend: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/kubernetes-engine:3546957f1e7e8278fc6363da0287573e9454275a + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: engine-low + + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + + port: + _default: 8000 + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: engine-low-service + + type: + _default: ClusterIP + + port: + _default: 8000 + + targetPort: + _default: 8000 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + + envs: + - name: RABBITMQ_HOST + value: + _default: "rabbitmq-service.workflow.svc.cluster.local" + + - name: RABBITMQ_PORT + value: + _default: "5672/api" + + - name: POSTGRES_ADDRESS + value: + _default: "192.168.2.45" + + - name: POSTGRES_PORT + value: + _default: "5432" + + - name: POSTGRES_POOL_SIZE + value: + _default: "20" + + - name: ENVIRONMENT + value: + _default: "prod" + + - name: API_ADDRESS + value: + _default: "0.0.0.0:8000" + + - name: DJANGO_HOST + value: + _default: "http://backend.django.svc.cluster.local:8000" + + - name: S3_SERVICE_ACCOUNT + value: + _default: "/etc/sarex/yc-s3/yc-s3-service-account.json" + + - name: BIM_API_V2_DB + value: + _default: "/etc/sarex/bim-api-v2-db-prod.json" + + - name: PDM_API_DB + value: + _default: "/etc/pdm/pdm-api-db-prod.json" + + - name: WORKSPACE_API_DB + value: + _default: "/etc/ws/ws-api-db-prod.json" + + - name: ISSUE_API_DB + value: + _default: "/etc/issues/issue-api-db-prod.json" + + - name: MAILGUN + value: + _default: "/etc/mailgun-secret/env.json" + + - name: INTERNAL_PDM_URL + value: + _default: "http://documentations-api.documentations.svc.cluster.local:8080" + + - name: INTERNAL_FILESTREAM_URL + value: + _default: "http://documentations-filestream.documentations.svc.cluster.local:8080" + + - name: EXTERNAL_PDM_URL + value: + _default: "http://documentations-api.documentations.svc.cluster.local:8080" + + - name: EXTERNAL_FILESTREAM_URL + value: + _default: "http://documentations-filestream-service.documentations.svc.cluster.local:8080" + + - name: RESOURCES_API_INTERNAL_HOST + value: + _default: "http://resources-service.resources.svc.cluster.local:8000" + + - name: ENABLE_SQL_QUERY + value: + _default: "0" + + - name: ENABLE_S3_STORAGE + value: + _default: "1" + + - name: ENABLE_S3V2_STORAGE + value: + _default: "1" + + - name: ENABLE_PDM_STORAGE + value: + _default: "1" + + - name: ENABLE_URL_STORAGE + value: + _default: "1" + + - name: ENABLE_SRX_TMP + value: + _default: "1" + + - name: ENABLE_BIM_API_V2_DB + value: + _default: "1" + + - name: ENABLE_WORKSPACE_API_DB + value: + _default: "1" + + - name: ENABLE_ISSUE_API_DB + value: + _default: "1" + + - name: ENABLE_RESOURCES_API + value: + _default: "1" + + - name: ENABLE_PDM_API_DB + value: + _default: "1" + + - name: ENABLE_COMPARISONS_API_DB + value: + _default: "1" + + - name: ENABLE_MAIL_GUN + value: + _default: "1" + + - name: ENABLE_AMQP_EXECUTOR + value: + _default: "1" + + - name: ENABLE_KUBERNETES_EXECUTOR + value: + _default: "1" + + - name: MAX_WORKFLOWS_LIMIT + value: + _default: "30" + + - name: CPU_COUNT + value: + _default: "1" + + - name: MEMORY_GI + value: + _default: "4" + + - name: CPU_COUNT_LOW_RESOURCES + value: + _default: "1" + + - name: MEMORY_GI_LOW_RESOURCES + value: + _default: "1" + + - name: CPU_COUNT_HIGH_MEM + value: + _default: "1" + + - name: MEMORY_GI_HIGH_MEM + value: + _default: "4" + + - name: COUNT_RUNNING_WORKERS + value: + _default: "1" + + - name: COUNT_CANCELING_WORKERS + value: + _default: "1" + + - name: COUNT_HANDLE_JOB_WORKERS + value: + _default: "1" + + - name: BIM_API_DEBUG + value: + _default: "0" + + - name: BIM_API_V2_DEBUG + value: + _default: "0" + + - name: PDM_API_DEBUG + value: + _default: "0" + + - name: COMPARISONS_API_DEBUG + value: + _default: "0" + + - name: WORKSPACE_API_DEBUG + value: + _default: "0" + + - name: JOBS_NAMESPACE + value: + _default: "workflow" + + - name: ISSUE_API_DEBUG + value: + _default: "0" + + - name: WORKFLOWS_SENTRY_DSN + value: + _default: "https://866b532efdbb4764a7551b76231232fc@o279218.ingest.sentry.io/543123" + + - name: WORKFLOWS_SENTRY_DEBUG + value: + _default: "0" + + - name: TOLERATION_KEY + value: + _default: "dedicated" + + - name: TOLERATION_VALUE + value: + _default: "processing-light" + + - name: TOLERATION_KEY_HIGH_MEM + value: + _default: "dedicated" + + - name: TOLERATION_VALUE_HIGH_MEM + value: + _default: "processing-light" + + - name: TOLERATION_KEY_PERSISTENT + value: + _default: "dedicated" + + - name: TOLERATION_VALUE_PERSISTENT + value: + _default: "processing-light" + + - name: RABBITMQ_CREATE_EXCHANGE + value: + _default: "autodesk.inputMessage" + + - name: RABBITMQ_CANCEL_EXCHANGE + value: + _default: "autodesk.cancelMessage" + + - name: RABBITMQ_CREATE_ROUTING_KEY + value: + _default: "converting" + + - name: RABBITMQ_CANCEL_TOPIC + value: + _default: "cancel" + + - name: RABBITMQ_COMPLETENESS_EXCHANGE + value: + _default: "autodesk.outputMessage" + + - name: RABBITMQ_COMPLETENESS_TOPIC + value: + _default: "output_navis" + + - name: CONTROL_PLANE_PERIOD + value: + _default: "10s" + + - name: WORKFLOW_PRIORITY + value: + _default: "low" + + - name: DEFAULT_TOLERATION_KEY + value: + _default: "dedicated" + + - name: DEFAULT_TOLERATION_VALUE + value: + _default: "processing-light" + + - name: DEFAULT_NODE_SELECTOR_KEY + value: + _default: "dedicated" + + - name: DEFAULT_NODE_SELECTOR_VALUE + value: + _default: "processing-light" + secretEnvs: + - name: RABBITMQ_USER + secretName: + _default: "rabbitmq-secret" + secretKey: "username" + + - name: RABBITMQ_PASS + secretName: + _default: "rabbitmq-secret" + secretKey: "password" + + - name: POSTGRES_USER + secretName: + _default: "postgres-secret" + secretKey: "username" + + - name: POSTGRES_PASSWORD + secretName: + _default: "postgres-secret" + secretKey: "password" + + - name: POSTGRES_DB + secretName: + _default: "postgres-secret" + secretKey: "database" + + - name: POD_NAME + secretName: + _default: "fieldRef:metadata.name" + secretKey: "" + + commitSha: "" + gitlabUri: "" + gitlabJobUrl: "" + owner: "" \ No newline at end of file diff --git a/apps/processing/brusnika-stage/engine.yaml b/apps/processing/brusnika-stage/engine.yaml new file mode 100644 index 0000000..83c50d5 --- /dev/null +++ b/apps/processing/brusnika-stage/engine.yaml @@ -0,0 +1,403 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: engine + namespace: workflow + +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: + backend: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/kubernetes-engine:3546957f1e7e8278fc6363da0287573e9454275a + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: engine + + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + + port: + _default: 8000 + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: engine-service + + type: + _default: ClusterIP + + port: + _default: 8000 + + targetPort: + _default: 8000 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + + envs: + - name: RABBITMQ_HOST + value: + _default: "rabbitmq-service.workflow.svc.cluster.local" + + - name: RABBITMQ_PORT + value: + _default: "5672/api" + + - name: POSTGRES_ADDRESS + value: + _default: "192.168.2.45" + + - name: POSTGRES_PORT + value: + _default: "5432" + + - name: POSTGRES_POOL_SIZE + value: + _default: "20" + + - name: ENVIRONMENT + value: + _default: "prod" + + - name: API_ADDRESS + value: + _default: "0.0.0.0:8000" + + - name: DJANGO_HOST + value: + _default: "http://backend.django.svc.cluster.local:8000" + + - name: S3_SERVICE_ACCOUNT + value: + _default: "/etc/sarex/yc-s3/yc-s3-service-account.json" + + - name: BIM_API_V2_DB + value: + _default: "/etc/sarex/bim-api-v2-db-prod.json" + + - name: PDM_API_DB + value: + _default: "/etc/pdm/pdm-api-db-prod.json" + + - name: WORKSPACE_API_DB + value: + _default: "/etc/ws/ws-api-db-prod.json" + + - name: ISSUE_API_DB + value: + _default: "/etc/issues/issue-api-db-prod.json" + + - name: MAILGUN + value: + _default: "/etc/mailgun-secret/env.json" + + - name: INTERNAL_PDM_URL + value: + _default: "http://documentations-api.documentations.svc.cluster.local:8080" + + - name: INTERNAL_FILESTREAM_URL + value: + _default: "http://documentations-filestream.documentations.svc.cluster.local:8080" + + - name: EXTERNAL_PDM_URL + value: + _default: "http://documentations-api.documentations.svc.cluster.local:8080" + + - name: EXTERNAL_FILESTREAM_URL + value: + _default: "http://documentations-filestream-service.documentations.svc.cluster.local:8080" + + - name: RESOURCES_API_INTERNAL_HOST + value: + _default: "http://resources-service.resources.svc.cluster.local:8000" + + - name: ENABLE_SQL_QUERY + value: + _default: "0" + + - name: ENABLE_S3_STORAGE + value: + _default: "1" + + - name: ENABLE_S3V2_STORAGE + value: + _default: "1" + + - name: ENABLE_PDM_STORAGE + value: + _default: "1" + + - name: ENABLE_URL_STORAGE + value: + _default: "1" + + - name: ENABLE_SRX_TMP + value: + _default: "1" + + - name: ENABLE_BIM_API_V2_DB + value: + _default: "1" + + - name: ENABLE_WORKSPACE_API_DB + value: + _default: "1" + + - name: ENABLE_ISSUE_API_DB + value: + _default: "1" + + - name: ENABLE_RESOURCES_API + value: + _default: "1" + + - name: ENABLE_PDM_API_DB + value: + _default: "1" + + - name: ENABLE_COMPARISONS_API_DB + value: + _default: "1" + + - name: ENABLE_MAIL_GUN + value: + _default: "1" + + - name: ENABLE_AMQP_EXECUTOR + value: + _default: "1" + + - name: ENABLE_KUBERNETES_EXECUTOR + value: + _default: "1" + + - name: MAX_WORKFLOWS_LIMIT + value: + _default: "30" + + - name: CPU_COUNT + value: + _default: "1" + + - name: MEMORY_GI + value: + _default: "4" + + - name: CPU_COUNT_LOW_RESOURCES + value: + _default: "1" + + - name: MEMORY_GI_LOW_RESOURCES + value: + _default: "1" + + - name: CPU_COUNT_HIGH_MEM + value: + _default: "1" + + - name: MEMORY_GI_HIGH_MEM + value: + _default: "4" + + - name: COUNT_RUNNING_WORKERS + value: + _default: "1" + + - name: COUNT_CANCELING_WORKERS + value: + _default: "1" + + - name: COUNT_HANDLE_JOB_WORKERS + value: + _default: "1" + + - name: BIM_API_DEBUG + value: + _default: "0" + + - name: BIM_API_V2_DEBUG + value: + _default: "0" + + - name: PDM_API_DEBUG + value: + _default: "0" + + - name: COMPARISONS_API_DEBUG + value: + _default: "0" + + - name: WORKSPACE_API_DEBUG + value: + _default: "0" + + - name: JOBS_NAMESPACE + value: + _default: "workflow" + + - name: ISSUE_API_DEBUG + value: + _default: "0" + + - name: WORKFLOWS_SENTRY_DSN + value: + _default: "https://866b532efdbb4764a7551b76231232fc@o279218.ingest.sentry.io/543123" + + - name: WORKFLOWS_SENTRY_DEBUG + value: + _default: "0" + + - name: TOLERATION_KEY + value: + _default: "dedicated" + + - name: TOLERATION_VALUE + value: + _default: "processing-light" + + - name: TOLERATION_KEY_HIGH_MEM + value: + _default: "dedicated" + + - name: TOLERATION_VALUE_HIGH_MEM + value: + _default: "processing-light" + + - name: TOLERATION_KEY_PERSISTENT + value: + _default: "dedicated" + + - name: TOLERATION_VALUE_PERSISTENT + value: + _default: "processing-light" + + - name: RABBITMQ_CREATE_EXCHANGE + value: + _default: "autodesk.inputMessage" + + - name: RABBITMQ_CANCEL_EXCHANGE + value: + _default: "autodesk.cancelMessage" + + - name: RABBITMQ_CREATE_ROUTING_KEY + value: + _default: "converting" + + - name: RABBITMQ_CANCEL_TOPIC + value: + _default: "cancel" + + - name: RABBITMQ_COMPLETENESS_EXCHANGE + value: + _default: "autodesk.outputMessage" + + - name: RABBITMQ_COMPLETENESS_TOPIC + value: + _default: "output_navis" + + - name: CONTROL_PLANE_PERIOD + value: + _default: "10s" + + - name: DEFAULT_TOLERATION_KEY + value: + _default: "dedicated" + + - name: DEFAULT_TOLERATION_VALUE + value: + _default: "processing-light" + + - name: DEFAULT_NODE_SELECTOR_KEY + value: + _default: "dedicated" + + - name: DEFAULT_NODE_SELECTOR_VALUE + value: + _default: "processing-light" + secretEnvs: + - name: RABBITMQ_USER + secretName: + _default: "rabbitmq-secret" + secretKey: "username" + + - name: RABBITMQ_PASS + secretName: + _default: "rabbitmq-secret" + secretKey: "password" + + - name: POSTGRES_USER + secretName: + _default: "postgres-secret" + secretKey: "username" + + - name: POSTGRES_PASSWORD + secretName: + _default: "postgres-secret" + secretKey: "password" + + - name: POSTGRES_DB + secretName: + _default: "postgres-secret" + secretKey: "database" + + - name: POD_NAME + secretName: + _default: "fieldRef:metadata.name" + secretKey: "" + + commitSha: "" + gitlabUri: "" + gitlabJobUrl: "" + owner: "" \ No newline at end of file diff --git a/apps/processing/brusnika-stage/frontend.yaml b/apps/processing/brusnika-stage/frontend.yaml new file mode 100644 index 0000000..8661c4f --- /dev/null +++ b/apps/processing/brusnika-stage/frontend.yaml @@ -0,0 +1,93 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: workflow + +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: + frontend: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/workflows-frontend:brusnika_f803954b + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: frontend + + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + + port: + _default: 80 + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: frontend-service + + + type: + _default: ClusterIP + + port: + _default: 8080 + + targetPort: + _default: 8080 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + + + + commitSha: "" + gitlabUri: "" + gitlabJobUrl: "" + owner: "" \ No newline at end of file diff --git a/apps/processing/brusnika-stage/kustomization.yaml b/apps/processing/brusnika-stage/kustomization.yaml new file mode 100644 index 0000000..05e1400 --- /dev/null +++ b/apps/processing/brusnika-stage/kustomization.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: workflow +resources: + - api.yaml + - engine.yaml + - engine-low.yaml + - frontend.yaml \ No newline at end of file diff --git a/clusters/brusnika-stage/kustomization.yaml b/clusters/brusnika-stage/kustomization.yaml index 94144d1..d23f32b 100644 --- a/clusters/brusnika-stage/kustomization.yaml +++ b/clusters/brusnika-stage/kustomization.yaml @@ -13,6 +13,7 @@ resources: - ../../apps/workspaces/brusnika-stage - ../../apps/documentations/brusnika-stage - ../../apps/flows/brusnika-stage + - ../../apps/processing/brusnika-stage - ../../apps/reviews/brusnika-stage - ../../apps/issues/brusnika-stage - ../../apps/system-log/brusnika-stage From ecf9b7fb5d83c93b13b469abe35bd1b3c83d0bc6 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 5 Jun 2026 17:16:18 +0500 Subject: [PATCH 2/2] ++ --- apps/attachments/brusnika-stage/backend.yaml | 142 ++++++++++++++++++ .../brusnika-stage/kustomization.yaml | 6 + clusters/brusnika-stage/kustomization.yaml | 1 + 3 files changed, 149 insertions(+) create mode 100644 apps/attachments/brusnika-stage/backend.yaml create mode 100644 apps/attachments/brusnika-stage/kustomization.yaml diff --git a/apps/attachments/brusnika-stage/backend.yaml b/apps/attachments/brusnika-stage/backend.yaml new file mode 100644 index 0000000..d4a1109 --- /dev/null +++ b/apps/attachments/brusnika-stage/backend.yaml @@ -0,0 +1,142 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: attachments + namespace: attachments + +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: + backend: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/attachments:production_6dbb4dce + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: attachments + + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + + port: + _default: 8000 + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: attachments-service + + type: + _default: ClusterIP + + port: + _default: 8000 + + targetPort: + _default: 8000 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + + envs: + - name: POSTGRES_POOL_SIZE + value: + _default: "10" + + - name: API_ADDRESS + value: + _default: "0.0.0.0:8000" + + - name: YANDEX_S3_ACCOUNT_PATH + value: + _default: "/etc/sarex/yc-s3-storage/yc-s3-service-account.json" + + - name: BUCKET_NAME + value: + _default: "attachments-storage" + + - name: DATABASE_SSL_MODE + value: + _default: "disable" + + - name: YANDEX_S3_VERIFY + value: + _default: "false" + secretEnvs: + - name: DATABASE_HOST + secretName: + _default: "postgres-secret" + secretKey: "host" + + - name: DATABASE_PORT + secretName: + _default: "postgres-secret" + secretKey: "port" + + - name: DATABASE_NAME + secretName: + _default: "postgres-secret" + secretKey: "database" + + - name: DATABASE_USER + secretName: + _default: "postgres-secret" + secretKey: "username" + + - name: DATABASE_PASSWORD + secretName: + _default: "postgres-secret" + secretKey: "password" + + commitSha: "" + gitlabUri: "" + gitlabJobUrl: "" + owner: "" \ No newline at end of file diff --git a/apps/attachments/brusnika-stage/kustomization.yaml b/apps/attachments/brusnika-stage/kustomization.yaml new file mode 100644 index 0000000..9d30827 --- /dev/null +++ b/apps/attachments/brusnika-stage/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: attachments +resources: + - backend.yaml \ No newline at end of file diff --git a/clusters/brusnika-stage/kustomization.yaml b/clusters/brusnika-stage/kustomization.yaml index d23f32b..86f082d 100644 --- a/clusters/brusnika-stage/kustomization.yaml +++ b/clusters/brusnika-stage/kustomization.yaml @@ -15,6 +15,7 @@ resources: - ../../apps/flows/brusnika-stage - ../../apps/processing/brusnika-stage - ../../apps/reviews/brusnika-stage + - ../../apps/attachments/brusnika-stage - ../../apps/issues/brusnika-stage - ../../apps/system-log/brusnika-stage - ../../apps/projects/brusnika-stage