使用除/之外的路径进入在Kubernetes中运行Nexus

时间:2017-11-30 16:27:33

标签: ssl docker kubernetes nexus docker-ingress

当我指定除" /"以外的路径时,我无法通过入口在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

0 个答案:

没有答案