Skip to content

Commit 938ac7d

Browse files
feat: configurable core apps resources and scaling optimization (#1754)
Co-authored-by: Jehoszafat Zimnowoda <[email protected]>
1 parent 9eedbab commit 938ac7d

22 files changed

+242
-190
lines changed

charts/team-ns/templates/tekton-tasks/kaniko.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ spec:
7979
script: |
8080
set -e
8181
image="$(params.IMAGE)"
82-
echo -n "${image}" | tee "$(results.IMAGE_URL.path)"
82+
echo -n "${image}" | tee "$(results.IMAGE_URL.path)"

charts/tekton-pipelines/templates/deployment-tekton-events-controller.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@ spec:
6363
- name: tekton-events-controller
6464
image: {{ .Values.events.deployment.image }}
6565
args: []
66-
resources:
67-
requests:
68-
cpu: 100m
69-
memory: 100Mi
70-
limits:
71-
cpu: 1000m
72-
memory: 1000Mi
66+
resources: {{- toYaml .Values.events.resources | nindent 12 }}
7367
volumeMounts:
7468
- name: config-logging
7569
mountPath: /etc/config-logging

charts/tekton-pipelines/templates/deployment-tekton-pipelines-controller.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,7 @@ spec:
122122
runAsNonRoot: true
123123
seccompProfile:
124124
type: RuntimeDefault
125-
resources:
126-
requests:
127-
cpu: 100m
128-
memory: 100Mi
129-
limits:
130-
cpu: 1000m
131-
memory: 1000Mi
125+
resources: {{- toYaml .Values.controller.resources | nindent 12 }}
132126
ports:
133127
- name: metrics
134128
containerPort: 9090

charts/tekton-pipelines/templates/deployment-tekton-pipelines-remote-resolvers.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ spec:
6464
containers:
6565
- name: controller
6666
image: {{ .Values.remoteresolver.deployment.image }}
67-
resources:
68-
requests:
69-
cpu: 100m
70-
memory: 100Mi
71-
limits:
72-
cpu: 1000m
73-
memory: 2Gi
67+
resources: {{- toYaml .Values.remoteresolver.resources | nindent 12 }}
7468
ports:
7569
- name: metrics
7670
containerPort: 9090

charts/tekton-pipelines/templates/deployment-tekton-pipelines-webhook.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ spec:
7878
# and substituted here.
7979
image: {{ .Values.webhook.deployment.image }}
8080
# Resource request required for autoscaler to take any action for a metric
81-
resources:
82-
requests:
83-
cpu: 100m
84-
memory: 100Mi
85-
limits:
86-
cpu: 500m
87-
memory: 500Mi
81+
resources: {{- toYaml .Values.webhook.resources | nindent 12 }}
8882
env:
8983
- name: SYSTEM_NAMESPACE
9084
valueFrom:

charts/tekton-pipelines/values.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ webhook:
4848
- windows
4949
tolerations: []
5050
nodeSelector: {}
51+
resources: {}
5152
# Values to amend tekton-pipelines-remote-resolvers
5253
remoteresolver:
5354
deployment:
@@ -65,4 +66,5 @@ remoteresolver:
6566

6667
events:
6768
deployment:
68-
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/events:v0.53.0@sha256:340e1edd0783bdb86e396ef53499f068a42da1986a1d806ab652b448869637bd
69+
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/events:v0.53.0@sha256:340e1edd0783bdb86e396ef53499f068a42da1986a1d806ab652b448869637bd
70+
resources: {}

core.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ k8s:
33
namespaces:
44
- name: argocd
55
app: argocd
6+
disableIstioInjection: true
67
- name: cert-manager
78
disableIstioInjection: true
89
- name: cnpg-system
@@ -109,6 +110,7 @@ k8s:
109110
- name: velero
110111
app: velero
111112
disablePolicyChecks: true
113+
disableIstioInjection: true
112114
- name: otomi-pipelines
113115
app: tekton
114116
disableIstioInjection: true

0 commit comments

Comments
 (0)