apiVersion: apps/v1
kind: Deployment
metadata:
  name: resto-demo-app-worker-dish
spec:
  selector:
    matchLabels:
      app: resto-demo-app-worker-dish
  template:
    metadata:
      labels:
        app: resto-demo-app-worker-dish
    spec:
      containers:
      - name: resto-demo-app-worker
        image: ludovicm67/resto-demo-app-worker
        resources:
          requests:
            memory: "30Mi"
            cpu: "1m"
          limits:
            memory: "75Mi"
            cpu: "50m"
        env:
        - name: WORKER_NAME
          value: dish
        - name: WORKER_DURATION
          value: "20"
        - name: REDIS_HOST
          value: redis
        - name: REDIS_PORT
          value: "6379"
        ports:
        - containerPort: 80
