Skip to content

Commit

Permalink
Merge pull request #3166 from gabel/patch-1
Browse files Browse the repository at this point in the history
Added ingress tls values.yaml example to documentation
  • Loading branch information
k8s-ci-robot authored Oct 10, 2018
2 parents f2bfc42 + 64c68b6 commit 3c1a5c5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/examples/tls-termination/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ You need a [TLS cert](../PREREQUISITES.md#tls-certificates) and a [test HTTP ser

## Deployment

Create a `values.yaml` file.

```yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-test
spec:
tls:
- hosts:
- foo.bar.com
# This assumes tls-secret exists and the SSL
# certificate contains a CN for foo.bar.com
secretName: tls-secret
rules:
- host: foo.bar.com
http:
paths:
- path: /
backend:
# This assumes http-svc exists and routes to healthy endpoints
serviceName: http-svc
servicePort: 80
```
The following command instructs the controller to terminate traffic using the provided
TLS cert, and forward un-encrypted HTTP traffic to the test HTTP service.
Expand Down

0 comments on commit 3c1a5c5

Please sign in to comment.