-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Trigger Authentication for Redis Scaler (#441)
* nats streaming support in the list. * alphabetical oredering of scaler list. * Use Trigger Authentication for Redis. * remove password log.
- Loading branch information
1 parent
ad18ad1
commit 6bd52e0
Showing
5 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
apiVersion: keda.k8s.io/v1alpha1 | ||
kind: TriggerAuthentication | ||
metadata: | ||
name: keda-trigger-auth-redis-secret | ||
namespace: my-project | ||
spec: | ||
secretTargetRef: # Optional. | ||
- parameter: password # Required. | ||
name: votes-db-secret # Required. | ||
key: redis_password # Required. | ||
|
||
--- | ||
|
||
apiVersion: keda.k8s.io/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: redis-scaledobject | ||
namespace: my-project | ||
labels: | ||
deploymentName: votes | ||
spec: | ||
pollingInterval: 5 # Optional. Default: 30 seconds | ||
cooldownPeriod: 5 # Optional. Default: 300 seconds | ||
minReplicaCount: 0 # Optional. Default: 0 | ||
maxReplicaCount: 30 # Optional. Default: 100 | ||
scaleTargetRef: | ||
deploymentName: votes | ||
triggers: | ||
- type: redis | ||
metadata: | ||
address: REDIS_ADDRESS # the environment variable defined in the Pod, the value is in the format host:port | ||
listName: mylist # Required | ||
listLength: "10" # Required | ||
authenticationRef: | ||
name: keda-trigger-auth-redis-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters