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

Kubernetes Controller Support External names #2230

Closed
HappyCodeSloth opened this issue Aug 29, 2023 · 1 comment · Fixed by #2231
Closed

Kubernetes Controller Support External names #2230

HappyCodeSloth opened this issue Aug 29, 2023 · 1 comment · Fixed by #2231
Assignees
Labels
Kubernetes Ingress Controller Type: Idea This issue is a high-level idea for discussion.
Milestone

Comments

@HappyCodeSloth
Copy link
Contributor

What should we add or change to make your life better?

The Kubernetes Controller supports routing currently to Services within the cluster. By using Endpoint Slices this can be made to work with Services hosted externally to the cluster if there is a list of known Ip's. However, in my case I have a DNS Name that say points to a CDN for example Azure Front Door. As such, Support for External Name type services would be best.

Example

apiVersion: v1
kind: Service
metadata:
  name: my-external-service
spec:
  type: ExternalName
  externalName: my.external-service.example.com
--- 
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress
  annotations:
    yarp.ingress.kubernetes.io/backend-protocol: https
spec:
  ingressClassName: my-yarp-controller-ingress-class
  rules:
  - http:
      paths:
      - path: /testpath
        pathType: Prefix
        backend:
          service:
            name: my-external-service
            port:
              number: 443

Why is this important to you?

Enables the Yarp Kubernetes Controller to be used to proxy to services hosted externally from the cluster without knowledge of underlying IPs using native Kubernetes Configuration.

@HappyCodeSloth HappyCodeSloth added the Type: Idea This issue is a high-level idea for discussion. label Aug 29, 2023
@HappyCodeSloth
Copy link
Contributor Author

Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kubernetes Ingress Controller Type: Idea This issue is a high-level idea for discussion.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants