apiVersion: apps/v1
kind: Deployment
metadata:
  name: resource-limited-application
spec:
  replicas: 2
  selector:
    matchLabels:
      app: resource-limited
  template:
    metadata:
      labels:
        app: resource-limited
    spec:
      containers:
      - name: application-container
        image: application-image:latest
        resources:
          requests:
            cpu: "500m"
            memory: "1Gi"
          limits:
            cpu: "1"    # Maximum CPU the container is allowed to use
            memory: "2Gi" # Maximum memory the container is allowed to use
