apiVersion: apps/v1
kind: Deployment
metadata:
  name: final-project
spec:
  replicas: 2
  selector:
    matchLabels:
      app: web-app
  template:
    metadata:
      labels:
        app: web-app
    spec:
      containers:
        - name: web-app
          image: jzhuo/ruby-app
          ports:
            - containerPort: 4567
          env:
            - name: mongo_service_host
              value: 'app-database'
            - name: mongo_service_port
              value: '27017'
