Skip to content

Commit 4f14ac5

Browse files
committed
Increase init-container default memory limit due to being killed while copying files to the shared volume
1 parent 939caa0 commit 4f14ac5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

manifests/helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ operator:
6767
resources:
6868
limits:
6969
cpu: 100m
70-
memory: 64Mi
70+
memory: 256Mi
7171
ephemeralStorage: 1Gi # Needs to be greater than the size of the largest agent
7272
requests:
7373
cpu: 100m

src/Contrast.K8s.AgentOperator/Modules/OptionsModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected override void Load(ContainerBuilder builder)
111111
cpuLimit = cpuLimitStr;
112112
}
113113

114-
var memoryLimit = "64Mi";
114+
var memoryLimit = "256Mi";
115115
var memoryRequest = "64Mi";
116116
if (GetEnvironmentVariableAsString("CONTRAST_INITCONTAINER_MEMORY_REQUEST", out var memoryRequestStr))
117117
{

tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/StandardInjectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public async Task When_init_container_is_created_then_default_resource_limits_sh
216216

217217
resources.Should().NotBeNull();
218218
resources.Limits.Should().ContainKey("cpu").WhoseValue.Value.Should().Be("100m");
219-
resources.Limits.Should().ContainKey("memory").WhoseValue.Value.Should().Be("64Mi");
219+
resources.Limits.Should().ContainKey("memory").WhoseValue.Value.Should().Be("256Mi");
220220
resources.Requests.Should().ContainKey("cpu").WhoseValue.Value.Should().Be("100m");
221221
resources.Requests.Should().ContainKey("memory").WhoseValue.Value.Should().Be("64Mi");
222222
}

0 commit comments

Comments
 (0)