Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ingress如何配置path #96

Open
denniedeng opened this issue May 29, 2023 · 0 comments
Open

ingress如何配置path #96

denniedeng opened this issue May 29, 2023 · 0 comments

Comments

@denniedeng
Copy link

denniedeng commented May 29, 2023

除了夜莺,我还通过ingress代理了其他服务。所以,希望访问夜莺的uri形如:http://[domain]:[port]/n9e
安装的n9e版本为:6.0.0.ga.6
我当前ingress的配置:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    meta.helm.sh/release-name: nightingale
    meta.helm.sh/release-namespace: n9e
  creationTimestamp: "2023-05-29T06:36:30Z"
  generation: 1
  labels:
    app: n9e
    app.kubernetes.io/managed-by: Helm
    chart: nightingale
    heritage: Helm
    release: nightingale
  name: nightingale-ingress
  namespace: n9e
  resourceVersion: "3553356"
  uid: 597eed71-34a5-4519-a528-e6b21b25951d
spec:
  ingressClassName: nginx
  rules:
  - host: www.xxx.pub
    http:
      paths:
      - backend:
          service:
            name: nightingale-center
            port:
              number: 80
        path: /n9e
        pathType: Prefix

除了修改ingress,是否还需要修改n9e的其他配置文件才能生效?
在ingress.yaml中,我看到path指定是:{{ .root_path }},但在values.yaml中缺没找到对.root_path的配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant