Skip to content

Commit

Permalink
Allow define number of replicas of KEDA (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Dec 20, 2021
1 parent a3ea2d7 commit 09488c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration for our Artifact Hub repository
# See https://github.com/artifacthub/hub/blob/main/docs/metadata/artifacthub-repo.yml
# See https://github.com/artifacthub/hub/blob/master/docs/metadata/artifacthub-repo.yml
repositoryID: e7f9f3ad-5080-4095-8ff9-98a0b71371b4
owners:
- name: KEDA Maintainers
Expand Down
1 change: 1 addition & 0 deletions keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ their default values.
| `crds.install` | Defines whether the KEDA CRDs have to be installed or not. | `true` |
| `watchNamespace` | Defines Kubernetes namespaces to watch to scale their workloads. Default watches all namespaces | `` |
| `operator.name` | Name of the KEDA operator | `keda-operator` |
| `operator.replicaCount` | Capability to configure the number of replicas for KEDA operator.<br /><br />While you can run more replicas of our operator, only one operator instance will be the leader and serving traffic.<br /><br />You can run multiple replicas, but they will not improve the performance of KEDA, it could only reduce downtime during a failover.| `1` |
| `metricsServer.dnsPolicy` | Defined the DNS policy for the metric server | `ClusterFirst`
| `metricsServer.useHostNetwork` | Enable metric server to use host network | `false`
| `imagePullSecrets` | Name of secret to use to pull images to use to pull Docker images | `[]` |
Expand Down
2 changes: 1 addition & 1 deletion keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
app.kubernetes.io/name: {{ .Values.operator.name }}
{{- include "keda.labels" . | indent 4 }}
spec:
replicas: 1
replicas: {{ .Values.operator.replicaCount}}
selector:
matchLabels:
app: {{ .Values.operator.name }}
Expand Down
3 changes: 2 additions & 1 deletion keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ watchNamespace: ""

imagePullSecrets: []
operator:
name: keda-operator
name: keda-operator
replicaCount: 1

metricsServer:
# use ClusterFirstWithHostNet if `useHostNetwork: true` https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
Expand Down

0 comments on commit 09488c5

Please sign in to comment.