-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkait-agent.yaml
More file actions
71 lines (71 loc) · 2.11 KB
/
Copy pathkait-agent.yaml
File metadata and controls
71 lines (71 loc) · 2.11 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
apiVersion: batch/v1
kind: Job
metadata:
name: kait-agent
labels:
app.kubernetes.io/name: kait
app.kubernetes.io/component: buildkite-agent
spec:
backoffLimit: 0
ttlSecondsAfterFinished: 3600
template:
metadata:
labels:
app.kubernetes.io/name: kait
app.kubernetes.io/component: buildkite-agent
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "9090"
spec:
restartPolicy: Never
containers:
- name: kait
image: ghcr.io/alexhraber/kait:cpu-data-science
imagePullPolicy: IfNotPresent
ports:
- name: metrics
containerPort: 9090
env:
- name: BUILDKITE_AGENT_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-agent
key: token
- name: BUILDKITE_AGENT_TAGS
value: kait=true,kait.hardware=cpu,kait.variant=slim,kait.profile=data-science,kait.o11y=prometheus,kait.capability.data-science=true
- name: BUILDKITE_AGENT_QUEUE
value: ai
- name: BUILDKITE_AGENT_DISCONNECT_AFTER_JOB
value: "true"
- name: KAIT_HARDWARE
value: cpu
- name: KAIT_VARIANT
value: slim
- name: KAIT_PROFILE
value: data-science
- name: KAIT_O11Y
value: prometheus
- name: KAIT_METRICS_ADDR
value: 0.0.0.0:9090
- name: OTEL_SERVICE_NAME
value: kait
- name: OTEL_EXPORTER_OTLP_ENDPOINT
valueFrom:
configMapKeyRef:
name: kait-observability
key: otlp-endpoint
optional: true
resources:
requests:
cpu: "1"
memory: 4Gi
limits:
cpu: "4"
memory: 16Gi
volumeMounts:
- name: builds
mountPath: /buildkite/builds
volumes:
- name: builds
emptyDir: {}