mirror of https://github.com/knative/docs.git
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:
parent
0a9d913406
commit
2dca1810bf
|
@ -29,6 +29,6 @@ spec:
|
|||
app: node-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
port: 8080
|
||||
targetPort: 8000
|
||||
type: LoadBalancer
|
|
@ -29,6 +29,6 @@ spec:
|
|||
app: node-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
port: 8080
|
||||
targetPort: 8000
|
||||
type: LoadBalancer
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue