-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
juri
committed
Nov 21, 2024
1 parent
0e3ce4e
commit 27d0fc2
Showing
19 changed files
with
166 additions
and
20 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 |
---|---|---|
|
@@ -39,6 +39,10 @@ command: | |
- "-c" | ||
- "sleep 60" | ||
environment: | ||
variables: | ||
PORT: "8080" | ||
ports: | ||
- containerPort: 8080 | ||
``` | ||
|
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
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
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,89 @@ | ||
{{- define "base.keda" -}} | ||
{{- if .Values.keda.enabled }} | ||
{{- $labels := include "base.labels" . }} | ||
{{- $keda := .Values.keda }} | ||
--- | ||
apiVersion: {{ .Values.keda.apiVersion | default "keda.sh/v1alpha1" }} | ||
kind: ScaledObject | ||
metadata: | ||
name: {{ include "base.fullname" . }} | ||
labels: | ||
{{- $labels | trim | nindent 4 }} | ||
{{- with .Values.keda.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
scaleTargetRef: | ||
{{- if .Values.argo.rollouts.enabled }} | ||
apiVersion: {{ coalesce .Values.keda.scaleTargetRef.apiVersion .Values.argo.rollouts.apiVersion }} | ||
kind: {{ coalesce .Values.keda.scaleTargetRef.kind .Values.argo.rollouts.kind }} | ||
{{- else }} | ||
apiVersion: {{ coalesce .Values.keda.scaleTargetRef.apiVersion .Values.apiVersion "apps/v1" }} | ||
kind: {{ coalesce .Values.keda.scaleTargetRef.kind .Values.kind "Deployment" }} | ||
{{- end }} | ||
name: {{ .Values.keda.scaleTargetRef.name | default (include "base.fullname" .) }} | ||
{{- if .Values.keda.scaleTargetRef.envSourceContainerName }} | ||
envSourceContainerName: {{ .Values.keda.scaleTargetRef.envSourceContainerName }} | ||
{{- end }} | ||
pollingInterval: {{ .Values.keda.pollingInterval | default 30 }} | ||
cooldownPeriod: {{ .Values.keda.cooldownPeriod | default 300 }} | ||
idleReplicaCount: {{ .Values.keda.idleReplicaCount | default 0 }} | ||
minReplicaCount: {{ .Values.keda.minReplicaCount | default 0 }} | ||
maxReplicaCount: {{ .Values.keda.maxReplicaCount | default 100 }} | ||
{{- with .Values.keda.fallback }} | ||
fallback: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.keda.advanced }} | ||
advanced: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.keda.triggers }} | ||
triggers: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
|
||
{{- if or .Values.keda.TriggerAuthentication .Values.keda.ClusterTriggerAuthentication }} | ||
{{- range .Values.keda.TriggerAuthentication }} | ||
--- | ||
apiVersion: {{ $keda.apiVersion | default "keda.sh/v1alpha1" }} | ||
kind: TriggerAuthentication | ||
metadata: | ||
name: {{ .name }} | ||
{{- with .labels }} | ||
labels: | ||
{{- $labels | trim | nindent 4 }} | ||
{{- end }} | ||
{{- with .annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .spec }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- range .Values.keda.ClusterTriggerAuthentication }} | ||
--- | ||
apiVersion: {{ $keda.apiVersion | default "keda.sh/v1alpha1" }} | ||
kind: ClusterTriggerAuthentication | ||
metadata: | ||
name: {{ .name }} | ||
{{- with .labels }} | ||
labels: | ||
{{- $labels | trim | nindent 4 }} | ||
{{- end }} | ||
{{- with .annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .spec }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- end }} | ||
{{- 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
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
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