Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-975

Allow to call kn service via name from containers within the same namespace

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.25.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Kubernetes services expose their short name as a valid endpoint for other containers that are running in the same namespace. Kn service should do the same.

      Currently, it is not possible, you have to use full name.namespace.svc - due to the way ingress works.

      Here's an example fail:

      sh-4.4$ curl -v http://rest-heroes:80/api/heroes/hello
      *   Trying 172.30.104.245...
      * TCP_NODELAY set
      * Connected to rest-heroes (172.30.104.245) port 80 (#0)
      > GET /api/heroes/hello HTTP/1.1
      > Host: rest-heroes
      > User-Agent: curl/7.61.1
      > Accept: */*
      > 
      < HTTP/1.1 404 Not Found
      < date: Tue, 18 Oct 2022 20:15:53 GMT
      < server: envoy
      < content-length: 0
      < 
      * Connection #0 to host rest-heroes left intact

              Unassigned Unassigned
              krzysztofsuszynski Chris Suszynski
              Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: