Skip to content

Commit

Permalink
docs: Add doc changes for tls argument in external scaler (#1133)
Browse files Browse the repository at this point in the history
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
  • Loading branch information
dttung2905 committed May 18, 2023
1 parent e778dd4 commit 4e0a2bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
16 changes: 13 additions & 3 deletions content/docs/2.11/scalers/external-push.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@ triggers:
- type: external-push
metadata:
scalerAddress: external-scaler-service:8080
tlsCertFile: /path/to/tls/cert.pem # optional
caCert : /path/to/tls/ca.pem
tlsCertFile: /path/to/tls/cert.pem # Deprecated. https://github.com/kedacore/keda/issues/4549
tlsClientCert: /path/to/tls/cert.pem
tlsClientKey: /path/to/tls/key.pem
unsafeSsl: false
```
**Parameter list:**
- `scalerAddress` - Address of the external push scaler implementing `ExternalScaler.StreamIsActive` in externalscaler.proto. Format must be `host:port`.
- `tlsCertFile` - Location of a certificate to use for the GRPC connection to authenticate with. (Optional)
- `caCert` - Location of a Certificate Authority (CA) certificate to use for the GRPC connection to authenticate with. (Optional)
- `tlsClientCert` - Location of a client certificate to use for the GRPC connection to authenticate with. (Optional)
- `tlsClientKey` - Location of a client private key to use for the GRPC connection to authenticate with. (Optional)
- `unsafeSsl` - Skip certificate validation when connecting over HTTPS. (Values: `true`, `false`, Default: `false`, Optional)

The entire metadata object is passed to the external scaler in `ScaledObjectRef.scalerMetadata`.

Expand All @@ -46,5 +53,8 @@ spec:
- type: external-push
metadata:
scalerAddress: external-scaler-service:8080
tlsCertFile: /path/to/tls/cert.pem # optional
caCert : /path/to/tls/ca.pem
tlsClientCert: /path/to/tls/cert.pem
tlsClientKey: /path/to/tls/key.pem
unsafeSsl: false
```
11 changes: 9 additions & 2 deletions content/docs/2.11/scalers/external.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@ triggers:
- type: external
metadata:
scalerAddress: external-scaler-service:8080
tlsCertFile : /path/to/tls/cert.pem
caCert : /path/to/tls/ca.pem
tlsCertFile: /path/to/tls/cert.pem # Deprecated. https://github.com/kedacore/keda/issues/4549
tlsClientCert: /path/to/tls/cert.pem
tlsClientKey: /path/to/tls/key.pem
unsafeSsl: false
```
**Parameter list:**
- `scalerAddress` - Address of the external scaler. Format must be `host:port`.
- `tlsCertFile` - Location of a certificate to use for the GRPC connection to authenticate with. (Optional)
- `caCert` - Location of a Certificate Authority (CA) certificate to use for the GRPC connection to authenticate with. (Optional)
- `tlsClientCert` - Location of a client certificate to use for the GRPC connection to authenticate with. (Optional)
- `tlsClientKey` - Location of a client private key to use for the GRPC connection to authenticate with. (Optional)
- `unsafeSsl` - Skip certificate validation when connecting over HTTPS. (Values: `true`, `false`, Default: `false`, Optional)

> For implementing an external scaler, refer to [External Scalers Concept](../concepts/external-scalers.md).

Expand Down

0 comments on commit 4e0a2bd

Please sign in to comment.