apiVersion: apps/v1
kind: Deployment
metadata:
  name: winer
  labels:
    app: winer
  namespace: nlpworkers
spec:
  replicas: 1
  selector:
    matchLabels:
      app: winer
  template:
    metadata:
      labels:
        app: winer
    spec:
      containers:
      - name: winer
        image: clarinpl/$CI_PROJECT_NAME:latest
        imagePullPolicy: Always
        volumeMounts:
        - name: config
          mountPath: /home/worker/config.ini
          subPath: config.ini
        - name: samba
          mountPath: /samba
        - name: models
          mountPath: /home/worker/models/
      volumes:
      - name: config
        configMap:
          name: winer-config-ini
      - name: samba
        hostPath:
          path: /samba
          type: ""
      - name: models
        hostPath:
          path: /tmp/winer-models
          type: DirectoryOrCreate
        
