apiVersion: apps/v1
kind: Deployment
metadata:
  name: book-service
  labels:
    app: book-service
spec:
  replicas: 3
  selector:
    matchLabels:
      app: book-service
  template:
    metadata:
      labels:
        app: book-service
    spec:
      containers:
      - name: book-service
        image: quay.io/tkaufler/book-service:alpha
        imagePullPolicy: IfNotPresent
        command: [
          "./book-service",
          "--selector=static",
          "--server_address=:8880"
        ]
        env:
        - name: DB_HOST
          value: "mongo:27017"
        - name: UPDATED_AT
          value: "Mon 21 May 2018 13:10:45 GMT"
        ports:
        - containerPort: 8880
          name: book-port           
