Move monitoring TG API to Go
This commit is contained in:
@@ -31,6 +31,7 @@ spec:
|
||||
containers:
|
||||
- name: monitoring-tg-server
|
||||
image: localhost:30300/admin/monitoring-tg-server:latest
|
||||
command: ["/usr/local/bin/monitoring-tg-server"]
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
envFrom:
|
||||
@@ -64,6 +65,43 @@ spec:
|
||||
limits:
|
||||
cpu: 800m
|
||||
memory: 1Gi
|
||||
- name: monitoring-tg-telegram
|
||||
image: localhost:30300/admin/monitoring-tg-server:latest
|
||||
command: ["python", "-m", "parser_bot.main"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: monitoring-tg-config
|
||||
- secretRef:
|
||||
name: monitoring-tg-secrets
|
||||
env:
|
||||
- name: API_PORT
|
||||
value: "8001"
|
||||
volumeMounts:
|
||||
- name: app-data
|
||||
mountPath: /data
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8001
|
||||
periodSeconds: 5
|
||||
failureThreshold: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8001
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8001
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 80m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 800m
|
||||
memory: 1Gi
|
||||
- name: monitoring-tg-classifier
|
||||
image: localhost:30300/admin/monitoring-tg-server:latest
|
||||
command: ["/usr/local/bin/monitoring-tg-classifier"]
|
||||
|
||||
Reference in New Issue
Block a user