Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: default resource and scaling optimization #1754

Merged
merged 18 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/team-ns/templates/tekton-tasks/kaniko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ spec:
script: |
set -e
image="$(params.IMAGE)"
echo -n "${image}" | tee "$(results.IMAGE_URL.path)"
echo -n "${image}" | tee "$(results.IMAGE_URL.path)"
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ spec:
- name: tekton-events-controller
image: {{ .Values.events.deployment.image }}
args: []
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 1000Mi
resources: {{- toYaml .Values.events.resources | nindent 12 }}
volumeMounts:
- name: config-logging
mountPath: /etc/config-logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,7 @@ spec:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 1000Mi
resources: {{- toYaml .Values.controller.resources | nindent 12 }}
ports:
- name: metrics
containerPort: 9090
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ spec:
containers:
- name: controller
image: {{ .Values.remoteresolver.deployment.image }}
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 2Gi
resources: {{- toYaml .Values.remoteresolver.resources | nindent 12 }}
ports:
- name: metrics
containerPort: 9090
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ spec:
# and substituted here.
image: {{ .Values.webhook.deployment.image }}
# Resource request required for autoscaler to take any action for a metric
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
resources: {{- toYaml .Values.webhook.resources | nindent 12 }}
env:
- name: SYSTEM_NAMESPACE
valueFrom:
Expand Down
4 changes: 3 additions & 1 deletion charts/tekton-pipelines/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ webhook:
- windows
tolerations: []
nodeSelector: {}
resources: {}
# Values to amend tekton-pipelines-remote-resolvers
remoteresolver:
deployment:
Expand All @@ -65,4 +66,5 @@ remoteresolver:

events:
deployment:
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/events:v0.53.0@sha256:340e1edd0783bdb86e396ef53499f068a42da1986a1d806ab652b448869637bd
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/events:v0.53.0@sha256:340e1edd0783bdb86e396ef53499f068a42da1986a1d806ab652b448869637bd
resources: {}
2 changes: 2 additions & 0 deletions core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ k8s:
namespaces:
- name: argocd
app: argocd
disableIstioInjection: true
- name: cert-manager
disableIstioInjection: true
- name: cnpg-system
Expand Down Expand Up @@ -109,6 +110,7 @@ k8s:
- name: velero
app: velero
disablePolicyChecks: true
disableIstioInjection: true
- name: otomi-pipelines
app: tekton
disableIstioInjection: true
Expand Down
Loading