Mark all code fragments with language (#271)

Code snippets without language look off on the website - they are not picked up by prism.
This commit is contained in:
Kuat 2017-05-18 05:43:58 -07:00 committed by Martin Taillefer
parent 98d642b164
commit 1fca7bea62
1 changed files with 11 additions and 16 deletions

View File

@ -66,7 +66,7 @@ to configure ingress behavior.
kubectl get ingress simple-ingress -o wide kubectl get ingress simple-ingress -o wide
``` ```
``` ```bash
NAME HOSTS ADDRESS PORTS AGE NAME HOSTS ADDRESS PORTS AGE
simple-ingress * 130.211.10.121 80 1d simple-ingress * 130.211.10.121 80 1d
``` ```
@ -81,7 +81,7 @@ to configure ingress behavior.
kubectl get po -l istio=ingress -o jsonpath='{.items[0].status.hostIP}' kubectl get po -l istio=ingress -o jsonpath='{.items[0].status.hostIP}'
``` ```
``` ```bash
169.47.243.100 169.47.243.100
``` ```
@ -91,15 +91,13 @@ to configure ingress behavior.
kubectl get svc istio-ingress kubectl get svc istio-ingress
``` ```
``` ```bash
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-ingress 10.10.10.155 <pending> 80:31486/TCP,443:32254/TCP 32m istio-ingress 10.10.10.155 <pending> 80:31486/TCP,443:32254/TCP 32m
``` ```
```bash ```bash
export INGRESS_URL=169.47.243.100:31486 export INGRESS_URL=169.47.243.100:31486
``` ```
1. Access the httpbin service using _curl_: 1. Access the httpbin service using _curl_:
@ -108,7 +106,7 @@ to configure ingress behavior.
curl http://$INGRESS_URL/headers curl http://$INGRESS_URL/headers
``` ```
``` ```json
{ {
"headers": { "headers": {
"Accept": "*/*", "Accept": "*/*",
@ -174,7 +172,7 @@ to configure ingress behavior.
kubectl get ingress secured-ingress -o wide kubectl get ingress secured-ingress -o wide
``` ```
``` ```bash
NAME HOSTS ADDRESS PORTS AGE NAME HOSTS ADDRESS PORTS AGE
secured-ingress * 130.211.10.121 80, 443 1d secured-ingress * 130.211.10.121 80, 443 1d
``` ```
@ -191,7 +189,7 @@ to configure ingress behavior.
kubectl get po -l istio=ingress -o jsonpath='{.items[0].status.hostIP}' kubectl get po -l istio=ingress -o jsonpath='{.items[0].status.hostIP}'
``` ```
``` ```bash
169.47.243.100 169.47.243.100
``` ```
@ -201,15 +199,13 @@ to configure ingress behavior.
kubectl get svc istio-ingress kubectl get svc istio-ingress
``` ```
``` ```bash
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-ingress 10.10.10.155 <pending> 80:31486/TCP,443:32254/TCP 32m istio-ingress 10.10.10.155 <pending> 80:31486/TCP,443:32254/TCP 32m
``` ```
```bash ```bash
export SECURE_INGRESS_URL=169.47.243.100:32254 export SECURE_INGRESS_URL=169.47.243.100:32254
``` ```
1. Access the secured httpbin service using _curl_: 1. Access the secured httpbin service using _curl_:
@ -218,7 +214,7 @@ to configure ingress behavior.
curl -k https://$SECURE_INGRESS_URL/ip curl -k https://$SECURE_INGRESS_URL/ip
``` ```
``` ```json
{ {
"origin": "129.42.161.35" "origin": "129.42.161.35"
} }
@ -238,10 +234,9 @@ to set a timeout rule on calls to the httpbin service.
```bash ```bash
time curl -o /dev/null -s -w "%{http_code}\n" http://$INGRESS_URL/delay/5 time curl -o /dev/null -s -w "%{http_code}\n" http://$INGRESS_URL/delay/5
``` ```
``` ```bash
200 200
real 0m5.024s real 0m5.024s
@ -273,7 +268,7 @@ to set a timeout rule on calls to the httpbin service.
time curl -o /dev/null -s -w "%{http_code}\n" http://$INGRESS_URL/delay/5 time curl -o /dev/null -s -w "%{http_code}\n" http://$INGRESS_URL/delay/5
``` ```
``` ```bash
504 504
real 0m3.149s real 0m3.149s
@ -308,7 +303,7 @@ We also showed how to control the ingress traffic using an Istio route rule.
1. Shutdown the [httpbin](https://github.com/istio/istio/tree/master/samples/apps/httpbin) service. 1. Shutdown the [httpbin](https://github.com/istio/istio/tree/master/samples/apps/httpbin) service.
``` ```bash
kubectl delete -f samples/apps/httpbin/httpbin.yaml kubectl delete -f samples/apps/httpbin/httpbin.yaml
``` ```