Repository navigation
Expand file tree
/
Copy pathk8s.yaml
More file actions
130 lines (130 loc) · 3.34 KB
/
Copy pathk8s.yaml
File metadata and controls
130 lines (130 loc) · 3.34 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: canary402-reports
namespace: llm
labels:
app.kubernetes.io/name: canary402
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: canary402
namespace: llm
labels:
app.kubernetes.io/name: canary402
app.kubernetes.io/component: agent-service
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app.kubernetes.io/name: canary402
template:
metadata:
labels:
app.kubernetes.io/name: canary402
app.kubernetes.io/component: agent-service
spec:
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
fsGroup: 65532
seccompProfile:
type: RuntimeDefault
containers:
- name: canary402
image: canary402:dev
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
env:
- name: PORT
value: "8080"
- name: CANARY_REPORT_DIR
value: /data/reports
- name: CANARY_MODEL
value: openrouter/auto
- name: CANARY_MAX_CONCURRENT
value: "4"
- name: CANARY_TARGET_TIMEOUT_SECONDS
value: "20"
- name: CANARY_MAX_PAYMENT_ATOMIC
value: "20000"
- name: CANARY_ALLOWED_NETWORKS
value: base-sepolia,base
- name: CANARY_ALLOW_HTTP
value: "false"
- name: CANARY_ALLOW_PRIVATE_TARGETS
value: "false"
- name: LITELLM_BASE_URL
value: http://litellm.llm.svc.cluster.local:4000
- name: LITELLM_MASTER_KEY
valueFrom:
secretKeyRef:
name: litellm-secrets
key: LITELLM_MASTER_KEY
- name: REMOTE_SIGNER_URL
value: http://remote-signer.hermes-obol-agent.svc.cluster.local:9000
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 2
periodSeconds: 5
timeoutSeconds: 2
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 2
resources:
requests:
cpu: 25m
memory: 32Mi
limits:
cpu: 500m
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
volumeMounts:
- name: reports
mountPath: /data/reports
- name: tmp
mountPath: /tmp
volumes:
- name: reports
persistentVolumeClaim:
claimName: canary402-reports
- name: tmp
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: canary402
namespace: llm
labels:
app.kubernetes.io/name: canary402
spec:
selector:
app.kubernetes.io/name: canary402
ports:
- name: http
port: 8080
targetPort: http