@@ -21,6 +21,14 @@ Configure resource quotas related to the [`Pipeline`](../apis/kubernetes_apis/op
21
21
- TektonConfig resources must have been automatically created in the environment
22
22
- The document on [ Adjusting Optional Configuration Items for Subcomponents] ( ./customize_options.mdx ) should be read
23
23
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
+
24
32
## Steps
25
33
26
34
<Steps >
@@ -54,116 +62,117 @@ spec:
54
62
config-defaults :
55
63
data :
56
64
# Add default container resource quotas
65
+ # Adjust the values below according to your cluster's resource capacity and workload requirements
57
66
default-container-resource-requirements : |
58
67
place-scripts: # updates resource requirements of a 'place-scripts' container
59
68
requests:
60
- memory: "64Mi "
61
- cpu: "50m "
69
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
70
+ cpu: "<CPU_REQUEST>" # e.g., "250m "
62
71
limits:
63
- memory: "128Mi "
64
- cpu: "100m "
72
+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
73
+ cpu: "<CPU_LIMIT>" # e.g., "500m "
65
74
66
75
prepare: # updates resource requirements of a 'prepare' container
67
76
requests:
68
- memory: "64Mi "
69
- cpu: "50m "
77
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
78
+ cpu: "<CPU_REQUEST>" # e.g., "250m "
70
79
limits:
71
- memory: "256Mi"
72
- cpu: "100m "
80
+ memory: "<MEMORY_LIMIT>" # e.g., " 256Mi"
81
+ cpu: "<CPU_LIMIT>" # e.g., "500m "
73
82
74
83
working-dir-initializer: # updates resource requirements of a 'working-dir-initializer' container
75
84
requests:
76
- memory: "64Mi "
77
- cpu: "50m "
85
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
86
+ cpu: "<CPU_REQUEST>" # e.g., "250m "
78
87
limits:
79
- memory: "512Mi"
80
- cpu: "100m "
88
+ memory: "<MEMORY_LIMIT>" # e.g., " 512Mi"
89
+ cpu: "<CPU_LIMIT>" # e.g., "500m "
81
90
82
91
prefix-scripts: # updates resource requirements of containers which starts with 'scripts-'
83
92
requests:
84
- memory: "64Mi "
85
- cpu: "50m "
93
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
94
+ cpu: "<CPU_REQUEST>" # e.g., "250m "
86
95
limits:
87
- memory: "128Mi "
88
- cpu: "100m "
96
+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
97
+ cpu: "<CPU_LIMIT>" # e.g., "500m "
89
98
90
99
prefix-sidecar-scripts: # updates resource requirements of containers which starts with 'sidecar-scripts-'
91
100
requests:
92
- memory: "64Mi "
93
- cpu: "50m "
101
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
102
+ cpu: "<CPU_REQUEST>" # e.g., "250m "
94
103
limits:
95
- memory: "128Mi "
96
- cpu: "100m "
104
+ memory: "<MEMORY_LIMIT>" # e.g., "512Mi "
105
+ cpu: "<CPU_LIMIT>" # e.g., "500m "
97
106
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
99
108
requests:
100
- memory: "64Mi "
101
- cpu: "50m "
109
+ memory: "<MEMORY_REQUEST>" # e.g., "128Mi "
110
+ cpu: "<CPU_REQUEST>" # e.g., "100m "
102
111
limits:
103
- memory: "128Mi "
104
- cpu: "100m "
112
+ memory: "<MEMORY_LIMIT>" # e.g., "256Mi "
113
+ cpu: "<CPU_LIMIT>" # e.g., "250m "
105
114
106
115
deployments :
107
-
116
+ # Adjust the resource values below according to your cluster's capacity and performance requirements
108
117
tekton-pipelines-controller :
109
118
spec :
110
- replicas : 1
119
+ replicas : <REPLICA_COUNT> # e.g., 1
111
120
template :
112
121
spec :
113
122
containers :
114
123
- name : tekton-pipelines-controller
115
124
resources :
116
125
requests :
117
- cpu : 500m
118
- memory : 512Mi
126
+ cpu : <CPU_REQUEST> # e.g., " 500m"
127
+ memory : <MEMORY_REQUEST> # e.g., " 512Mi"
119
128
limits :
120
- cpu : " 1"
121
- memory : 1Gi
129
+ cpu : <CPU_LIMIT> # e.g., "1"
130
+ memory : <MEMORY_LIMIT> # e.g., " 1Gi"
122
131
123
132
tekton-pipelines-remote-resolvers :
124
133
spec :
125
- replicas : 1
134
+ replicas : <REPLICA_COUNT> # e.g., 1
126
135
template :
127
136
spec :
128
137
containers :
129
138
- name : controller
130
139
resources :
131
140
requests :
132
- cpu : 200m
133
- memory : 256Mi
141
+ cpu : <CPU_REQUEST> # e.g., " 200m"
142
+ memory : <MEMORY_REQUEST> # e.g., " 256Mi"
134
143
limits :
135
- cpu : 500m
136
- memory : 512Mi
144
+ cpu : <CPU_LIMIT> # e.g., " 500m"
145
+ memory : <MEMORY_LIMIT> # e.g., " 512Mi"
137
146
138
147
tekton-pipelines-webhook :
139
148
spec :
140
- replicas : 1
149
+ replicas : <REPLICA_COUNT> # e.g., 1
141
150
template :
142
151
spec :
143
152
containers :
144
153
- name : webhook
145
154
resources :
146
155
requests :
147
- cpu : " 500m"
148
- memory : 256Mi
156
+ cpu : <CPU_REQUEST> # e.g., "500m"
157
+ memory : <MEMORY_REQUEST> # e.g., " 256Mi"
149
158
limits :
150
- cpu : " 1"
151
- memory : 500Mi
159
+ cpu : <CPU_LIMIT> # e.g., "1"
160
+ memory : <MEMORY_LIMIT> # e.g., " 500Mi"
152
161
153
162
tekton-events-controller :
154
163
spec :
155
- replicas : 1
164
+ replicas : <REPLICA_COUNT> # e.g., 1
156
165
template :
157
166
spec :
158
167
containers :
159
168
- name : tekton-events-controller
160
169
resources :
161
170
requests :
162
- cpu : 100m
163
- memory : 100Mi
171
+ cpu : <CPU_REQUEST> # e.g., " 100m"
172
+ memory : <MEMORY_REQUEST> # e.g., " 100Mi"
164
173
limits :
165
- cpu : 200m
166
- memory : 256Mi
174
+ cpu : <CPU_LIMIT> # e.g., " 200m"
175
+ memory : <MEMORY_LIMIT> # e.g., " 256Mi"
167
176
` ` `
168
177
169
178
### Step 3
0 commit comments