Skip to content

Commit

Permalink
sample-app: Fix port of node-server-svc (80 to 8080)
Browse files Browse the repository at this point in the history
Without this, following the instructions that don't require port
forwarding (e.g. using "minikube tunnel") fails: the service is exposed
on port 80, which is not what the frontend expects.

After this commit the setup mimics that of the frontend service, which
works both with and without port forwarding.

Signed-off-by: Guzman <guzman@guzman.fi>
  • Loading branch information
guzalv committed Jan 24, 2025
1 parent ed66fd0 commit cb626fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ spec:
app: node-server
ports:
- protocol: TCP
port: 80
port: 8080
targetPort: 8000
type: LoadBalancer
2 changes: 1 addition & 1 deletion docs/bookstore/page-0.5/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ node-server-svc LoadBalancer 10.101.90.35 <pending> 80:31792/T
If port forwarding is required, open a new terminal and run:

```shell
kubectl port-forward svc/node-server-svc 8080:80
kubectl port-forward svc/node-server-svc 8080:8080
```
You should see the following output:

Expand Down

0 comments on commit cb626fc

Please sign in to comment.