added depl
This commit is contained in:
parent
6518e3a312
commit
22124cad74
@ -163,6 +163,10 @@ 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: apps/v1
|
||||
kind: Deployment
|
||||
@ -219,3 +223,51 @@ spec:
|
||||
key: mariadb-root-password
|
||||
- name: ConnectionStrings__UsersContext
|
||||
value: "server=$(mariadb_host);port=3306;database=$(mariadb_database);uid=$(mariadb_user);pwd=$(mariadb_password)"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: telegram-client
|
||||
namespace: nocr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: telegram-client
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: telegram-client
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: hubcred
|
||||
containers:
|
||||
- name: users
|
||||
image: hub.musk.fun/k8s/nocr/telegram-client:latest
|
||||
env:
|
||||
- name: "ASPNETCORE_ENVIRONMENT"
|
||||
value: "k8s"
|
||||
- name: rmqc_host
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: rmqc-default-user
|
||||
key: host
|
||||
- name: rmqc_username
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: rmqc-default-user
|
||||
key: username
|
||||
- name: rmqc_password
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: rmqc-default-user
|
||||
key: password
|
||||
- name: rmqc_port
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: rmqc-default-user
|
||||
key: port
|
||||
- name: RebusRabbitMqOptions__ConnectionString
|
||||
value: "amqp://$(rmqc_username):$(rmqc_password)@$(rmqc_host):$(rmqc_port)/"
|
||||
- name: mariadb_host
|
||||
value: mdb-tm-mariadb.nocr.svc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user