From b7c36a53486536d525df7210caa1ba45121e53d7 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 28 Oct 2026 15:31:36 +0300 Subject: [PATCH] ++ stand routing layer --- clusters/stand/40-routing/kustomization.yaml | 4 + clusters/stand/layers.yaml | 19 +++ .../contour-template/istio-config.yaml | 117 ++++++++++++++++++ .../contour-template/kustomization.yaml | 6 + 4 files changed, 146 insertions(+) create mode 100644 clusters/stand/40-routing/kustomization.yaml create mode 100644 infrastructure/istio-config/contour-template/istio-config.yaml create mode 100644 infrastructure/istio-config/contour-template/kustomization.yaml diff --git a/clusters/stand/40-routing/kustomization.yaml b/clusters/stand/40-routing/kustomization.yaml new file mode 100644 index 0000000..3056f07 --- /dev/null +++ b/clusters/stand/40-routing/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure/istio-config/contour-template diff --git a/clusters/stand/layers.yaml b/clusters/stand/layers.yaml index 87a6fd0..55e883d 100644 --- a/clusters/stand/layers.yaml +++ b/clusters/stand/layers.yaml @@ -72,3 +72,22 @@ spec: substituteFrom: - kind: ConfigMap name: contour-vars +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 40-routing + namespace: flux-system +spec: + interval: 10m0s + timeout: 10m0s + path: ./clusters/stand/40-routing + prune: true + wait: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars diff --git a/infrastructure/istio-config/contour-template/istio-config.yaml b/infrastructure/istio-config/contour-template/istio-config.yaml new file mode 100644 index 0000000..5c543b3 --- /dev/null +++ b/infrastructure/istio-config/contour-template/istio-config.yaml @@ -0,0 +1,117 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: istio-config + namespace: default +spec: + dependsOn: [] + interval: 5m + timeout: 10m + values: + global: + env: contour + environments: + contour: + istio: + gateways: + platform: + name: platform-gateway + namespace: default + selector: + istio: ingressgateway + servers: + - hosts: + - ${HOST_LOGIN} + - ${HOST_CAMUNDA} + - ${HOST_CAMUNDA_IDENTITY} + - ${HOST_CAMUNDA_KEYCLOAK} + - ${HOST_CAMUNDA_OPTIMIZE} + - ${HOST_CAMUNDA_TASKLIST} + - ${HOST_RABBITMQ} + tls: + credentialName: istio-ingress-tls + virtualServices: + zitadel: + name: zitadel-virt-service + namespace: default + hosts: + - ${HOST_LOGIN} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: zitadel-idp-contour.zitadel.svc.cluster.local + port: 8080 + camunda-operate: + name: camunda-operate-virt-service + namespace: default + hosts: + - ${HOST_CAMUNDA} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: camunda-operate.camunda.svc.cluster.local + port: 80 + camunda-identity: + name: camunda-identity-virt-service + namespace: default + hosts: + - ${HOST_CAMUNDA_IDENTITY} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: camunda-identity.camunda.svc.cluster.local + port: 80 + camunda-keycloak: + name: camunda-keycloak-virt-service + namespace: default + hosts: + - ${HOST_CAMUNDA_KEYCLOAK} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: camunda-keycloak.camunda.svc.cluster.local + port: 80 + camunda-optimize: + name: camunda-optimize-virt-service + namespace: default + hosts: + - ${HOST_CAMUNDA_OPTIMIZE} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: camunda-optimize.camunda.svc.cluster.local + port: 80 + camunda-tasklist: + name: camunda-tasklist-virt-service + namespace: default + hosts: + - ${HOST_CAMUNDA_TASKLIST} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: camunda-tasklist.camunda.svc.cluster.local + port: 80 + rabbitmq: + name: rabbitmq-virt-service + namespace: default + hosts: + - ${HOST_RABBITMQ} + gateways: + - default/platform-gateway + routes: + - path: + prefix: / + service: rabbitmq.rabbitmq.svc.cluster.local + port: 15672 diff --git a/infrastructure/istio-config/contour-template/kustomization.yaml b/infrastructure/istio-config/contour-template/kustomization.yaml new file mode 100644 index 0000000..894c51a --- /dev/null +++ b/infrastructure/istio-config/contour-template/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: istio-config.yaml