Merge pull request #24429 from montmanu/kubectl/port-forward
Update the example for kubectl port-forward
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ for database debugging.
|
|||||||
or
|
or
|
||||||
|
|
||||||
```shell
|
```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:
|
Any of the above commands works. The output is similar to this:
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ metadata:
|
|||||||
tier: backend
|
tier: backend
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 6379
|
- name: redis
|
||||||
|
port: 6379
|
||||||
targetPort: 6379
|
targetPort: 6379
|
||||||
selector:
|
selector:
|
||||||
app: redis
|
app: redis
|
||||||
|
|||||||
Reference in New Issue
Block a user