From fd974ca7945a77f8bb239d9f7ee7733b029d816b Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Wed, 17 Jul 2019 12:24:35 +0900 Subject: [PATCH] specify local port as argument (#15445) --- .../port-forward-access-application-cluster.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md b/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md index 5b6208f181..1bb365b34f 100644 --- a/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md +++ b/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md @@ -33,7 +33,7 @@ for database debugging. The output of a successful command verifies that the deployment was created: deployment.apps/redis-master created - + View the pod status to check that it is ready: kubectl get pods @@ -92,19 +92,19 @@ for database debugging. 1. `kubectl port-forward` allows using resource name, such as a pod name, to select a matching pod to port forward to since Kubernetes v1.10. - kubectl port-forward redis-master-765d459796-258hz 7000:6379 + kubectl port-forward redis-master-765d459796-258hz 7000:6379 which is the same as kubectl port-forward pods/redis-master-765d459796-258hz 7000:6379 - or + or - kubectl port-forward deployment/redis-master 7000:6379 + kubectl port-forward deployment/redis-master 7000:6379 or - kubectl port-forward rs/redis-master 7000:6379 + kubectl port-forward rs/redis-master 7000:6379 or @@ -117,7 +117,7 @@ for database debugging. 2. Start the Redis command line interface: - redis-cli + redis-cli -p 7000 3. At the Redis command line prompt, enter the `ping` command: