File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
airbyte-workers/src/main/java/io/airbyte/workers/process Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,11 @@ public class KubePodProcess extends Process implements KubePod {
102
102
private static final String INIT_CONTAINER_NAME = "init" ;
103
103
private static final String DEFAULT_MEMORY_REQUEST = "25Mi" ;
104
104
private static final String DEFAULT_MEMORY_LIMIT = "50Mi" ;
105
+ private static final String DEFAULT_CPU_REQUEST = "0.1" ;
106
+ private static final String DEFAULT_CPU_LIMIT = "0.2" ;
105
107
private static final ResourceRequirements DEFAULT_SIDECAR_RESOURCES = new ResourceRequirements ()
106
- .withMemoryLimit (DEFAULT_MEMORY_LIMIT ).withMemoryRequest (DEFAULT_MEMORY_REQUEST );
108
+ .withMemoryLimit (DEFAULT_MEMORY_LIMIT ).withMemoryRequest (DEFAULT_MEMORY_REQUEST )
109
+ .withCpuLimit (DEFAULT_CPU_LIMIT ).withCpuRequest (DEFAULT_CPU_REQUEST );
107
110
108
111
private static final String PIPES_DIR = "/pipes" ;
109
112
private static final String STDIN_PIPE_FILE = PIPES_DIR + "/stdin" ;
@@ -176,6 +179,7 @@ private static Container getInit(final boolean usesStdin,
176
179
.withImage (busyboxImage )
177
180
.withWorkingDir (CONFIG_DIR )
178
181
.withCommand ("sh" , "-c" , initCommand )
182
+ .withResources (getResourceRequirementsBuilder (DEFAULT_SIDECAR_RESOURCES ).build ())
179
183
.withVolumeMounts (mainVolumeMounts )
180
184
.build ();
181
185
}
You can’t perform that action at this time.
0 commit comments