Update getting-started-knative-app.md

Fixing typo and formatting
This commit is contained in:
Sam O'Dell 2018-07-11 14:57:03 -07:00 committed by GitHub
parent 0272320a8e
commit 096dda1144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -113,10 +113,11 @@ IP_ADDRESS created by Knative.
`helloworld-go.default.example.com` with the domain returned in the previous
step.
Note, if you use minikube or a baremetal cluster that has no external load balacner, `EXTERNAL-IP` field is shown as `<pending>`. You need to use `NodeIP` and `NodePort` as the following:
```shell
export IP_ADDRESS=$(kubectl get node -o 'jsonpath={.items[0].status.addresses[0].address}'):$(kubectl get svc knative-ingressgateway -n istio-system -o 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')
```
> Note, if you use minikube or a baremetal cluster that has no external load balancer,
`EXTERNAL-IP` field is shown as `<pending>`. You need to use `NodeIP` and `NodePort`:
```shell
export IP_ADDRESS=$(kubectl get node -o 'jsonpath={.items[0].status.addresses[0].address}'):$(kubectl get svc knative-ingressgateway -n istio-system -o 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')
```
If you deployed your own app, you may want to customize this curl
request to interact with your application.