Update ingress.md

This commit is contained in:
Kuat 2017-05-09 22:42:50 -07:00 committed by GitHub
parent 3048cbac71
commit 2e29f1455a
1 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ to configure ingress behavior.
If load balancers are not supported, use the service NodePort instead:
```bash
export INGRESS_URL=$(kubectl get po -l istio=ingress -o jsonpath={.items[0].status.hostIP}):$(kubectl get svc istio-ingress -o jsonpath={.spec.ports[0].nodePort})
export INGRESS_URL=$(kubectl get po -l istio=ingress -o jsonpath='{.items[0].status.hostIP}'):$(kubectl get svc istio-ingress -o jsonpath='{.spec.ports[0].nodePort}')
```
1. Access the httpbin service using _curl_:
@ -88,13 +88,13 @@ to configure ingress behavior.
A private key and certificate can be created for testing using [OpenSSL](https://www.openssl.org/).
```bash
openssl req -newkey rsa:2048 -nodes -keyout /tmp/cert.key -subj '/C=US/ST=Seattle/O=Example/CN=secure.example.io' > /tmp/cert.crt
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=foo.bar.com"
```
1. Create the secret using `kubectl`
```bash
kubectl create secret generic ingress-secret --from-file=tls.key=/tmp/cert.key --from-file=tls.crt=/tmp/cert.crt
kubectl create secret tls ingress-secret --key /tmp/tls.key --cert /tmp/tls.crt
```
1. Create the Ingress Resource for the httpbin service
@ -196,4 +196,4 @@ Here's an interesting thing to know about the steps you just did.
* Learn more about [this](...).
* See this [related task](...).
* See this [related task](...).