Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

ingress - nginx - specify namespace of service within rules #878

Closed
ajohnstone opened this issue May 2, 2016 · 5 comments
Closed

ingress - nginx - specify namespace of service within rules #878

ajohnstone opened this issue May 2, 2016 · 5 comments

Comments

@ajohnstone
Copy link
Contributor

It would be ideal to specify another namespace of a service within the ingress rules.

my use case is to wrap authentication over the logging without providing kubernetes accounts to developers/qas etc.

"ELB -> bitly/oauth2_proxy -> ingress routing -> logging".

apiVersion: v1
items:
- apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    namespace: default
  spec:
    rules:
    - http:
        paths:
        - backend:
            nameSpace: kube-system
            serviceName: kibana-logging
            servicePort: 5601
          path: /logs
@aledbf
Copy link
Contributor

aledbf commented May 2, 2016

@ajohnstone please check kubernetes/kubernetes#17088

@thockin
Copy link
Contributor

thockin commented May 2, 2016

Dup of kubernetes/kubernetes#17088

@thockin thockin closed this as completed May 2, 2016
@chestack
Copy link

chestack commented Jun 4, 2018

my workaround:

  1. serviceA in namespaceA
  2. create serviceB in namespaceB
spec:
    ...
    type: ExertalName
    externalName: serviceA.namespaceA.svc.cluster.local
  1. add ingress rule into ingressB in namespaceB
     - path: /****
        backend:
          serviceName: serviceB
          servicePort: ***

@kornface13
Copy link

Theres a pretty big limitation here:

  • spec.rules[0].http.backend.serviceName: Invalid value: "testbed-a-really-long-name.really-long-name-service-namespace.svc.cluster.local": must be no more than 63 characters

Would be much better if we could specify the namespace on its own, or if there wasn't the 63 character limit.

@thockin
Copy link
Contributor

thockin commented Feb 12, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants