wb: deploy admin frontend and expose Istio route
This commit is contained in:
parent
4dc99af141
commit
d533095b8f
94
apps/control-interface/wb/admin-frontend.yaml
Normal file
94
apps/control-interface/wb/admin-frontend.yaml
Normal file
@ -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: ""
|
||||||
5
apps/control-interface/wb/kustomization.yaml
Normal file
5
apps/control-interface/wb/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: control-interface
|
||||||
|
resources:
|
||||||
|
- admin-frontend.yaml
|
||||||
@ -82,6 +82,20 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
credentialName: istio-gateway-wildcard-cert
|
credentialName: istio-gateway-wildcard-cert
|
||||||
virtualServices:
|
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:
|
gitea-vs:
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
@ -34,3 +34,4 @@ resources:
|
|||||||
- ../../apps/transmittal/wb
|
- ../../apps/transmittal/wb
|
||||||
- ../../apps/bi/wb
|
- ../../apps/bi/wb
|
||||||
- ../../apps/premises/wb
|
- ../../apps/premises/wb
|
||||||
|
- ../../apps/control-interface/wb
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user