unip-controller/tests/data/resources/pu-user1/user/links/test-ingress.yaml
2025-04-15 20:56:15 +03:00

39 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================================
# Система: Единая библиотека, Центр ИИ НИУ ВШЭ
# Модуль: Тесты
# Авторы: Полежаев В.А., Хританков А.С.
# Дата создания: 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