Open kahirokunn opened 7 months ago
The externalName: helloworld-go.default.example.com
is a temporary placeholder until the underlying networking layer provides an alternate hostname or IP.
Are you not seeing the service being updated with the cluster local host or cluster ip?
@kahirokunn just following up here
This also occurred when using Cilium's GatewayAPI. We have not had time to re-verify this one. I will share the results and the scripts etc. I used when I tested it next time! thx :pray:
We don't test with Cillium - so it's probably specific to that implementation.
I understand. Please let me share any more information when I get it. Thx
@dprotaso for me with cilium, my test deployment's generated ExternalName service stay as externalName: http-bin.thenamespace.svc.cluster.local
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
/reopen
@kahirokunn: Reopened this issue.
Issue: ExternalName Service Causes Unintended External Traffic in helloworld-go Sample
Version Affected: 1.14.0
Description: After applying the helloworld-go sample provided in the latest release (version 1.14.0) of Knative Serving, an ExternalName service was generated as described below. This service setup leads to internal application requests being routed externally via the NAT Gateway, instead of being contained within the cluster. This behavior might not be intended as it causes cluster-internal communications to be sent over the internet.
Generated Service YAML:
Expected Behavior: Internal requests to the service should remain within the cluster, avoiding unnecessary use of external network resources.
Actual Behavior: Traffic intended for internal services is routed externally, causing potential latency and cost implications.
Steps to Reproduce:
helloworld-go
service.