diff --git a/config.ini b/config.ini index 284524556ac7624660962bb8d6db7da28ef41903..beb8c9a79371bcbd99515a372379940aeda7b758 100755 --- a/config.ini +++ b/config.ini @@ -1,6 +1,5 @@ [service] tool = wordifier - root = /samba/requests/ rabbit_host = rabbitmq rabbit_user = test @@ -8,13 +7,8 @@ rabbit_password = test queue_prefix = nlp_ [tool] -workers_number = 5 -processed_lines = 1000 +workers_number = 2 [logging] port = 9998 -local_log_level = INFO - -[logging_levels] -__main__ = INFO - +local_log_level = INFO \ No newline at end of file diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a01efea6257f65fa610d316c794ca5a1e2717a4b --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,57 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: wordifier + name: wordifier + namespace: nlpworkers +spec: + replicas: 1 + selector: + matchLabels: + app: wordifier + template: + metadata: + labels: + app: wordifier + spec: + containers: + - image: clarinpl/wordifier:latest + name: wordifier + volumeMounts: + - name: samba + mountPath: /samba + - name: config + mountPath: /home/worker/config.ini + subPath: config.ini + volumes: + - name: samba + hostPath: + path: /samba + type: "" + - name: config + configMap: + name: wordifier-config-ini + +--- +apiVersion: v1 +data: + config.ini: |- + [service] + tool = wordifier + root = /samba/requests/ + rabbit_host = rabbit_host + rabbit_user = rabbit_user + rabbit_password = rabbit_password + queue_prefix = nlp_ + + [tool] + workers_number = 2 + + [logging] + port = 9998 + local_log_level = INFO +kind: ConfigMap +metadata: + name: wordifier-config-ini + namespace: nlpworkers