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

Custom path in ingress not working and giving "404 page not found" error #5776

Closed
PerfDOPS opened this issue Jan 28, 2021 · 3 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@PerfDOPS
Copy link

Hi All,

I have an issue with the custom path on k8s dashboard ingress and when any custom path (/k8s) is being used by ingress, kubernetes dashboard won't work. it only work with "/*" path

apiVersion: v1
items:

  • apiVersion: extensions/v1beta1
    kind: Ingress
    metadata:
    annotations:
    alb.ingress.kubernetes.io/certificate-arn: cert
    alb.ingress.kubernetes.io/group.name: example
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
    alb.ingress.kubernetes.io/scheme: internal
    alb.ingress.kubernetes.io/subnets: subnet-1, subnet-2
    external-dns.alpha.kubernetes.io/hostname: www.example.com
    spec:
    rules:
    • http:
      paths:
      • backend:
        serviceName: kubernetes-dashboard
        servicePort: 80
        path: /k8s

when I try to access www.example.com/k8s to access to dashboard i get "404 page not found" error. The only way that I can access to dashboard is to use "/*" path.
The configuration of the ALB in AWS looks right and it forward the /k8s traffic to the right target group
Any idea , how can i use a custom path with dashboard ?

@PerfDOPS PerfDOPS added the kind/support Categorizes issue or PR as a support question. label Jan 28, 2021
@floreks
Copy link
Member

floreks commented Jan 28, 2021

Probably a configuration issue. It has been fixed quite some time ago and it is possible to use Dashboard on a sub-paths.

Related PR: #5022
Issue with example config: #5017

@floreks
Copy link
Member

floreks commented Feb 4, 2021

With proper configuration it is possible. You can try asking on a sig-ui slack channel. There might be some people using similar configurations willing to share their configs. I have only tested it locally with nginx, but don't have the config files anymore.

/close

@k8s-ci-robot
Copy link
Contributor

@floreks: Closing this issue.

In response to this:

With proper configuration it is possible. You can try asking on a sig-ui slack channel. There might be some people using similar configurations willing to share their configs. I have only tested it locally with nginx, but don't have the config files anymore.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants