Skip to content

Commit c57c681

Browse files
committed
Set memory limits for agents' Openshift deployments
1 parent 27f172a commit c57c681

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

openshift/deployment-backport-agent-c10s.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ spec:
4545
ports:
4646
- containerPort: 8080
4747
protocol: TCP
48-
# TODO: add limits on cpu and memory.
49-
resources: {}
48+
resources:
49+
limits:
50+
memory: 4Gi
5051
terminationMessagePath: /dev/termination-log
5152
terminationMessagePolicy: File
5253
volumeMounts:

openshift/deployment-backport-agent-c9s.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ spec:
4545
ports:
4646
- containerPort: 8080
4747
protocol: TCP
48-
# TODO: add limits on cpu and memory.
49-
resources: {}
48+
resources:
49+
limits:
50+
memory: 4Gi
5051
terminationMessagePath: /dev/termination-log
5152
terminationMessagePolicy: File
5253
volumeMounts:

openshift/deployment-rebase-agent-c10s.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ spec:
4646
ports:
4747
- containerPort: 8080
4848
protocol: TCP
49-
# TODO: add limits on cpu and memory.
50-
resources: {}
49+
resources:
50+
limits:
51+
memory: 1Gi
5152
terminationMessagePath: /dev/termination-log
5253
terminationMessagePolicy: File
5354
volumeMounts:

openshift/deployment-rebase-agent-c9s.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ spec:
4646
ports:
4747
- containerPort: 8080
4848
protocol: TCP
49-
# TODO: add limits on cpu and memory.
50-
resources: {}
49+
resources:
50+
limits:
51+
memory: 1Gi
5152
terminationMessagePath: /dev/termination-log
5253
terminationMessagePolicy: File
5354
volumeMounts:

openshift/deployment-triage-agent.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ spec:
4444
ports:
4545
- containerPort: 8080
4646
protocol: TCP
47-
# TODO: add limits on cpu and memory.
48-
resources: {}
47+
resources:
48+
limits:
49+
memory: 1Gi
4950
terminationMessagePath: /dev/termination-log
5051
terminationMessagePolicy: File
5152
volumeMounts:

0 commit comments

Comments
 (0)