Finally released the k8s deployment for RBMQ + TL module as a pod.
This commit is contained in:
parent
027a62770d
commit
95a0de5436
@ -17,12 +17,12 @@ spec:
|
|||||||
- name: hubcred
|
- name: hubcred
|
||||||
containers:
|
containers:
|
||||||
- name: telegram-listener
|
- name: telegram-listener
|
||||||
image: hub.musk.fun/k8s/nocr/telegram_listener:latest
|
image: hub.musk.fun/k8s/nocr/telegram_listener:latest
|
||||||
env:
|
env:
|
||||||
- name: "ASPNETCORE_ENVIRONMENT"
|
- name: "ASPNETCORE_ENVIRONMENT"
|
||||||
value: "k8s"
|
value: "k8s"
|
||||||
- name: "session_pathname"
|
- name: "session_pathname"
|
||||||
value: "/app/.secrets/WTelegram.session"
|
value: "/tmp/rw-files/WTelegram.session"
|
||||||
- name: ASPNETCORE_rmqc_host
|
- name: ASPNETCORE_rmqc_host
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@ -48,9 +48,26 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: secrets
|
- name: secrets
|
||||||
mountPath: /app/.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:
|
volumes:
|
||||||
- name: secrets
|
- name: secrets
|
||||||
secret:
|
secret:
|
||||||
secretName: secretfiles
|
secretName: secretfiles
|
||||||
|
- name: rw-files
|
||||||
|
emptyDir: {}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user