---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: gaeimporter
spec:
  replicas: 1
  selector:
    matchLabels:
      app: thegym
      component: gaeimporter
      version: 0.0.1     
  template:
    metadata:
      name: gaeimporter
      labels:
        app: thegym
        component: gaeimporter
        version: 0.0.1   
    spec:
      containers:
      - name: gaeimporter
        image: eu.gcr.io/esiemes-default/gaeimporter
        imagePullPolicy: Always
        env:
        - name: PORT
          value: "80"
        - name: APPDEF
          value: "{'name':'The Gym','showLocation':'true','fields':[{'name':'heartrate','pivot':'true','type':'Integer'},{'name':'user','pivot':false,'type':'String'},{'name':'deviceid','pivot':false,'type':'String'},{'name':'color','pivot':false,'type':'String'},{'name':'id','pivot':'false','type':'Long'},{'name':'location','pivot':'false','type':'Location'},{'name':'event_timestamp','pivot':'false','type':'Date/time'}],'transformer':'%0A%09result%3D%20rawtext%3B%0A%09%09%09%09%09%0A%09%09%09%09%09','topic':'hr','table':'hr','keyspace':'thegym','path':'thegym','creator':'','dockerrepo':'','img':'','vis':'','dash':'','hideloader':'true'}"
        - name: LISTENER
          value: http://messagelistener/data
        - name: APPDIR
          value: /opt/app
        ports:
        - containerPort: 80
