Merge pull request #797 from lukaszo/pf

Fix commands in Connect with Port Forwarding guide
This commit is contained in:
Tim Hockin
2016-07-14 23:30:03 -07:00
committed by GitHub
@@ -6,7 +6,7 @@ kubectl port-forward forwards connections to a local port to a port on a pod. It
## Creating a Redis master ## Creating a Redis master
```shell ```shell
$ kubectl create examples/redis/redis-master.yaml $ kubectl create -f examples/redis/redis-master.yaml
pods/redis-master pods/redis-master
``` ```
@@ -23,7 +23,7 @@ redis-master 2/2 Running 0 41s
The Redis master is listening on port 6379, to verify this, The Redis master is listening on port 6379, to verify this,
```shell{% raw %} ```shell{% raw %}
$ kubectl get pods redis-master -t='{{(index (index .spec.containers 0).ports 0).containerPort}}{{"\n"}}' $ kubectl get pods redis-master --template='{{(index (index .spec.containers 0).ports 0).containerPort}}{{"\n"}}'
6379{% endraw %} 6379{% endraw %}
``` ```