Finally released the k8s deployment for RBMQ + TL module as a pod.
This commit is contained in:
parent
027a62770d
commit
95a0de5436
@ -22,7 +22,7 @@ spec:
|
||||
- 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: {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user