From a7be87135c52ce353b0e77dc3b7d466df0fbe6d7 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:36:44 +0500 Subject: [PATCH] stand: add stage frontend/export services and align IAM integrations --- .../stand/admin-frontend.yaml | 79 +++ .../stand/kustomization.yaml | 1 + apps/django/stand/export-project.yaml | 88 +++ apps/django/stand/kustomization.yaml | 1 + apps/premises/stand/iam-compat-configmap.yaml | 19 + apps/premises/stand/iam.yaml | 107 ++++ apps/premises/stand/kustomization.yaml | 3 + clusters/stand/50-apps/kustomization.yaml | 1 + clusters/stand/50-apps/stage-env.yaml | 528 ++++++++++++++++++ .../istio-config/stand/istio-config.yaml | 13 + 10 files changed, 840 insertions(+) create mode 100644 apps/control-interface/stand/admin-frontend.yaml create mode 100644 apps/django/stand/export-project.yaml create mode 100644 apps/premises/stand/iam-compat-configmap.yaml create mode 100644 apps/premises/stand/iam.yaml create mode 100644 clusters/stand/50-apps/stage-env.yaml diff --git a/apps/control-interface/stand/admin-frontend.yaml b/apps/control-interface/stand/admin-frontend.yaml new file mode 100644 index 0000000..e200dca --- /dev/null +++ b/apps/control-interface/stand/admin-frontend.yaml @@ -0,0 +1,79 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: admin-frontend + namespace: django +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.9 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 1 + upgrade: + remediation: + retries: 1 + values: + global: + env: _default + services: + admin-frontend: + enabled: true + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/admin-frontend:uralkal_4d0a3684 + pullPolicy: + _default: IfNotPresent + deployment: + enabled: true + name: + _default: admin-frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + probes: + liveness: + enabled: false + readiness: + enabled: false + service: + enabled: true + name: + _default: admin-frontend-svc + type: + _default: ClusterIP + port: + _default: 8080 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + commitSha: '' + gitlabUri: '' + gitlabJobUrl: '' + owner: '' + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi diff --git a/apps/control-interface/stand/kustomization.yaml b/apps/control-interface/stand/kustomization.yaml index 27bb5cb..2c3147a 100644 --- a/apps/control-interface/stand/kustomization.yaml +++ b/apps/control-interface/stand/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - admin-frontend.yaml diff --git a/apps/django/stand/export-project.yaml b/apps/django/stand/export-project.yaml new file mode 100644 index 0000000..ee0222d --- /dev/null +++ b/apps/django/stand/export-project.yaml @@ -0,0 +1,88 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: export-project + namespace: django +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.9 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + backend: + enabled: true + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/export-project:prod_ef8aa756 + pullPolicy: + _default: IfNotPresent + deployment: + enabled: true + name: + _default: export-project + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + port: + _default: 8000 + probes: + liveness: + enabled: false + readiness: + enabled: false + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + service: + enabled: true + name: + _default: export-project-service + type: + _default: ClusterIP + port: + _default: 8000 + targetPort: + _default: 8000 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + envs: + - name: TIMEOUT + value: + _default: '180' + commitSha: '' + gitlabUri: '' + gitlabJobUrl: '' + owner: '' + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi diff --git a/apps/django/stand/kustomization.yaml b/apps/django/stand/kustomization.yaml index 6eaaa0a..93a3fe2 100644 --- a/apps/django/stand/kustomization.yaml +++ b/apps/django/stand/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - export-project.yaml - service-user-job.yaml patches: - path: backend.yaml diff --git a/apps/premises/stand/iam-compat-configmap.yaml b/apps/premises/stand/iam-compat-configmap.yaml new file mode 100644 index 0000000..ee9aec6 --- /dev/null +++ b/apps/premises/stand/iam-compat-configmap.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: premises-iam-compat + namespace: premises +data: + patch.py: "from pathlib import Path\n\nsource = Path(\"/premises/src/service/premise/permission.py\"\ + ).read_text()\nold = \" config=IAMConfig.from_environment(config.srx_sdk.iam_environment),\"\ + \nnew = \" config=iam_config,\"\nif source.count(old) != 1:\n raise\ + \ RuntimeError(\"Unexpected IAM configuration in premises image\")\nimports =\ + \ \"from urllib.parse import urlsplit\\nfrom srx_sdk.iam.config import IAMHttpConfig\\\ + n\"\nconfiguration = \"\"\"\niam_config = IAMConfig.from_environment(config.srx_sdk.iam_environment)\n\ + if config.srx_sdk.iam_route:\n iam_url = urlsplit(config.srx_sdk.iam_route)\n\ + \ iam_config.http_config = IAMHttpConfig(\n host=iam_url.hostname,\n\ + \ port=iam_url.port or 80,\n protocol=iam_url.scheme,\n )\n\n\ + \n\"\"\"\npatched = imports + source.replace(old, new, 1)\npatched = patched.replace(\"\ + class PremisePermissionService:\", configuration + \"class PremisePermissionService:\"\ + , 1)\ncompile(patched, \"permission.py\", \"exec\")\nPath(\"/patched/permission.py\"\ + ).write_text(patched)\n" diff --git a/apps/premises/stand/iam.yaml b/apps/premises/stand/iam.yaml new file mode 100644 index 0000000..ced556a --- /dev/null +++ b/apps/premises/stand/iam.yaml @@ -0,0 +1,107 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: premises +spec: + values: + services: + backend: + envs: + - name: DEBUG + value: + _default: 'false' + - name: HTTP_ROOT_PATH + value: + _default: /premises + - name: JWT_AUTH_ENABLE + value: + _default: 'true' + - name: GUNICORN_WORKERS + value: + _default: '3' + - name: FASTSTREAM_WORKERS + value: + _default: '3' + - name: DATABASE_POOL_SIZE + value: + _default: '5' + - name: KAFKA_EAV_ASSET_TOPIC_NAME + value: + _default: assets_broadcast + - name: KAFKA_SSL_CERT + value: + _default: '' + - name: S3_BUCKET + value: + _default: premises + - name: EXPORT_TTL_MINUTES + value: + _default: '30' + - name: EXPORT_MAX_WORKERS + value: + _default: '4' + - name: EXPORT_S3_KEY_PREFIX + value: + _default: premise-export + - name: ATTACHMENT_MAX_SIZE_BYTES + value: + _default: '314572800' + - name: ATTACHMENT_S3_KEY_PREFIX + value: + _default: attachment/ + - name: OTEL_ENABLE + value: + _default: 'false' + - name: OTEL_URL + value: + _default: http://signoz-otel-collector-external.signoz.svc.cluster.local:4317 + - name: OTEL_SERVICE_NAME + value: + _default: premises-backend + - name: OTEL_INSECURE + value: + _default: 'true' + - name: SRX_SDK_IAM_ENVIRONMENT + value: + _default: production + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_GENERATION_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/rendering-template:master + - name: WORKFLOWS_DOCX_TO_PDF_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/docx-to-pdf:latest + - name: WORKFLOWS_CALLBACK_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/webhook-caller:master + - name: WORKFLOWS_CALLBACK_HOST + value: + _default: http://backend-svc.premises.svc.cluster.local:80 + - name: WORKFLOWS_RESULT_PATH + value: + _default: premises-prod + - name: SRX_SDK_IAM_ROUTE + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + postRenderers: + - kustomize: + patches: + - target: + kind: Deployment + name: premises-backend + patch: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: premises-backend\n\ + spec:\n template:\n spec:\n initContainers:\n - name: prepare-iam-compat\n\ + \ image: cr.yandex/crp3ccidau046kdj8g9q/premises-backend:production_216148a9\n\ + \ command:\n - python\n - /compat/patch.py\n \ + \ resources:\n requests:\n cpu: 25m\n memory:\ + \ 64Mi\n volumeMounts:\n - name: iam-compat\n mountPath:\ + \ /compat\n readOnly: true\n - name: iam-patched-code\n\ + \ mountPath: /patched\n containers:\n - name: backend\n\ + \ volumeMounts:\n - name: iam-patched-code\n mountPath:\ + \ /premises/src/service/premise/permission.py\n subPath: permission.py\n\ + \ readOnly: true\n volumes:\n - name: iam-compat\n \ + \ configMap:\n name: premises-iam-compat\n - name: iam-patched-code\n\ + \ emptyDir: {}\n" diff --git a/apps/premises/stand/kustomization.yaml b/apps/premises/stand/kustomization.yaml index 27bb5cb..9671564 100644 --- a/apps/premises/stand/kustomization.yaml +++ b/apps/premises/stand/kustomization.yaml @@ -2,3 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - iam-compat-configmap.yaml +patches: + - path: iam.yaml diff --git a/clusters/stand/50-apps/kustomization.yaml b/clusters/stand/50-apps/kustomization.yaml index 1b639bd..a45dbed 100644 --- a/clusters/stand/50-apps/kustomization.yaml +++ b/clusters/stand/50-apps/kustomization.yaml @@ -41,3 +41,4 @@ resources: patches: - path: resource-requests.yaml - path: stage-images.yaml + - path: stage-env.yaml diff --git a/clusters/stand/50-apps/stage-env.yaml b/clusters/stand/50-apps/stage-env.yaml new file mode 100644 index 0000000..7fa205b --- /dev/null +++ b/clusters/stand/50-apps/stage-env.yaml @@ -0,0 +1,528 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: django +spec: + values: + services: + backend: + envs: + - name: ALLOWED_HOSTS + value: + _default: '*' + - name: SERVER_USE_CHANGELOG + value: + _default: '0' + - name: SERVER_ZITADEL_ENABLED + value: + _default: 'True' + - name: DJANGO_SETTINGS_MODULE + value: + _default: config.settings.production + - name: CELERY_REDIS_HOST + value: + _default: redis + - name: CELERY_REDIS_PORT + value: + _default: '6379' + - name: DJANGO_REDIS_HOST + value: + _default: redis + - name: SERVER_EXTERNAL_FIND_BY_USERNAME_ENABLED + value: + _default: 'True' + - name: SERVER_EXTERNAL_FIND_BY_EMAIL_ENABLED + value: + _default: 'True' + - name: DJANGO_REDIS_PORT + value: + _default: '6379' + - name: BIMV2_INTERNAL_HOST + value: + _default: http://bim-backend-v2-service.bim-api + - name: BIMV2_TIMEOUT + value: + _default: '60' + - name: JWT_KID + value: + _default: '1' + - name: PDM_SYNC + value: + _default: '1' + - name: KC_SYNC_ENABLE + value: + _default: '0' + - name: MEASUREMENTS_HOST + value: + _default: http://measurements-service.measurements.svc.cluster.local:8000/api + - name: MEASUREMENTS_USE_MEASUREMENTS + value: + _default: '1' + - name: SERVER_API_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: SERVER_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_BASE_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: WORKFLOWS_PREFIX + value: + _default: /internal/v1 + - name: WORKFLOWS_USE + value: + _default: '1' + - name: SERVER_S3_STREAM_IMPORT + value: + _default: '1' + - name: SERVER_SAVE_DIFF_DEM + value: + _default: '1' + - name: SERVER_USE_CLICKHOUSE + value: + _default: '0' + - name: SERVER_USE_CREATE_COMPARED_GEOTIFF_TASK + value: + _default: '0' + - name: SERVER_USE_DJANGO_STORAGE + value: + _default: '1' + - name: SERVER_USE_METASHAPE + value: + _default: '0' + - name: SERVER_CHANGELOG_MODE_SYSTEM_LOG + value: + _default: '1' + - name: SERVER_CHANGELOG_MODE + value: + _default: '0' + - name: SERVER_DJANGO_URLS + value: + _default: '1' + - name: CHECK_IMPORT_HASH + value: + _default: '1' + - name: EAV_ENABLE + value: + _default: '1' + - name: SERVER_CHECK_IMPORT_HASH + value: + _default: '1' + - name: SERVER_CHUNKED_PATH + value: + _default: /tmp/chunked_uploads/%Y/%m/%d + - name: SERVER_HIDE_USER_SCROLL_PERMISSIONS + value: + _default: '0' + - name: SERVER_USE_WRORKFLOW_STATUS + value: + _default: '1' + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: SERVER_KAFKA_ENABLED + value: + _default: 'False' + - name: KAFKA_TOPICS + value: + _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' + - name: KAFKA_SSL_CAFILE + value: + _default: /usr/local/share/ca-certificates/kafka.crt + - name: KC_USE_REDIRECT_LOGOUT + value: + _default: 'False' + - name: DJANGO_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: RESOURCES_INTERNAL_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: django +spec: + values: + services: + celery: + envs: + - name: ALLOWED_HOSTS + value: + _default: '*' + - name: SERVER_USE_CHANGELOG + value: + _default: '0' + - name: SERVER_ZITADEL_ENABLED + value: + _default: 'False' + - name: DJANGO_SETTINGS_MODULE + value: + _default: config.settings.production + - name: CELERY_REDIS_HOST + value: + _default: redis + - name: CELERY_REDIS_PORT + value: + _default: '6379' + - name: DJANGO_REDIS_HOST + value: + _default: redis + - name: DJANGO_REDIS_PORT + value: + _default: '6379' + - name: BIMV2_INTERNAL_HOST + value: + _default: http://bim-backend-v2-service.bim-api + - name: BIMV2_TIMEOUT + value: + _default: '60' + - name: JWT_KID + value: + _default: '1' + - name: PDM_SYNC + value: + _default: '1' + - name: KC_SYNC_ENABLE + value: + _default: '0' + - name: MEASUREMENTS_HOST + value: + _default: http://measurements-service.measurements.svc.cluster.local:8000/api + - name: MEASUREMENTS_USE_MEASUREMENTS + value: + _default: '1' + - name: SERVER_API_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: SERVER_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_BASE_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: WORKFLOWS_USE + value: + _default: '1' + - name: SERVER_S3_STREAM_IMPORT + value: + _default: '1' + - name: SERVER_SAVE_DIFF_DEM + value: + _default: '1' + - name: SERVER_USE_CLICKHOUSE + value: + _default: '0' + - name: SERVER_USE_CREATE_COMPARED_GEOTIFF_TASK + value: + _default: '0' + - name: SERVER_USE_DJANGO_STORAGE + value: + _default: '1' + - name: SERVER_USE_METASHAPE + value: + _default: '0' + - name: SERVER_CHANGELOG_MODE_SYSTEM_LOG + value: + _default: '1' + - name: SERVER_CHANGELOG_MODE + value: + _default: '0' + - name: SERVER_DJANGO_URLS + value: + _default: '1' + - name: CHECK_IMPORT_HASH + value: + _default: '1' + - name: EAV_ENABLE + value: + _default: '1' + - name: SERVER_CHECK_IMPORT_HASH + value: + _default: '1' + - name: SERVER_CHUNKED_PATH + value: + _default: /tmp/chunked_uploads/%Y/%m/%d + - name: SERVER_HIDE_USER_SCROLL_PERMISSIONS + value: + _default: '0' + - name: SERVER_USE_WRORKFLOW_STATUS + value: + _default: '1' + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: SERVER_KAFKA_ENABLED + value: + _default: 'False' + - name: KAFKA_TOPICS + value: + _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' + - name: KAFKA_SSL_CAFILE + value: + _default: /usr/local/share/ca-certificates/kafka.crt + - name: KC_USE_REDIRECT_LOGOUT + value: + _default: 'False' + - name: RESOURCES_INTERNAL_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: rfi +spec: + values: + services: + backend: + envs: + - name: JWT_AUTH_ENABLE + value: + _default: 'True' + - name: NOTIFICATIONS_ENABLE + value: + _default: 'false' + - name: NOTIFICATIONS_EMAIL_FROM + value: + _default: hello@sarex.io + - name: NOTIFICATIONS_SERVICE_URL + value: + _default: https://sarex.${CONTOUR_DOMAIN}/rfi + - name: SAREX_BACKEND_URL + value: + _default: http://backend-svc.django.svc.cluster.local + - name: EAV_URL + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: GATEWAY_URL + value: + _default: http://pdm-svc.documentations.svc.cluster.local:80 + - name: RESOURCES_API_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: rfi +spec: + values: + services: + celery: + envs: + - name: JWT_AUTH_ENABLE + value: + _default: 'True' + - name: NOTIFICATIONS_ENABLE + value: + _default: 'false' + - name: NOTIFICATIONS_EMAIL_FROM + value: + _default: hello@sarex.io + - name: NOTIFICATIONS_SERVICE_URL + value: + _default: https://sarex.${CONTOUR_DOMAIN}/rfi + - name: SAREX_BACKEND_URL + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: EAV_URL + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: GATEWAY_URL + value: + _default: http://pdm-svc.documentations.svc.cluster.local:80 + - name: RESOURCES_API_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: message-hub + namespace: message-hub +spec: + values: + services: + backend: + envs: + - name: WORKER_TIMEOUT + value: + _default: '60' + - name: PYTHONPATH + value: + _default: src + - name: SETTINGS_MAX_RETRIES + value: + _default: '1' + - name: SETTINGS_TOPICS + value: + _default: '{"planning": "message-hub-prod", "assets":"assets_broadcast","issues": + "issues_broadcast_prod", "resources_updated": "iam.resource.updated.v2", + "resources_deleted": "iam.resource.deleted.v2"}' + - name: SETTINGS_PDF_CONVERTER_HOST + value: + _default: http://export-project-service.django.svc.cluster.local:8000 + - name: SAREX_BASE_HOST + value: + _default: http://backend-service.pm.svc.cluster.local:8000 + - name: CACHE_HOST + value: + _default: redis.django.svc.cluster.local + - name: CACHE_PORT + value: + _default: '6379' + - name: PDF_CONVERTER_HOST + value: + _default: http://export-project-service.django.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: flows +spec: + values: + services: + backend: + envs: + - name: LOG_LEVEL + value: + _default: DEBUG + - name: BASE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: CELERY_QUEUE + value: + _default: flow + - name: EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80/api + - name: PLANNING_HOST + value: + _default: http://backend-svc.pm.svc.cluster.local:8000/api/pm/msp + - name: PLANNING_USE + value: + _default: 'True' + - name: DOCUMENTATION_HOST + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80/internal/v1 + - name: DOCUMENTATION_EXTERNAL_HOST + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80/api/v1 + - name: ENABLE_ANALYTICS + value: + _default: '1' + - name: ENABLE_CELERY + value: + _default: '1' + - name: ENABLE_MAILGUN + value: + _default: '0' + - name: ENABLE_METRICS + value: + _default: '0' + - name: FROM_EMAIL + value: + _default: sarex@rwb.ru + - name: GATEWAY_URL + value: + _default: http://pdm-svc.documentations.svc.cluster.local:80 + - name: RESOURCE_URL + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + - name: SERVICE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN}/flows/api/v1 + - name: SMTP_HOST + value: + _default: mail.rwb.ru + - name: CHECKLIST_HOST + value: + _default: http://backend-svc.checklists.svc.cluster.local:80 + - name: SMTP_PORT + value: + _default: '465' + - name: SYNC_RESOURCE_ID + value: + _default: '1' + - name: TIMEOUT + value: + _default: '120' + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80/api/v1 + - name: WORKFLOWS_TIMEOUT + value: + _default: '60' + - name: DOCUMENTATION_TIMEOUT + value: + _default: '60' + - name: PROXY_PATH_PREFIX + value: + _default: /flows +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: notes +spec: + values: + services: + backend: + envs: + - name: PG_SSL_MODE + value: + _default: verify-full + - name: DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local + - name: BASE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN}/notes + - name: TIMEOUT + value: + _default: '120' + - name: FAAS_SERVICE + value: + _default: https://api.sarex.io/lambdas + - name: WORKSPACE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local/api/v1 + - name: WORKFLOW_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local/api/v1 + - name: WORKFLOW_TAG + value: + _default: stable + - name: RESOURCE_URL + value: + _default: https://api.sarex.io/resources/api/v1 + - name: SYNC_RESOURCE_ID + value: + _default: '0' + - name: ENABLE_ND + value: + _default: '0' + - name: ATTACHMENT_HOST + value: + _default: http://attachments-service.attachments.svc.cluster.local:8000/api/v1 + - name: DOCUMENTATIONS_HOST + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80/api/v1 diff --git a/infrastructure/istio-config/stand/istio-config.yaml b/infrastructure/istio-config/stand/istio-config.yaml index 504e59c..96d18b4 100644 --- a/infrastructure/istio-config/stand/istio-config.yaml +++ b/infrastructure/istio-config/stand/istio-config.yaml @@ -987,6 +987,19 @@ spec: rewrite: / service: frontend-svc.control-interface.svc.cluster.local port: 8080 + admin-frontend: + name: admin-frontend-virt-service + namespace: default + hosts: + - sarex.stand.sarex.tech + gateways: + - default/platform-gateway + routes: + - path: + prefix: /admin-frontend/static/ + rewrite: / + service: admin-frontend-svc.django.svc.cluster.local + port: 8080 s3-proxy-media: name: s3-proxy-media-virt-service namespace: default