apiVersion: v1
kind: ReplicationController
metadata:
  labels:
    name: asrmaster
  name: asrmaster-controller
spec:
  replicas: 1
  selector:
    name: asrmaster
  template:
    metadata:
      labels:
        name: asrmaster
    spec:
      containers:
      - image: ybga/lucida_asr
        command: ['/bin/sh', '-c']
        args: ['export WSS=True && source python_2_7_9/bin/activate && python kaldigstserver/master_server.py --port=8081']
        name: asrmaster
        ports:
        - containerPort: 8081
          name: http-server
        volumeMounts:
          - mountPath: /etc/letsencrypt/live/host
            name: asrmaster-ssl
            readOnly: false
      volumes:
        - hostPath:
            # Modify it to be the path to your SSL certificates generated by letsencrypt.
            # Make sure the following files exist in that path: cert1.pem and privkey1.pem.
            path: /etc/letsencrypt/archive/clarity13.eecs.umich.edu
          name: asrmaster-ssl
