diff --git a/apps/pm/base/kustomization.yaml b/apps/pm/base/kustomization.yaml index aa00f14..fbd18cd 100644 --- a/apps/pm/base/kustomization.yaml +++ b/apps/pm/base/kustomization.yaml @@ -8,3 +8,4 @@ resources: - celery.yaml - frontend.yaml - backend-configmap.yaml + - resources-static.yaml diff --git a/apps/pm/base/resources-static.yaml b/apps/pm/base/resources-static.yaml new file mode 100644 index 0000000..7d611be --- /dev/null +++ b/apps/pm/base/resources-static.yaml @@ -0,0 +1,90 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: resources-static + namespace: pm + +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: + resources-static: + enabled: true + + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/resources-frontend:ugok_7f38a9ce + pullPolicy: + _default: IfNotPresent + + deployment: + enabled: true + + name: + _default: resources-static + + replicaCount: + _default: 1 + + port: + _default: 80 + + resources: + requests: + cpu: + _default: 25m + memory: + _default: 100Mi + + probes: + liveness: + enabled: false + readiness: + enabled: false + + service: + enabled: true + + name: + _default: resources-static-svc + + type: + _default: ClusterIP + + port: + _default: 80 + + targetPort: + _default: 80 + + portName: + _default: http + + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/infrastructure/istio-config/d8-ugmk-prod/istio-config.yaml b/infrastructure/istio-config/d8-ugmk-prod/istio-config.yaml index 45ead2a..8098569 100644 --- a/infrastructure/istio-config/d8-ugmk-prod/istio-config.yaml +++ b/infrastructure/istio-config/d8-ugmk-prod/istio-config.yaml @@ -256,6 +256,19 @@ spec: rewrite: / service: frontend-service.remarks.svc.cluster.local port: 80 + resources-frontend: + name: resources-frontend-virt-service + namespace: default + hosts: + - sarex.uralmine.com + gateways: + - default/platform-gateway + routes: + - path: + prefix: /resources/static/ + rewrite: / + service: resources-static-svc.pm.svc.cluster.local + port: 80 auth-frontend: name: auth-frontend-virt-service namespace: default