kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Default backend: defaultbackend-svc:443 (<error: endpoints "defaultbackend-svc" not found>)

Open Hadishamil opened this issue 2 years ago • 2 comments

Default backend configuration error!!
issue: Ingress is not recognizing my externalName service (though i have added port to externalName service)

--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------
---
apiVersion: v1
kind: Service
metadata:
  name: defaultbackend-svc
spec:
  type: ExternalName
  externalName: example.com
  ports:
  - name: https
    port: 443
    targetPort: 443
    protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
 name: defaultbackend-ingress
spec:
  defaultBackend:
    service:
      name: defaultbackend-svc
      port:
        number: 443
-----------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------

Hadishamil avatar Sep 01 '22 10:09 Hadishamil

Hi @Hadishamil thanks for reporting!

Be sure to check out the docs while you wait for a human to take a look at this :slightly_smiling_face:

Cheers!

github-actions[bot] avatar Sep 01 '22 10:09 github-actions[bot]

Have you met the prerequisites that are defined in the example that the documentation linked? https://github.com/nginxinc/kubernetes-ingress/tree/v2.3.0/examples/externalname-services#prerequisites Specifically, the resolver for the external to the cluster DNS name.

brianehlert avatar Sep 01 '22 13:09 brianehlert

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Dec 01 '22 02:12 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Dec 12 '22 02:12 github-actions[bot]