apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: frontend
    spec:
      containers:
      - name: frontend-app
        image: edonosotti/aws-eks-training-frontend:1.0.0
        env:
        - name: backend_service_host
          value: "backend"
        - name: backend_service_port
          value: "5000"
        livenessProbe:
          httpGet:
            path: /
            port: 4567
          initialDelaySeconds: 60
          periodSeconds: 5
          failureThreshold: 5
        resources:
          limits:
            cpu: 500m
          requests:
            cpu: 200m
