Skip to content

Commit fb6aa18

Browse files
authored
[prod] switch pipelines and remote resolver controllers to statefulSets (#5497)
1 parent ac21e5d commit fb6aa18

File tree

16 files changed

+188
-330
lines changed

16 files changed

+188
-330
lines changed

components/pipeline-service/production/base/main-pipeline-service-configuration.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -1507,19 +1507,6 @@ spec:
15071507
requests:
15081508
cpu: 100m
15091509
memory: 100Mi
1510-
tekton-pipelines-remote-resolvers:
1511-
spec:
1512-
replicas: 4
1513-
template:
1514-
spec:
1515-
containers:
1516-
- name: controller
1517-
resources:
1518-
limits:
1519-
memory: 8Gi
1520-
requests:
1521-
cpu: "500m"
1522-
memory: 8Gi
15231510
tekton-pipelines-webhook:
15241511
spec:
15251512
template:
@@ -1533,6 +1520,20 @@ spec:
15331520
requests:
15341521
cpu: 400m
15351522
memory: 1Gi
1523+
statefulSets:
1524+
tekton-pipelines-remote-resolvers:
1525+
spec:
1526+
replicas: 4
1527+
template:
1528+
spec:
1529+
containers:
1530+
- name: controller
1531+
resources:
1532+
limits:
1533+
memory: 8Gi
1534+
requests:
1535+
cpu: "500m"
1536+
memory: 8Gi
15361537
tekton-pipelines-controller:
15371538
spec:
15381539
template:
@@ -1595,6 +1596,7 @@ spec:
15951596
kube-api-qps: 50
15961597
replicas: 4
15971598
threads-per-controller: 32
1599+
statefulset-ordinals: true
15981600
platforms:
15991601
openshift:
16001602
pipelinesAsCode:

components/pipeline-service/production/kflux-ocp-p01/deploy.yaml

+34-32
Original file line numberDiff line numberDiff line change
@@ -2090,38 +2090,6 @@ spec:
20902090
requests:
20912091
cpu: 100m
20922092
memory: 100Mi
2093-
tekton-pipelines-controller:
2094-
spec:
2095-
template:
2096-
spec:
2097-
containers:
2098-
- name: tekton-pipelines-controller
2099-
resources:
2100-
limits:
2101-
memory: 12Gi
2102-
requests:
2103-
cpu: "1"
2104-
memory: 12Gi
2105-
topologySpreadConstraints:
2106-
- labelSelector:
2107-
matchLabels:
2108-
app: tekton-pipelines-controller
2109-
maxSkew: 1
2110-
topologyKey: topology.kubernetes.io/zone
2111-
whenUnsatisfiable: DoNotSchedule
2112-
tekton-pipelines-remote-resolvers:
2113-
spec:
2114-
replicas: 4
2115-
template:
2116-
spec:
2117-
containers:
2118-
- name: controller
2119-
resources:
2120-
limits:
2121-
memory: 8Gi
2122-
requests:
2123-
cpu: 500m
2124-
memory: 8Gi
21252093
tekton-pipelines-webhook:
21262094
spec:
21272095
template:
@@ -2171,12 +2139,46 @@ spec:
21712139
type: Utilization
21722140
type: Resource
21732141
minReplicas: 6
2142+
statefulSets:
2143+
tekton-pipelines-controller:
2144+
spec:
2145+
template:
2146+
spec:
2147+
containers:
2148+
- name: tekton-pipelines-controller
2149+
resources:
2150+
limits:
2151+
memory: 12Gi
2152+
requests:
2153+
cpu: "1"
2154+
memory: 12Gi
2155+
topologySpreadConstraints:
2156+
- labelSelector:
2157+
matchLabels:
2158+
app: tekton-pipelines-controller
2159+
maxSkew: 1
2160+
topologyKey: topology.kubernetes.io/zone
2161+
whenUnsatisfiable: DoNotSchedule
2162+
tekton-pipelines-remote-resolvers:
2163+
spec:
2164+
replicas: 4
2165+
template:
2166+
spec:
2167+
containers:
2168+
- name: controller
2169+
resources:
2170+
limits:
2171+
memory: 8Gi
2172+
requests:
2173+
cpu: 500m
2174+
memory: 8Gi
21742175
performance:
21752176
buckets: 8
21762177
disable-ha: false
21772178
kube-api-burst: 50
21782179
kube-api-qps: 50
21792180
replicas: 4
2181+
statefulset-ordinals: true
21802182
threads-per-controller: 32
21812183
platforms:
21822184
openshift:

components/pipeline-service/production/kflux-prd-rh02/deploy.yaml

+34-34
Original file line numberDiff line numberDiff line change
@@ -2121,40 +2121,6 @@ spec:
21212121
requests:
21222122
cpu: 100m
21232123
memory: 100Mi
2124-
tekton-pipelines-controller:
2125-
spec:
2126-
template:
2127-
spec:
2128-
containers:
2129-
- name: tekton-pipelines-controller
2130-
resources:
2131-
limits:
2132-
memory: 12Gi
2133-
requests:
2134-
cpu: "1"
2135-
memory: 12Gi
2136-
topologySpreadConstraints:
2137-
- labelSelector:
2138-
matchLabels:
2139-
app: tekton-pipelines-controller
2140-
maxSkew: 1
2141-
topologyKey: topology.kubernetes.io/zone
2142-
whenUnsatisfiable: DoNotSchedule
2143-
tekton-pipelines-remote-resolvers:
2144-
spec:
2145-
replicas: 4
2146-
template:
2147-
spec:
2148-
containers:
2149-
- args:
2150-
- --threads-per-controller=32
2151-
name: controller
2152-
resources:
2153-
limits:
2154-
memory: 8Gi
2155-
requests:
2156-
cpu: 500m
2157-
memory: 8Gi
21582124
tekton-pipelines-webhook:
21592125
spec:
21602126
template:
@@ -2204,12 +2170,46 @@ spec:
22042170
type: Utilization
22052171
type: Resource
22062172
minReplicas: 6
2173+
statefulSets:
2174+
tekton-pipelines-controller:
2175+
spec:
2176+
template:
2177+
spec:
2178+
containers:
2179+
- name: tekton-pipelines-controller
2180+
resources:
2181+
limits:
2182+
memory: 12Gi
2183+
requests:
2184+
cpu: "1"
2185+
memory: 12Gi
2186+
topologySpreadConstraints:
2187+
- labelSelector:
2188+
matchLabels:
2189+
app: tekton-pipelines-controller
2190+
maxSkew: 1
2191+
topologyKey: topology.kubernetes.io/zone
2192+
whenUnsatisfiable: DoNotSchedule
2193+
tekton-pipelines-remote-resolvers:
2194+
spec:
2195+
replicas: 4
2196+
template:
2197+
spec:
2198+
containers:
2199+
- name: controller
2200+
resources:
2201+
limits:
2202+
memory: 8Gi
2203+
requests:
2204+
cpu: 500m
2205+
memory: 8Gi
22072206
performance:
22082207
buckets: 8
22092208
disable-ha: false
22102209
kube-api-burst: 50
22112210
kube-api-qps: 50
22122211
replicas: 4
2212+
statefulset-ordinals: true
22132213
threads-per-controller: 32
22142214
platforms:
22152215
openshift:

components/pipeline-service/production/kflux-prd-rh02/resources/kustomization.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ patches:
2828
group: external-secrets.io
2929
version: v1beta1
3030
kind: ExternalSecret
31-
- path: osp-perf-resolvers.yaml
32-
target:
33-
name: config
34-
group: operator.tekton.dev
35-
version: v1alpha1
36-
kind: TektonConfig
3731
- path: pipelines-as-code-secret-path.yaml
3832
target:
3933
name: pipelines-as-code-secret

components/pipeline-service/production/kflux-prd-rh02/resources/osp-perf-resolvers.yaml

-13
This file was deleted.

components/pipeline-service/production/stone-prd-m01/deploy.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,7 @@ spec:
21612161
whenUnsatisfiable: DoNotSchedule
21622162
tekton-pipelines-remote-resolvers:
21632163
spec:
2164+
replicas: 4
21642165
template:
21652166
spec:
21662167
containers:

components/pipeline-service/production/stone-prd-m01/resources/kustomization.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,4 @@ patches:
2727
group: external-secrets.io
2828
version: v1beta1
2929
kind: ExternalSecret
30-
- path: osp-perf-resolvers.yaml
31-
target:
32-
name: config
33-
group: operator.tekton.dev
34-
version: v1alpha1
35-
kind: TektonConfig
36-
- path: osp-perf-statefulSets.yaml
37-
target:
38-
name: config
39-
group: operator.tekton.dev
40-
version: v1alpha1
41-
kind: TektonConfig
30+

components/pipeline-service/production/stone-prd-m01/resources/osp-perf-resolvers.yaml

-13
This file was deleted.

components/pipeline-service/production/stone-prd-m01/resources/osp-perf-statefulSets.yaml

-69
This file was deleted.

0 commit comments

Comments
 (0)