apiVersion: apps/v1
kind: Deployment
metadata:
  name: worker-deployment
  labels:
    app: worker
spec:
  replicas: 1
  selector:
    matchLabels:
      app: worker
  template:
    metadata:
      labels:
        app: worker
    spec:
      containers:
      - name: worker
        image: subfuzion/vote-worker
        env:
        - name: DATABASE_HOST
          value: "database.default.svc.cluster.local"
        - name: DATABASE_PORT
          value: "27017"
        - name: QUEUE_HOST
          value: "queue.default.svc.cluster.local"
        - name: QUEUE_PORT
          value: "6379"
