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 a6c2e217a5..3eceb4f6d2 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 @@ -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: diff --git a/content/en/examples/application/guestbook/redis-master-service.yaml b/content/en/examples/application/guestbook/redis-master-service.yaml index a484014f1f..65cef2191c 100644 --- a/content/en/examples/application/guestbook/redis-master-service.yaml +++ b/content/en/examples/application/guestbook/redis-master-service.yaml @@ -8,7 +8,8 @@ metadata: tier: backend spec: ports: - - port: 6379 + - name: redis + port: 6379 targetPort: 6379 selector: app: redis