parent
e19d386acd
commit
cd2d0341a7
2 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,7 @@ class KubernetesExecutor(BuilderExecutor):
|
|||
|
||||
def _job_resource(self, build_uuid, user_data, coreos_channel='stable'):
|
||||
vm_memory_limit = self.executor_config.get('VM_MEMORY_LIMIT', '8G')
|
||||
vm_volume_size = self.executor_config.get('VOLUME_SIZE', '32G')
|
||||
|
||||
# Max values for this container
|
||||
container_limits = {
|
||||
|
@ -375,6 +376,7 @@ class KubernetesExecutor(BuilderExecutor):
|
|||
'env': [
|
||||
{'name': 'USERDATA', 'value': user_data},
|
||||
{'name': 'VM_MEMORY', 'value': vm_memory_limit},
|
||||
{'name': 'VM_VOLUME_SIZE', 'value': vm_volume_size},
|
||||
],
|
||||
'limits' : container_limits,
|
||||
'requests' : container_requests,
|
||||
|
|
Reference in a new issue