Add documentation for disabling AutoTLS per service/route via annotation (#2838)

This commit is contained in:
arturenault 2020-09-28 07:30:45 -07:00 committed by GitHub
parent 9ea53f25c7
commit d25b707820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -319,3 +319,25 @@ be able to handle HTTPS traffic.
```
Note that the URL will be **https** in this case.
### Disable Auto TLS per service or route
If you have Auto TLS enabled in your cluster, you can choose to disable Auto TLS for individual services or routes by adding the annotation `networking.knative.dev/disableAutoTLS: true`.
Using the previous `autoscale-go` example:
1. Edit the service using `kubectl edit service.serving.knative.dev/autoscale-go -n default` and add the annotation:
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
annotations:
...
networking.knative.dev/disableAutoTLS: "true"
...
```
2. The service URL should now be **http**, indicating that AutoTLS is disabled:
```
NAME URL LATEST AGE CONDITIONS READY REASON
autoscale-go http://autoscale-go.default.1.arenault.dev autoscale-go-dd42t 8m17s 3 OK / 3 True
```