diff --git a/apps/control-interface/wb/admin-frontend.yaml b/apps/control-interface/wb/admin-frontend.yaml new file mode 100644 index 0000000..30f3ba0 --- /dev/null +++ b/apps/control-interface/wb/admin-frontend.yaml @@ -0,0 +1,94 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: admin-frontend + namespace: control-interface + +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: 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: 100m + memory: + _default: 100Mi + + 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: "" diff --git a/apps/control-interface/wb/kustomization.yaml b/apps/control-interface/wb/kustomization.yaml new file mode 100644 index 0000000..6544e44 --- /dev/null +++ b/apps/control-interface/wb/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: control-interface +resources: + - admin-frontend.yaml diff --git a/clusters/wb/infrastructure/patches/istio-config.yaml b/clusters/wb/infrastructure/patches/istio-config.yaml index df44503..d5c6daa 100644 --- a/clusters/wb/infrastructure/patches/istio-config.yaml +++ b/clusters/wb/infrastructure/patches/istio-config.yaml @@ -82,6 +82,20 @@ spec: tls: credentialName: istio-gateway-wildcard-cert virtualServices: + admin-frontend: + name: admin-frontend-virt-service + namespace: control-interface + hosts: + - srx.wb.ru + - lk.srx.wb.ru + gateways: + - istio-system/main-gateway + routes: + - path: + prefix: /admin-frontend/static/ + rewrite: / + service: admin-frontend-svc.control-interface.svc.cluster.local + port: 8080 gitea-vs: namespace: gitea hosts: diff --git a/clusters/wb/kustomization.yaml b/clusters/wb/kustomization.yaml index f118c85..cef3131 100644 --- a/clusters/wb/kustomization.yaml +++ b/clusters/wb/kustomization.yaml @@ -34,3 +34,4 @@ resources: - ../../apps/transmittal/wb - ../../apps/bi/wb - ../../apps/premises/wb + - ../../apps/control-interface/wb