Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add a way to deploy without KEDA installed
Doc: Replace "null" values by their exact representations on the "values.yaml"
- Loading branch information
Showing
6 changed files
with
151 additions
and
214 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{- if not (and (.Values.autoscaling.enabled) (.Capabilities.APIVersions.Has "keda.sh/v1alpha1")) }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "this.fullname" . }}-{{ .Release.Revision }} | ||
labels: | ||
{{- include "this.labels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "this.selectorLabels" . | nindent 6 }} | ||
replicas: {{ .Values.replicaCount | int | required "A value for .Values.replicaCount is required" }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "this.selectorLabels" . | nindent 8 }} | ||
annotations: | ||
# Cluster autoscaler never evicts this Pod | ||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false" | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
# The pod will shut down at each run, we need to restart it | ||
restartPolicy: Always | ||
{{- include "this.podSharedTemplate" . | nindent 6 }} | ||
{{- end }} |
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
Oops, something went wrong.