Ingress-nginx: ExternalName is no longer working

Created on 5 Nov 2020  路  6Comments  路  Source: kubernetes/ingress-nginx

NGINX Ingress controller version: 0.35.0

Kubernetes version (use kubectl version): 1.15.11

Environment:

  • Cloud provider or hardware configuration: Bare metal
  • OS (e.g. from /etc/os-release): Ubuntu 18.04
  • Kernel (e.g. uname -a): 4.15.0-55-generic
  • Install tools: kubectl apply YAML file
  • Others:

What happened:
About a week ago, ExternalName is no longer working. Before that, it still worked properly.

What you expected to happen:
ExternalName work properly

How to reproduce it:
I have tried rollback to previous controller version, but it did not work

Anything else we need to know:

/kind bug

kinbug

All 6 comments

@tuananh170489 In which version it was working and please share detail about error which you are getting

/assign

@tuananh170489 please update to 0.41.0

@tuananh170489 In which version it was working and please share detail about error which you are getting

This is an error that I have encountered

invalid port while connecting to upstream, client: x.x.x.x

@tuananh170489 In which version it was working and please share detail about error which you are getting

This is an error that I have encountered

invalid port while connecting to upstream, client: x.x.x.x

Please update to 0.41.0 as suggested by @aledbf

Closing. Please update

Install kind and ingress-nginx https://kind.sigs.k8s.io/docs/user/ingress/#create-cluster

Install the ingress definition and external services

echo '
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: proxy
  annotations:
spec:
  rules:
  - host: external.test
    http:
      paths:
      - path: /
        backend:
          serviceName: httpbin
          servicePort: 80
---
kind: Service
apiVersion: v1
metadata:
  name: httpbin
spec:
  type: ExternalName
  externalName: httpbin.org
' | kubectl apply -f -

test

curl localhost/headers -H 'Host: external.test' -v
*   Trying 127.0.0.1:80...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /headers HTTP/1.1
> Host: external.test
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Sat, 14 Nov 2020 13:23:01 GMT
< Content-Type: application/json
< Content-Length: 242
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< 
{
  "headers": {
    "Accept": "*/*", 
    "Host": "external.test", 
    "User-Agent": "curl/7.68.0", 
    "X-Amzn-Trace-Id": "Root=1-5fafda35-103f52f66c87d8e869d38208", 
    "X-Forwarded-Host": "external.test", 
    "X-Scheme": "http"
  }
}
Was this page helpful?
0 / 5 - 0 ratings