@@ -21,6 +21,14 @@ Configure resource quotas related to the [`Pipeline`](../apis/kubernetes_apis/op
2121- TektonConfig resources must have been automatically created in the environment
2222- The document on [ Adjusting Optional Configuration Items for Subcomponents] ( ./customize_options.mdx ) should be read
2323
24+ ## Resource Configuration Guidelines
25+
26+ Before configuring resource quotas:
27+ - Assess your cluster's available resources and capacity
28+ - Consider your workload characteristics and performance requirements
29+ - Start with conservative values and adjust based on monitoring data
30+ - Test configurations in non-production environments first
31+
2432## Steps
2533
2634<Steps >
@@ -54,116 +62,117 @@ spec:
5462 config-defaults :
5563 data :
5664 # Add default container resource quotas
65+ # Adjust the values below according to your cluster's resource capacity and workload requirements
5766 default-container-resource-requirements : |
5867 place-scripts: # updates resource requirements of a 'place-scripts' container
5968 requests:
60- memory: "64Mi "
61- cpu: "50m "
69+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
70+ cpu: "<CPU_REQUEST>" # e.g., "250m "
6271 limits:
63- memory: "128Mi "
64- cpu: "100m "
72+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
73+ cpu: "<CPU_LIMIT>" # e.g., "500m "
6574
6675 prepare: # updates resource requirements of a 'prepare' container
6776 requests:
68- memory: "64Mi "
69- cpu: "50m "
77+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
78+ cpu: "<CPU_REQUEST>" # e.g., "250m "
7079 limits:
71- memory: "256Mi"
72- cpu: "100m "
80+ memory: "<MEMORY_LIMIT>" # e.g., " 256Mi"
81+ cpu: "<CPU_LIMIT>" # e.g., "500m "
7382
7483 working-dir-initializer: # updates resource requirements of a 'working-dir-initializer' container
7584 requests:
76- memory: "64Mi "
77- cpu: "50m "
85+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
86+ cpu: "<CPU_REQUEST>" # e.g., "250m "
7887 limits:
79- memory: "512Mi"
80- cpu: "100m "
88+ memory: "<MEMORY_LIMIT>" # e.g., " 512Mi"
89+ cpu: "<CPU_LIMIT>" # e.g., "500m "
8190
8291 prefix-scripts: # updates resource requirements of containers which starts with 'scripts-'
8392 requests:
84- memory: "64Mi "
85- cpu: "50m "
93+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
94+ cpu: "<CPU_REQUEST>" # e.g., "250m "
8695 limits:
87- memory: "128Mi "
88- cpu: "100m "
96+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
97+ cpu: "<CPU_LIMIT>" # e.g., "500m "
8998
9099 prefix-sidecar-scripts: # updates resource requirements of containers which starts with 'sidecar-scripts-'
91100 requests:
92- memory: "64Mi "
93- cpu: "50m "
101+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
102+ cpu: "<CPU_REQUEST>" # e.g., "250m "
94103 limits:
95- memory: "128Mi "
96- cpu: "100m "
104+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
105+ cpu: "<CPU_LIMIT>" # e.g., "500m "
97106
98- sidecar-tekton-log-results: # updates resource requirements of a 'place-scripts ' container
107+ sidecar-tekton-log-results: # updates resource requirements of a 'sidecar-tekton-log-results ' container
99108 requests:
100- memory: "64Mi "
101- cpu: "50m "
109+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
110+ cpu: "<CPU_REQUEST>" # e.g., "100m "
102111 limits:
103- memory: "128Mi "
104- cpu: "100m "
112+ memory: "<MEMORY_LIMIT>" # e.g., "256Mi "
113+ cpu: "<CPU_LIMIT>" # e.g., "250m "
105114
106115 deployments :
107-
116+ # Adjust the resource values below according to your cluster's capacity and performance requirements
108117 tekton-pipelines-controller :
109118 spec :
110- replicas : 1
119+ replicas : <REPLICA_COUNT> # e.g., 1
111120 template :
112121 spec :
113122 containers :
114123 - name : tekton-pipelines-controller
115124 resources :
116125 requests :
117- cpu : 500m
118- memory : 512Mi
126+ cpu : <CPU_REQUEST> # e.g., " 500m"
127+ memory : <MEMORY_REQUEST> # e.g., " 512Mi"
119128 limits :
120- cpu : " 1"
121- memory : 1Gi
129+ cpu : <CPU_LIMIT> # e.g., "1"
130+ memory : <MEMORY_LIMIT> # e.g., " 1Gi"
122131
123132 tekton-pipelines-remote-resolvers :
124133 spec :
125- replicas : 1
134+ replicas : <REPLICA_COUNT> # e.g., 1
126135 template :
127136 spec :
128137 containers :
129138 - name : controller
130139 resources :
131140 requests :
132- cpu : 200m
133- memory : 256Mi
141+ cpu : <CPU_REQUEST> # e.g., " 200m"
142+ memory : <MEMORY_REQUEST> # e.g., " 256Mi"
134143 limits :
135- cpu : 500m
136- memory : 512Mi
144+ cpu : <CPU_LIMIT> # e.g., " 500m"
145+ memory : <MEMORY_LIMIT> # e.g., " 512Mi"
137146
138147 tekton-pipelines-webhook :
139148 spec :
140- replicas : 1
149+ replicas : <REPLICA_COUNT> # e.g., 1
141150 template :
142151 spec :
143152 containers :
144153 - name : webhook
145154 resources :
146155 requests :
147- cpu : " 500m"
148- memory : 256Mi
156+ cpu : <CPU_REQUEST> # e.g., "500m"
157+ memory : <MEMORY_REQUEST> # e.g., " 256Mi"
149158 limits :
150- cpu : " 1"
151- memory : 500Mi
159+ cpu : <CPU_LIMIT> # e.g., "1"
160+ memory : <MEMORY_LIMIT> # e.g., " 500Mi"
152161
153162 tekton-events-controller :
154163 spec :
155- replicas : 1
164+ replicas : <REPLICA_COUNT> # e.g., 1
156165 template :
157166 spec :
158167 containers :
159168 - name : tekton-events-controller
160169 resources :
161170 requests :
162- cpu : 100m
163- memory : 100Mi
171+ cpu : <CPU_REQUEST> # e.g., " 100m"
172+ memory : <MEMORY_REQUEST> # e.g., " 100Mi"
164173 limits :
165- cpu : 200m
166- memory : 256Mi
174+ cpu : <CPU_LIMIT> # e.g., " 200m"
175+ memory : <MEMORY_LIMIT> # e.g., " 256Mi"
167176` ` `
168177
169178### Step 3
0 commit comments