apiVersion: apps/v1
kind: Deployment
metadata:
  name: pizza-express
spec:
  selector:
    matchLabels:
      app: pizza-express
  replicas: 2
  template:
    metadata:
      labels:
        app: pizza-express
    spec:
      containers:
      - name: pizza-express
        image: yardenshoham/pizza-express
        env:
          - name: REDIS_HOST
            value: redis-master
        readinessProbe:
          httpGet:
            path: /
            port: http
        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"
        ports:
        - containerPort: 8081
          name: http
