mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
added context to tls settings
This commit is contained in:
parent
38b8eaf8e3
commit
e65e63b4a8
@ -155,22 +155,21 @@ Specifies the `tls` configurations for the `Gateway`. The `tls` object is requir
|
||||
| Parameter | Description | Type | Required |
|
||||
| --- | --- | --- | --- |
|
||||
| `certificateRefs` | <div style={{width:480}}>Specifies Kubernetes `name` and `namespace` objects that contains TLS certificates and private keys. <br/>The certificates establish a TLS handshake for requests that match the `hostname` of the associated `listener`. Each reference must be a Kubernetes Secret. If you are using a Secret in a namespace other than the `Gateway`'s, each reference must also have a corresponding [`ReferencePolicy`](https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.ReferencePolicy).</div> | Object or array | Required if `tls` is set |
|
||||
| `mode` | Specifies the ? | string | Required if `certificateRefs` is set |
|
||||
| `options` | ??? | Map of strings | optional |
|
||||
| `mode` | Specifies the TLS Mode. Should always be set to `Terminate` for `HTTPRoutes` | string | Required if `certificateRefs` is set |
|
||||
| `options` | Specifies additional Consul API Gateway options. The following keys are available `api-gateway.consul.hashicorp.com/tls_min_version`, `api-gateway.consul.hashicorp.com/tls_max_version`, `api-gateway.consul.hashicorp.com/tls_cipher_suites`| Map of strings | optional |
|
||||
|
||||
In the following example, `tls` settings are configured . . .
|
||||
In the following example, `tls` settings are configured to use a secret named `consul-server-cert` in the same namespace as the `Gateway` and the minimum tls version is set to `TLSv1_2`.
|
||||
|
||||
```yaml
|
||||
|
||||
tls:
|
||||
certificateRefs:
|
||||
name: ?
|
||||
namespace: ?
|
||||
mode: ?
|
||||
name: consul-server-cert
|
||||
group: ""
|
||||
kind: Secret
|
||||
mode: Terminate
|
||||
options:
|
||||
- ?
|
||||
- ?
|
||||
- ?
|
||||
"api-gateway.consul.hashicorp.com/tls_min_version": "TLSv1_2"
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user