diff --git a/operator/database/kinds/databases/managed/statefulset/adapt.go b/operator/database/kinds/databases/managed/statefulset/adapt.go index 3126d5fe1f..d596c691da 100644 --- a/operator/database/kinds/databases/managed/statefulset/adapt.go +++ b/operator/database/kinds/databases/managed/statefulset/adapt.go @@ -307,12 +307,12 @@ func getJoinExec(namespace string, name string, dbPort int, replicaCount int) st func getResources(resourcesSFS *k8s.Resources) corev1.ResourceRequirements { internalResources := corev1.ResourceRequirements{ Requests: corev1.ResourceList{ - "cpu": resource.MustParse("100m"), - "memory": resource.MustParse("512Mi"), + "cpu": resource.MustParse("1"), + "memory": resource.MustParse("6Gi"), }, Limits: corev1.ResourceList{ - "cpu": resource.MustParse("100m"), - "memory": resource.MustParse("512Mi"), + "cpu": resource.MustParse("4"), + "memory": resource.MustParse("8Gi"), }, } diff --git a/operator/database/kinds/databases/managed/statefulset/adapt_test.go b/operator/database/kinds/databases/managed/statefulset/adapt_test.go index 6ce1f9ec9f..d080b83bfe 100644 --- a/operator/database/kinds/databases/managed/statefulset/adapt_test.go +++ b/operator/database/kinds/databases/managed/statefulset/adapt_test.go @@ -49,12 +49,12 @@ func TestStatefulset_JoinExec2(t *testing.T) { func TestStatefulset_Resources0(t *testing.T) { equals := corev1.ResourceRequirements{ Requests: corev1.ResourceList{ - "cpu": resource.MustParse("100m"), - "memory": resource.MustParse("512Mi"), + "cpu": resource.MustParse("1"), + "memory": resource.MustParse("6Gi"), }, Limits: corev1.ResourceList{ - "cpu": resource.MustParse("100m"), - "memory": resource.MustParse("512Mi"), + "cpu": resource.MustParse("4"), + "memory": resource.MustParse("8Gi"), }, }