|
1
|
apiVersion: apps/v1 |
|
2
|
kind: Deployment |
|
3
|
metadata: |
|
4
|
name: scuttlebot |
|
5
|
labels: |
|
6
|
app: scuttlebot |
|
7
|
spec: |
|
8
|
replicas: 1 |
|
9
|
selector: |
|
10
|
matchLabels: |
|
11
|
app: scuttlebot |
|
12
|
template: |
|
13
|
metadata: |
|
14
|
labels: |
|
15
|
app: scuttlebot |
|
16
|
spec: |
|
17
|
containers: |
|
18
|
- name: scuttlebot |
|
19
|
image: ghcr.io/conflicthq/scuttlebot:latest |
|
20
|
imagePullPolicy: Always |
|
21
|
ports: |
|
22
|
- name: api |
|
23
|
containerPort: 8080 |
|
24
|
- name: mcp |
|
25
|
containerPort: 8081 |
|
26
|
env: |
|
27
|
- name: SCUTTLEBOT_ERGO_EXTERNAL |
|
28
|
value: "true" |
|
29
|
- name: SCUTTLEBOT_ERGO_API_ADDR |
|
30
|
valueFrom: |
|
31
|
configMapKeyRef: |
|
32
|
name: scuttlebot-config |
|
33
|
key: ergo.api-addr |
|
34
|
- name: SCUTTLEBOT_ERGO_IRC_ADDR |
|
35
|
valueFrom: |
|
36
|
configMapKeyRef: |
|
37
|
name: scuttlebot-config |
|
38
|
key: ergo.irc-addr |
|
39
|
- name: SCUTTLEBOT_ERGO_NETWORK_NAME |
|
40
|
valueFrom: |
|
41
|
configMapKeyRef: |
|
42
|
name: scuttlebot-config |
|
43
|
key: ergo.network-name |
|
44
|
- name: SCUTTLEBOT_ERGO_SERVER_NAME |
|
45
|
valueFrom: |
|
46
|
configMapKeyRef: |
|
47
|
name: scuttlebot-config |
|
48
|
key: ergo.server-name |
|
49
|
- name: SCUTTLEBOT_ERGO_API_TOKEN |
|
50
|
valueFrom: |
|
51
|
secretKeyRef: |
|
52
|
name: scuttlebot-secrets |
|
53
|
key: ergo-api-token |
|
54
|
- name: SCUTTLEBOT_DB_DRIVER |
|
55
|
valueFrom: |
|
56
|
configMapKeyRef: |
|
57
|
name: scuttlebot-config |
|
58
|
key: db.driver |
|
59
|
- name: SCUTTLEBOT_DB_DSN |
|
60
|
valueFrom: |
|
61
|
secretKeyRef: |
|
62
|
name: scuttlebot-secrets |
|
63
|
key: postgres-dsn |
|
64
|
- name: SCUTTLEBOT_API_ADDR |
|
65
|
valueFrom: |
|
66
|
configMapKeyRef: |
|
67
|
name: scuttlebot-config |
|
68
|
key: api.addr |
|
69
|
- name: SCUTTLEBOT_MCP_ADDR |
|
70
|
valueFrom: |
|
71
|
configMapKeyRef: |
|
72
|
name: scuttlebot-config |
|
73
|
key: mcp.addr |
|
74
|
livenessProbe: |
|
75
|
httpGet: |
|
76
|
path: /v1/status |
|
77
|
port: 8080 |
|
78
|
httpHeaders: |
|
79
|
- name: Authorization |
|
80
|
value: "Bearer probe-check" |
|
81
|
initialDelaySeconds: 20 |
|
82
|
periodSeconds: 15 |
|
83
|
failureThreshold: 3 |
|
84
|
readinessProbe: |
|
85
|
httpGet: |
|
86
|
path: /v1/status |
|
87
|
port: 8080 |
|
88
|
httpHeaders: |
|
89
|
- name: Authorization |
|
90
|
value: "Bearer probe-check" |
|
91
|
initialDelaySeconds: 10 |
|
92
|
periodSeconds: 10 |
|
93
|
|