https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
b

best-wall-17038

11/23/2022, 3:33 PM
Hello, Befoer i can able to access apps through ingress using
.localhost
but now its not working.. did something change in the latest versions ? This is my ingress where it was working before
Copy code
kind: Ingress
metadata:
  name: {{ include "frontend-service.fullname" . }}
  namespace: comnext
  annotations:
    <http://nginx.ingress.kubernetes.io/service-upstream|nginx.ingress.kubernetes.io/service-upstream>: "true"
    <http://nginx.ingress.kubernetes.io/cors-allow-origin|nginx.ingress.kubernetes.io/cors-allow-origin>: " <https://www.paypal.com>"
    <http://nginx.ingress.kubernetes.io/cors-allow-methods|nginx.ingress.kubernetes.io/cors-allow-methods>: "PUT, GET, POST, OPTIONS, DELETE"
    <http://nginx.ingress.kubernetes.io/cors-allow-headers|nginx.ingress.kubernetes.io/cors-allow-headers>: "DNT,X-CustomHeader,X-LANG,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Api-Key,X-Device-Id,Access-Control-Allow-Origin,b3,Authorization,traceparent,x-b3-traceid,x-b3-spanid,x-b3-parentspanid,x-b3-sampled"
    <http://nginx.ingress.kubernetes.io/configuration-snippet|nginx.ingress.kubernetes.io/configuration-snippet>: |
      proxy_hide_header l5d-remote-ip;
      proxy_hide_header l5d-server-id;
spec:
  ingressClassName: nginx
  rules:
    - host: adidas.sre.localhost
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: frontend-service
                port:
                  number: 80
f

fast-garage-66093

11/23/2022, 5:59 PM
How do you access your
.localhost
services? The mapping to
127.0.0.1
does not happen in the system resolver, but is implemented by the browsers. Chrome and Firefox support it, Safari does not. The very latest version of
curl
also implements it, but not the version shipped with current operating systems.
b

best-wall-17038

11/23/2022, 6:20 PM
@fast-garage-66093 I did not do anything else
In version 1.5.0, I can directly access the ui via adidas.sre.localhost
I am using chrome
Did something change about this in 1.6.2 ?
f

fast-garage-66093

11/23/2022, 6:53 PM
I don't know; which OS is this?
b

best-wall-17038

11/23/2022, 6:57 PM
MacOS
now it worked when I restarted all pod and rancher desktop 😕
🦜 1
f

fast-garage-66093

11/23/2022, 7:56 PM
You didn't say how it was failing before. Maybe the ports were still in use from some other service, so the forwarding to localhost failed?
👍 1
57 Views