@@ -28,6 +28,7 @@ import (
2828 splutil "github.com/splunk/splunk-operator/pkg/splunk/util"
2929 appsv1 "k8s.io/api/apps/v1"
3030 corev1 "k8s.io/api/core/v1"
31+ "k8s.io/apimachinery/pkg/api/resource"
3132 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3233 "k8s.io/apimachinery/pkg/types"
3334)
@@ -205,6 +206,22 @@ func getMonitoringConsoleStatefulSet(client splcommon.ControllerClient, cr splco
205206 MountPath : "/opt/splunk/var" ,
206207 },
207208 },
209+ //Below requests/limits for MC are defined taking into account below EC2 validated architecture and its defined limits
210+ //1. https://www.splunk.com/pdfs/technical-briefs/deploying-splunk-enterprise-on-amazon-web-services-technical-brief.pdf
211+ //defines the validate architecture for License Master and Monitoring console i.e, c5.2xlarge
212+ //2. (c5.2xlarge) architecture req from https://aws.amazon.com/ec2/instance-types/c5/
213+ //defines that for c5.2xlarge architecture we need 8vCPU and 16Gi memory
214+ //since we only have MC here (as we have separate LM) so 4vCPU and 8Gi memory has been set as limit for MC pod
215+ Resources : corev1.ResourceRequirements {
216+ Requests : corev1.ResourceList {
217+ corev1 .ResourceCPU : resource .MustParse ("0.1" ),
218+ corev1 .ResourceMemory : resource .MustParse ("512Mi" ),
219+ },
220+ Limits : corev1.ResourceList {
221+ corev1 .ResourceCPU : resource .MustParse ("4" ),
222+ corev1 .ResourceMemory : resource .MustParse ("8Gi" ),
223+ },
224+ },
208225 },
209226 },
210227 Volumes : []corev1.Volume {
0 commit comments