From 1dd695ae7f874b8c19b9da436e2e8553afc9a8fc Mon Sep 17 00:00:00 2001 From: kashok-splunk <51301856+kashok-splunk@users.noreply.github.com> Date: Mon, 22 Mar 2021 16:58:38 -0700 Subject: [PATCH] Revert "CSPL-555 Adding resource requests/limits for MC" --- pkg/splunk/enterprise/monitoringconsole.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/splunk/enterprise/monitoringconsole.go b/pkg/splunk/enterprise/monitoringconsole.go index d65094540..8cb2fb0be 100644 --- a/pkg/splunk/enterprise/monitoringconsole.go +++ b/pkg/splunk/enterprise/monitoringconsole.go @@ -28,7 +28,6 @@ import ( splutil "github.com/splunk/splunk-operator/pkg/splunk/util" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) @@ -206,22 +205,6 @@ func getMonitoringConsoleStatefulSet(client splcommon.ControllerClient, cr splco MountPath: "/opt/splunk/var", }, }, - //Below requests/limits for MC are defined taking into account below EC2 validated architecture and its defined limits - //1. https://www.splunk.com/pdfs/technical-briefs/deploying-splunk-enterprise-on-amazon-web-services-technical-brief.pdf - //defines the validate architecture for License Master and Monitoring console i.e, c5.2xlarge - //2. (c5.2xlarge) architecture req from https://aws.amazon.com/ec2/instance-types/c5/ - //defines that for c5.2xlarge architecture we need 8vCPU and 16Gi memory - //since we only have MC here (as we have separate LM) so 4vCPU and 8Gi memory has been set as limit for MC pod - Resources: corev1.ResourceRequirements{ - Requests: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("0.1"), - corev1.ResourceMemory: resource.MustParse("512Mi"), - }, - Limits: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("4"), - corev1.ResourceMemory: resource.MustParse("8Gi"), - }, - }, }, }, Volumes: []corev1.Volume{