unip-controller/tests/data/resources/pu-user1/user/links/test-ingress.yaml

40 lines
1.4 KiB
YAML
Raw Normal View History

2025-01-29 13:13:51 +00:00
# ============================================================
# Система: Единая библиотека, Центр ИИ НИУ ВШЭ
# Модуль: Тесты
# Авторы: Полежаев В.А., Хританков А.С.
# Дата создания: 2024 г.
# ============================================================
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
namespace: pu-user1-pa-app2
annotations:
nginx.ingress.kubernetes.io/auth-type: basic
#nginx.ingress.kubernetes.io/auth-secret: api-cmp1-joint-cred
nginx.ingress.kubernetes.io/auth-secret: app1-apis-cred
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - pu-user1-pa-app1-user'
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-User-Id $http_authorization;
proxy_pass_header X-User-Id;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_pass_header Content-Type;
spec:
ingressClassName: nginx
tls:
- hosts:
- platform-dev-cs-hse.objectoriented.ru
rules:
- host: platform-dev-cs-hse.objectoriented.ru
http:
paths:
- path: /pu-user1-pa-app1/test
pathType: ImplementationSpecific
backend:
service:
name: test-svc
port:
number: 80