Skip to content

Commit

Permalink
Add extra sidecar containers config for Keda operator
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Petrazickis <lpetrazickis@upgrade.com>
  • Loading branch information
lpetrazickisupgrade committed Feb 7, 2024
1 parent 4cf42b3 commit d155bd7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Binary file added docs/keda-2.13.2.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ their default values.
| `logging.operator.timeEncoding` | string | `"rfc3339"` | Logging time encoding for KEDA Operator. allowed values are `epoch`, `millis`, `nano`, `iso8601`, `rfc3339` or `rfc3339nano` |
| `operator.affinity` | object | `{}` | [Affinity] for pod scheduling for KEDA operator. Takes precedence over the `affinity` field |
| `operator.disableCompression` | bool | `true` | Disable response compression for k8s restAPI in client-go. Disabling compression simply means that turns off the process of making data smaller for K8s restAPI in client-go for faster transmission. |
| `operator.extraContainers` | list | `[]` | Additional containers to run as part of the operator deployment |
| `operator.extraInitContainers` | list | `[]` | Additional init containers to run as part of the operator deployment |
| `operator.livenessProbe` | object | `{"failureThreshold":3,"initialDelaySeconds":25,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Liveness probes for operator ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)) |
| `operator.name` | string | `"keda-operator"` | Name of the KEDA operator |
| `operator.readinessProbe` | object | `{"failureThreshold":3,"initialDelaySeconds":20,"periodSeconds":3,"successThreshold":1,"timeoutSeconds":1}` | Readiness probes for operator ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes)) |
Expand Down
7 changes: 7 additions & 0 deletions keda/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ spec:
{{- else }}
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if .Values.operator.extraContainers }}
{{- toYaml .Values.operator.extraContainers | nindent 8 }}
{{- end }}
{{- if .Values.operator.extraInitContainers }}
initContainers:
{{- toYaml .Values.operator.extraInitContainers | nindent 6 }}
{{- end }}
volumes:
- name: certificates
secret:
Expand Down
6 changes: 5 additions & 1 deletion keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ operator:
# values:
# - keda-operator
# topologyKey: "kubernetes.io/hostname"
# -- Additional containers to run as part of the operator deployment
extraContainers: []
# -- Additional init containers to run as part of the operator deployment
extraInitContainers: []
# -- Liveness probes for operator ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/))
livenessProbe:
initialDelaySeconds: 25
Expand Down Expand Up @@ -756,7 +760,7 @@ certificates:
# my-secret-annotation-2: "bar"
# labels:
# my-secret-label: foo
# -- Reference to custom Issuer.
# -- Reference to custom Issuer. If issuer.generate is false, then issuer.group, issuer.kind and issuer.name are required
issuer:
# -- Generates an Issuer resource with Cert-manager
generate: true
Expand Down

0 comments on commit d155bd7

Please sign in to comment.