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

Ingress serviceSelector #17686

Closed
guybrush opened this issue Nov 23, 2015 · 4 comments
Closed

Ingress serviceSelector #17686

guybrush opened this issue Nov 23, 2015 · 4 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@guybrush
Copy link

currently a service for an ingress-backend can only be selected by service-name (see https://github.com/kubernetes/kubernetes/blob/ba383bc/pkg/apis/extensions/v1beta1/types.go#L588-L595)

would it be possible to support service-selection by using a label-selector (similar to service.spec.selector)?

currently i have to write long descriptive service-names like that:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: projectX
spec:
  rules:
    - host: projectX.com
      http:
        paths:
          - path: /
            backend:
              serviceName: projectX-production-webFrontend
              servicePort: 80

i would like to do something like that:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: projectX
spec:
  rules:
    - host: projectX.com
      http:
        paths:
          - path: /
            backend:
              serviceSelector: 
                project: X
                environment: production
                component: webFrontend
              servicePort: 80
@mqliang
Copy link
Contributor

mqliang commented Dec 11, 2015

/subscribe

@k8s-github-robot k8s-github-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label May 31, 2017
@0xmichalis
Copy link
Contributor

@kubernetes/sig-network-feature-requests

@k8s-ci-robot k8s-ci-robot added sig/network Categorizes an issue or PR as relevant to SIG Network. kind/feature Categorizes issue or PR as related to a new feature. labels Jun 10, 2017
@k8s-github-robot k8s-github-robot removed the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jun 10, 2017
@cmluciano
Copy link

/assign

@cmluciano
Copy link

/close

redirected issue to the ingress repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

7 participants