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:
parent
0703805305
commit
7fc8f1a220
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ metadata:
|
|||
tier: backend
|
||||
spec:
|
||||
ports:
|
||||
- port: 6379
|
||||
- name: redis
|
||||
port: 6379
|
||||
targetPort: 6379
|
||||
selector:
|
||||
app: redis
|
||||
|
|
|
|||
Loading…
Reference in New Issue