当我指定“/”以外的路径时,我无法通过入口在 Kubernetes 中运行 Nexus 3。当我以https://www.myportal.com/mypath访问门户网站时,Nexus 没有完全加载。我有一个真实的证书。这是我的入口:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/add-base-url: "true"
name: myingress
spec:
rules:
- host: mynexus.com
http:
paths:
- path: /mypath
backend:
serviceName: mynexus-sonatype-nexus
servicePort: 9988
tls:
- hosts:
- mynexus.com
secretName: mynexus-cert-secret