You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/10/09 10:03:57 UTC

[GitHub] [apisix-ingress-controller] shareinto opened a new issue, #1374: feat: support k8s native ingress and backend service in the different namespace

shareinto opened a new issue, #1374:
URL: https://github.com/apache/apisix-ingress-controller/issues/1374

   ```apiVersion: networking.k8s.io/v1
   apiVersion: networking.k8s.io/v1
   kind: Ingress
   metadata:
     annotations:
       k8s.apisix.apache.org/svc-namespace: default
     name: details
     namespace: apisix
   spec:
     ingressClassName: apisix
     rules:
     - host: bar.com
       http:
         paths:
         - backend:
             service:
               name: details
               port:
                 number: 9080
           path: /
           pathType: Prefix
   ```
   Like the example above, ingress is under the namespace apisix, and service details is under the default namespace.
   In actual production, we did encounter such a scenario, which is to use the externalName type of Service that the nginx ingress controller can support. We now want to migrate to apisix and use the old ingress api. There is a problem with the externalName supported by the nginx ingress controller, that is, it will resolve the service of another namespace into clusterIp, which will cause the Layer 7 load balancing strategy to fail. So, it would be the best solution to get the endpoint of another namespace.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] AlinsRan commented on issue #1374: feat: support k8s native ingress and backend service in the different namespace

Posted by GitBox <gi...@apache.org>.
AlinsRan commented on issue #1374:
URL: https://github.com/apache/apisix-ingress-controller/issues/1374#issuecomment-1280141082

   I have a few doubts.
   1. Why cross ns? 
   2. Can't the same namespace be used for the ingress resource and service?
   
   It should be noted that if the `namespace_selector` flag is enabled and the `namespace: default` is not in the monitoring range, the update of Endpoints API will be lost.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 closed issue #1374: feat: support k8s native ingress and backend service in the different namespace

Posted by GitBox <gi...@apache.org>.
tao12345666333 closed issue #1374: feat: support k8s native ingress and backend service in the different namespace
URL: https://github.com/apache/apisix-ingress-controller/issues/1374


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] shareinto commented on issue #1374: feat: support k8s native ingress and backend service in the different namespace

Posted by GitBox <gi...@apache.org>.
shareinto commented on issue #1374:
URL: https://github.com/apache/apisix-ingress-controller/issues/1374#issuecomment-1280328849

   Yes, I can understand your doubts, our business sometimes requires ingress and service to be in different namespaces, which depends on the choice of our customers. We found some implementations of the same:
   (1) https://github.com/nginxinc/kubernetes-ingress/tree/v2.3.0/examples/custom-resources/cross-namespace-configuration
   (2) type of externalName service in nginx ingress controller


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org