Update the example for kubectl port-forward

Clarify that `REMOTE_PORT` is interpreted as identifying a _Service_ port when provided `TYPE` is `service`.
Also, highlight support for specifying a named port as `REMOTE_PORT`.
This commit is contained in:
Christopher Montoro 2020-10-07 22:02:37 -04:00
parent 0703805305
commit 7fc8f1a220
No known key found for this signature in database
GPG Key ID: DFDA0C7BFD4582A9
2 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,7 @@ for database debugging.
or
```shell
kubectl port-forward service/redis-master 7000:6379
kubectl port-forward service/redis-master 7000:redis
```
Any of the above commands works. The output is similar to this:

View File

@ -8,7 +8,8 @@ metadata:
tier: backend
spec:
ports:
- port: 6379
- name: redis
port: 6379
targetPort: 6379
selector:
app: redis