Skip to content
Snippets Groups Projects
Commit 3c41979d authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros Committed by Carina Antunes
Browse files

Clone job: increase memory limit (OOMKilled)

parent 04d30b68
No related branches found
No related tags found
1 merge request!205Clone job: increase memory limit (OOMKilled)
...@@ -60,6 +60,7 @@ const ( ...@@ -60,6 +60,7 @@ const (
webDAVDefaultLogin string = "admin" webDAVDefaultLogin string = "admin"
// Variable to set the used Memory for all Jobs generated by the Operator // Variable to set the used Memory for all Jobs generated by the Operator
jobMemoryRequest string = "512Mi" jobMemoryRequest string = "512Mi"
jobMemoryLimit string = "4Gi"
) )
var ( var (
...@@ -1481,6 +1482,14 @@ func jobForDrupalSiteClone(currentobject *batchv1.Job, databaseSecret string, d ...@@ -1481,6 +1482,14 @@ func jobForDrupalSiteClone(currentobject *batchv1.Job, databaseSecret string, d
Name: "dest-clone", Name: "dest-clone",
ImagePullPolicy: "Always", ImagePullPolicy: "Always",
Command: cloneSource(emptyDir + "dbBackUp.sql"), Command: cloneSource(emptyDir + "dbBackUp.sql"),
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse(jobMemoryRequest),
},
Limits: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse(jobMemoryLimit),
},
},
Env: []corev1.EnvVar{ Env: []corev1.EnvVar{
{ {
Name: "DRUPAL_SHARED_VOLUME", Name: "DRUPAL_SHARED_VOLUME",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment