локали /admin перекидывает на корень /. Правильно ли я указал pathType?
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.global.role }}-ingress
labels:
app: sovastore
annotations:
kubernetes.io/ingress.class: "{{ .Values.global.nginx.annotations }}"
cert-manager.io/issuer: letsencrypt-sovastore-dev
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 20m
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
spec:
tls:
- hosts:
- "{{ .Values.global.nginx.sovahost }}"
secretName: "{{ .Values.global.nginx.tlsSecret }}"
rules:
- host: "{{ .Values.global.nginx.sovahost }}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: sovastore-frontend
port:
number: 80
- path: /admin
pathType: Prefix
backend:
service:
name: sovastore-frontend
port:
number: 80
- path: /api
pathType: Prefix
backend:
service:
name: sovastore-backend
port:
number: 80
- path: /nova
pathType: Prefix
backend:
service:
name: sovastore-backend
port:
number: 80
- path: /nova-api
pathType: Prefix
backend:
service:
name: sovastore-backend
port:
number: 80
- path: /vendor
pathType: Prefix
backend:
service:
name: sovastore-backend
port:
number: 80
вроде правильно
Обсуждают сегодня