From 995f5a56038957a2a22aaafb8669d82673b616a9 Mon Sep 17 00:00:00 2001 From: subochev Date: Fri, 20 Feb 2026 14:22:09 +0300 Subject: [PATCH] init --- .../templates/configmap.yaml | 7 +++++++ .../templates/ingress.yaml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/devspc/devspace-apiregistry-core-service/templates/configmap.yaml b/devspc/devspace-apiregistry-core-service/templates/configmap.yaml index 2f43e96..bfb93be 100644 --- a/devspc/devspace-apiregistry-core-service/templates/configmap.yaml +++ b/devspc/devspace-apiregistry-core-service/templates/configmap.yaml @@ -5,6 +5,13 @@ metadata: data: application.yaml: | spring: + mvc: + cors: + allowed-origins: "*" + allowed-methods: GET, POST, PUT, DELETE, OPTIONS + allowed-headers: "*" + allow-credentials: true + max-age: 1800 application: name: {{$.Release.Name}} datasource: diff --git a/devspc/devspace-apiregistry-core-service/templates/ingress.yaml b/devspc/devspace-apiregistry-core-service/templates/ingress.yaml index 1295ee8..68f70a5 100644 --- a/devspc/devspace-apiregistry-core-service/templates/ingress.yaml +++ b/devspc/devspace-apiregistry-core-service/templates/ingress.yaml @@ -3,8 +3,8 @@ kind: Ingress metadata: name: {{$.Release.Name}}-{{$.Values.name}} namespace: {{$.Release.Namespace}} - annotations: - traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd +{{/* annotations:*/}} +{{/* traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd*/}} spec: rules: - host: {{tpl $.Values.ingress.host .}}