Skip to content

Commit

Permalink
Escape curly braces for go-template
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyarakun committed Apr 8, 2016
1 parent d956b20 commit d7c45d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/user-guide/walkthrough/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ On most providers, the pod IPs are not externally accessible. The easiest way to
Provided the pod IP is accessible, you should be able to access its http endpoint with curl on port 80:

```shell
{% raw %}
$ curl http://$(kubectl get pod nginx -o go-template={{.status.podIP}})
{% endraw %}
```

Delete the pod by name:
Expand Down
2 changes: 2 additions & 0 deletions docs/user-guide/walkthrough/k8s201.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ On most providers, the service IPs are not externally accessible. The easiest wa
Provided the service IP is accessible, you should be able to access its http endpoint with curl on port 80:

```shell
{% raw %}
$ export SERVICE_IP=$(kubectl get service nginx-service -o go-template={{.spec.clusterIP}})
$ export SERVICE_PORT=$(kubectl get service nginx-service -o go-template'={{(index .spec.ports 0).port}}')
$ curl http://${SERVICE_IP}:${SERVICE_PORT}
{% endraw %}
```

To delete the service by name:
Expand Down

0 comments on commit d7c45d1

Please sign in to comment.