Finally released the k8s deployment for RBMQ + TL module as a pod.

This commit is contained in:
ruberoid 2024-04-04 21:01:41 +04:00
parent 027a62770d
commit 95a0de5436

View File

@ -17,12 +17,12 @@ spec:
- name: hubcred
containers:
- name: telegram-listener
image: hub.musk.fun/k8s/nocr/telegram_listener:latest
image: hub.musk.fun/k8s/nocr/telegram_listener:latest
env:
- name: "ASPNETCORE_ENVIRONMENT"
value: "k8s"
- name: "session_pathname"
value: "/app/.secrets/WTelegram.session"
value: "/tmp/rw-files/WTelegram.session"
- name: ASPNETCORE_rmqc_host
valueFrom:
secretKeyRef:
@ -48,9 +48,26 @@ spec:
volumeMounts:
- name: secrets
mountPath: /app/.secrets
readOnly: true
- name: rw-files
mountPath: /tmp/rw-files
initContainers:
- name: "update-mysql-init"
image: "busybox:1.25.0"
command: [
"sh",
"-ce",
"cp /app/.secrets/WTelegram.session /tmp/rw-files/WTelegram.session &&
chmod a+w /tmp/rw-files/WTelegram.session &&
echo The TL Container is Running ; sleep 5 " ]
volumeMounts:
- name: secrets
mountPath: /app/.secrets
- name: rw-files
mountPath: /tmp/rw-files
volumes:
- name: secrets
secret:
secretName: secretfiles
- name: rw-files
emptyDir: {}