-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix_market_scheduler.py
More file actions
51 lines (47 loc) · 1.22 KB
/
fix_market_scheduler.py
File metadata and controls
51 lines (47 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
# Script pour générer un fichier YAML propre pour market-scheduler
content = """apiVersion: apps/v1
kind: Deployment
metadata:
name: market-scheduler
namespace: evil2root-trading
spec:
replicas: 1
selector:
matchLabels:
app: trading-bot
component: market-scheduler
template:
metadata:
labels:
app: trading-bot
component: market-scheduler
spec:
containers:
- name: market-scheduler
image: registry.digitalocean.com/evil2root-registry/evil2root-ai:latest
imagePullPolicy: Always
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
env:
- name: APP_MODE
value: "scheduler"
- name: REDIS_HOST
value: "redis"
- name: REDIS_PORT
value: "6379"
- name: POSTGRES_HOST
value: "postgres"
- name: LOG_LEVEL
value: "info"
imagePullSecrets:
- name: registry-evil2root-registry
"""
with open("kubernetes/deployments/market-scheduler.yaml", "w") as f:
f.write(content)
print("Fichier market-scheduler.yaml généré avec succès.")