-
Feature
-
Resolution: Unresolved
-
Major
-
None
-
1.25.0
-
None
-
None
-
False
-
-
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