Skip to content

Commit

Permalink
Update yamls
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Sep 27, 2021
1 parent 4dd5310 commit aed5900
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/guides/ingress/configuration/loadbalance-algorithm.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
name: test-ingress
namespace: demo
spec:
backend:
defaultBackend:
service:
name: test-server
port:
Expand Down
8 changes: 5 additions & 3 deletions docs/guides/ingress/http/external-svc.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ metadata:
name: test-ings-rhvulnlb
namespace: default
spec:
backend:
defaultBackend:
service:
name: external-ip
port:
Expand Down Expand Up @@ -98,14 +98,14 @@ spec:
If this service is used in ingress, the traffic will forward to google.com's address.
```
```yaml
apiVersion: voyager.appscode.com/v1
kind: Ingress
metadata:
name: test-ings-rhvulnlb
namespace: default
spec:
backend:
defaultBackend:
service:
name: external-ns
port:
Expand All @@ -130,6 +130,7 @@ spec:
#### Default redirect
If No BackendRules are configured for the endpoint, Voyager will configure HAProxy to redirect traffic to provided domain and port.
The redirect code will be 301 (permanent redirect). Scheme (http or https) used by endpoint is preserved on redirect.

```
backend:
service:
Expand All @@ -145,6 +146,7 @@ http-request redirect location http[s]://{{e.ExternalName}}:{{ e.Port }} code 30
```

#### Backend Rule

If Backendrules are configured, Voyager will not auto generate any redirect rule. This allows users to use full spectrum of HTTP redirection options available in HAProxy. To learn about these option, consult [HAProxy documentation](https://www.haproxy.com/doc/aloha/7.0/haproxy/http_redirection.html#redirection-examples).

```
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/ingress/http/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ spec:
tls:
- hosts:
- host.example.com
ref:
kind: Secret
name: tls-host
secretName: tls-host
rules:
- host: host.example.com
http:
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/ingress/http/single-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
name: test-ingress
namespace: default
spec:
backend:
defaultBackend:
service:
name: test-service
port:
Expand All @@ -45,7 +45,7 @@ metadata:
name: test-ingress
namespace: default
spec:
backend:
defaultBackend:
service:
name: default-service
port:
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ingress/scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ metadata:
annotations:
ingress.appscode.com/replicas: '2'
spec:
backend:
defaultBackend:
service:
name: my-app
port:
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/ingress/security/tls-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ metadata:
namespace: default
spec:
tls:
- ref:
kind: Secret
name: server
- secretName: server
hosts:
- auth.example.com
rules:
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ingress/tls/backend-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ metadata:
name: test-ingress
namespace: default
spec:
backend:
defaultBackend:
service:
name: test-service
port:
Expand Down

0 comments on commit aed5900

Please sign in to comment.