apiVersion: apps/v1
kind: Deployment
metadata:
  name: faouzi-webapp
  labels:
    app: faouzi-webapp
spec:
  replicas: 1
  selector:
    matchLabels:
      app: faouzi-webapp
  template:
    metadata:
      labels:
        app: faouzi-webapp
    spec:
      containers:
        - image: fbraza/webapp-v1
          name: node-app
          ports:
            - containerPort: 3000
          env:
            - name: REDIS_HOST
              value: "redis-service"
            - name: REDIS_PORT
              value: "6379"
