Fix HAProxy rewrite doc

This commit is contained in:
Joao Morais 2017-04-19 19:26:17 -03:00
parent 94d256e44d
commit 9b5f8c5e05

View file

@ -55,7 +55,7 @@ query=nil
Now turn ssl-redirect true: Now turn ssl-redirect true:
```console ```console
$ kubectl annotate ingress/app --overwrite ingress.kubernetes.io/ssl-redirect=false $ kubectl annotate ingress/app --overwrite ingress.kubernetes.io/ssl-redirect=true
ingress "app" annotated ingress "app" annotated
$ curl -iL 172.17.4.99:30876 -H 'Host: foo.bar' $ curl -iL 172.17.4.99:30876 -H 'Host: foo.bar'
@ -72,7 +72,7 @@ using a [ConfigMap](https://github.com/jcmoraisjr/haproxy-ingress#configmap).
### App root context redirect ### App root context redirect
Annotate the `app` ingress resource with `app-root` and also `ssl-redirect` for simplicity: Annotate the `app` ingress resource with `app-root`, and also `ssl-redirect` to `false` for simplicity:
```console ```console
$ kubectl annotate ingress/app --overwrite ingress.kubernetes.io/app-root=/web $ kubectl annotate ingress/app --overwrite ingress.kubernetes.io/app-root=/web