apiVersion: apps/v1
kind: Deployment
metadata:
  name: optimized-example-app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: optimized-example-app
  template:
    metadata:
      labels:
        app: optimized-example-app
    spec:
      containers:
      - name: optimized-example-container
        image: optimized-example-image
        resources:
          requests:
            memory: "300Mi" # Adjusted based on baseline + buffer
            cpu: "750m"     # A slightly higher request based on average usage
          limits:
            memory: "600Mi" # Peak observed + buffer
            cpu: "1500m"    # Adjusted to provide headroom for peaks
