diff --git a/_deploy/k8s/deployment.yaml b/_deploy/k8s/deployment.yaml index 07e35eb..b1623d9 100644 --- a/_deploy/k8s/deployment.yaml +++ b/_deploy/k8s/deployment.yaml @@ -163,10 +163,20 @@ spec: key: mariadb-root-password - name: ConnectionStrings__TextMatcherContext value: "server=$(mariadb_host);port=3306;database=$(mariadb_database);uid=$(mariadb_user);pwd=$(mariadb_password)" -# -# SERVICE FOR text-matcher -# -## +--- +apiVersion: v1 +kind: Service +metadata: + name: text-matcher-service + namespace: nocr +spec: + selector: + app: text-matcher + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: NodePort # Change the service type to NodePort --- apiVersion: apps/v1 kind: Deployment @@ -224,6 +234,21 @@ spec: - name: ConnectionStrings__UsersContext value: "server=$(mariadb_host);port=3306;database=$(mariadb_database);uid=$(mariadb_user);pwd=$(mariadb_password)" --- +apiVersion: v1 +kind: Service +metadata: + name: users-service + namespace: nocr +spec: + selector: + app: users + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: NodePort # Change the service type to NodePort + +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -243,7 +268,7 @@ spec: - name: hubcred containers: - name: users - image: hub.musk.fun/k8s/nocr/telegram-client:latest + image: hub.musk.fun/k8s/nocr/telegram_client:latest env: - name: "ASPNETCORE_ENVIRONMENT" value: "k8s" @@ -271,3 +296,8 @@ spec: value: "amqp://$(rmqc_username):$(rmqc_password)@$(rmqc_host):$(rmqc_port)/" - name: mariadb_host value: mdb-tm-mariadb.nocr.svc + - name: UsersRestEaseOptions__BasePath + value: "http://users-service.nocr.svc:80" + - name: TextMatcherRestEaseOptions__BasePath + value: "http://text-matcher-service.nocr.svc:80" +