This commit is contained in:
subochev 2026-02-20 14:22:09 +03:00
parent 1eb390951c
commit 995f5a5603
2 changed files with 9 additions and 2 deletions

View File

@ -5,6 +5,13 @@ metadata:
data: data:
application.yaml: | application.yaml: |
spring: spring:
mvc:
cors:
allowed-origins: "*"
allowed-methods: GET, POST, PUT, DELETE, OPTIONS
allowed-headers: "*"
allow-credentials: true
max-age: 1800
application: application:
name: {{$.Release.Name}} name: {{$.Release.Name}}
datasource: datasource:

View File

@ -3,8 +3,8 @@ kind: Ingress
metadata: metadata:
name: {{$.Release.Name}}-{{$.Values.name}} name: {{$.Release.Name}}-{{$.Values.name}}
namespace: {{$.Release.Namespace}} namespace: {{$.Release.Namespace}}
annotations: {{/* annotations:*/}}
traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd {{/* traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd*/}}
spec: spec:
rules: rules:
- host: {{tpl $.Values.ingress.host .}} - host: {{tpl $.Values.ingress.host .}}