final t client deployment with null exception error

This commit is contained in:
ruberoid 2024-04-14 16:10:34 +04:00
parent 22124cad74
commit 6622d15a6e

View File

@ -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"