apiVersion: apps/v1
kind: Deployment
metadata:
  name: eks-api-gateway-demo
  labels:
    app: eks-api-gateway-demo
spec:
  replicas: 2 # You can adjust the number of replicas as needed
  selector:
    matchLabels:
      app: eks-api-gateway-demo
  template:
    metadata:
      labels:
        app: eks-api-gateway-demo
    spec:
      containers:
      - name: eks-api-gateway-demo
        image: YOUR_ECR_REPOSITORY_URI/eks-api-gateway-demo:latest # Replace with your ECR image URI
        ports:
        - containerPort: 8080
        resources:
          requests:
            cpu: "100m"
            memory: "128Mi"
          limits:
            cpu: "200m"
            memory: "256Mi"
---
apiVersion: v1
kind: Service
metadata:
  name: eks-api-gateway-demo-service
  labels:
    app: eks-api-gateway-demo
spec:
  selector:
    app: eks-api-gateway-demo
  ports:
    - protocol: TCP
      port: 80
      targetPort: 8080
  type: ClusterIP # Use ClusterIP for internal access within the EKS cluster
