Commit 865ca51
committed
sample-app: Use hardcoded URL as db-insert trigger subscriber
This is needed because the node-server service listens on port 8080, and
the K8s ref resolver doesn't support custom ports [1], and referring to
the node-server-svc service yields:
http://node-server-svc.default.svc.cluster.local/insert
Instead of the correct URL:
http://node-server-svc.default.svc.cluster.local:8080/insert
Which results in hanging connections and eventually timeouts when adding
new comments that pass the trigger's filter.
[1] https://github.com/knative/pkg/blob/dcf159339de2fec9dde678a04cb7a354e912d2bf/resolver/addressable_resolver.go#L227
Signed-off-by: Guzman <guzman@guzman.fi>1 parent 2dca181 commit 865ca51
File tree
2 files changed
+2
-10
lines changed- code-samples/eventing/bookstore-sample-app/solution/node-server/config
- docs/versioned/bookstore/page-6
2 files changed
+2
-10
lines changedLines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
0 commit comments