sample-app: Fix port of node-server-svc (80 to 8080)

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>
This commit is contained in:
Guzman 2025-01-24 17:47:59 +01:00 committed by Guzman
parent 0a9d913406
commit 2dca1810bf
3 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,6 @@ spec:
app: node-server
ports:
- protocol: TCP
port: 80
port: 8080
targetPort: 8000
type: LoadBalancer

View File

@ -29,6 +29,6 @@ spec:
app: node-server
ports:
- protocol: TCP
port: 80
port: 8080
targetPort: 8000
type: LoadBalancer

View File

@ -278,7 +278,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: