apiVersion: apps/v1
kind: Deployment
metadata:
  name: lemoncode-ejercicio-01-deployment
  labels:
    app: ejercicio-01-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ejercicio-01
  template:
    metadata:
      labels:
        app: ejercicio-01
    spec:
      containers:
      - name: ejercicio-01
        image: lemoncode-kubernetes-ejercicio-01
        imagePullPolicy: Never
        resources:
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
            cpu: "500m"
        ports:
        - containerPort: 80
        env:
          - name: NODE_ENV
            value: "development"
          - name: PORT
            value: "80"