DEVX-178: [BE] Разработать endpoint выдачи информации для подключении фейн-клиентов через gradle/maven

This commit is contained in:
subochev 2026-03-27 00:27:27 +03:00
parent 5fe35f3ca0
commit 402b97e7e1
2 changed files with 14 additions and 1 deletions

View File

@ -3,13 +3,15 @@ kind: Ingress
metadata:
name: {{$.Release.Name}}-{{$.Chart.Name}}
namespace: {{$.Release.Namespace}}
annotations:
traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-url-prefix@kubernetescrd
spec:
rules:
- host: {{tpl $.Values.ingress.host .}}
http:
paths:
- path: {{$.Values.ingress.prefix | default '/'}}
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: "{{ $.Release.Name }}-{{ $.Chart.Name }}"

View File

@ -0,0 +1,11 @@
{{if $.Values.ingress.prefix}}
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: {{$.Release.Name}}-url-prefix
namespace: {{$.Release.Namespace}}
spec:
stripPrefix:
prefixes:
- /{{$.Values.ingress.prefix}}
{{end}}