Skip to content

Commit 3e471ea

Browse files
committed
Add openshift configurations for beeai agents
Related: packit/jotnar#38 Signed-off-by: Siteshwar Vashisht <[email protected]>
1 parent 5f7880d commit 3e471ea

23 files changed

+704
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
data:
3+
COLLECTOR_ENDPOINT: http://phoenix:6006/v1/traces
4+
MAX_RETRIES: "3"
5+
MCP_JIRA_URL: http://mcp-atlassian:9000/sse
6+
REDIS_URL: redis://valkey:6379/0
7+
immutable: false
8+
kind: ConfigMap
9+
metadata:
10+
name: x-beeai-agent-configmap
11+
namespace: jotnar-prod
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
spec:
4+
progressDeadlineSeconds: 600
5+
replicas: 1
6+
revisionHistoryLimit: 10
7+
selector:
8+
matchLabels:
9+
app: backport-agent
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: 25%
13+
maxUnavailable: 25%
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
app: backport-agent
19+
deployment: backport-agent
20+
spec:
21+
containers:
22+
- args:
23+
- agents/backport_agent.py
24+
command:
25+
- /usr/bin/python
26+
env:
27+
- name: MCP_JIRA_URL
28+
valueFrom:
29+
configMapKeyRef:
30+
key: MCP_JIRA_URL
31+
name: x-beeai-agent-configmap
32+
- name: REDIS_URL
33+
valueFrom:
34+
configMapKeyRef:
35+
key: REDIS_URL
36+
name: x-beeai-agent-configmap
37+
- name: COLLECTOR_ENDPOINT
38+
valueFrom:
39+
configMapKeyRef:
40+
key: COLLECTOR_ENDPOINT
41+
name: x-beeai-agent-configmap
42+
- name: MAX_RETRIES
43+
valueFrom:
44+
configMapKeyRef:
45+
key: MAX_RETRIES
46+
name: x-beeai-agent-configmap
47+
- name: GITLAB_TOKEN
48+
valueFrom:
49+
secretKeyRef:
50+
key: GITLAB_TOKEN
51+
name: beeai-agent-secrets
52+
- name: GITLAB_USER
53+
valueFrom:
54+
secretKeyRef:
55+
key: GITLAB_USER
56+
name: beeai-agent-secrets
57+
- name: CHAT_MODEL
58+
valueFrom:
59+
secretKeyRef:
60+
key: CHAT_MODEL
61+
name: beeai-agent-secrets
62+
- name: GEMINI_API_KEY
63+
valueFrom:
64+
secretKeyRef:
65+
key: GEMINI_API_KEY
66+
name: beeai-agent-secrets
67+
- name: DRY_RUN
68+
value: "true"
69+
image: 'image-registry.openshift-image-registry.svc:5000/jotnar-prod/beeai-agent@sha256:649cc82f9529d48c6f4f61654d87fee6e18155944054acfa074928e5e73844a8'
70+
imagePullPolicy: Always
71+
name: backport-agent
72+
ports:
73+
- containerPort: 8080
74+
protocol: TCP
75+
# TODO: add limits on cpu and memory.
76+
resources: {}
77+
terminationMessagePath: /dev/termination-log
78+
terminationMessagePolicy: File
79+
dnsPolicy: ClusterFirst
80+
restartPolicy: Always
81+
schedulerName: default-scheduler
82+
securityContext: {}
83+
# TODO: this should be reset when we have enough data.
84+
terminationGracePeriodSeconds: 30
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
spec:
4+
progressDeadlineSeconds: 600
5+
replicas: 1
6+
revisionHistoryLimit: 10
7+
selector:
8+
matchLabels:
9+
app: mcp-atlassian
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: 25%
13+
maxUnavailable: 25%
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
app: mcp-atlassian
19+
deployment: mcp-atlassian
20+
spec:
21+
containers:
22+
- args:
23+
- --transport
24+
- sse
25+
- --port
26+
- "9000"
27+
- -vv
28+
env:
29+
- name: JIRA_PERSONAL_TOKEN
30+
valueFrom:
31+
secretKeyRef:
32+
key: JIRA_PERSONAL_TOKEN
33+
name: mcp-atlassian-secret
34+
- name: JIRA_URL
35+
valueFrom:
36+
secretKeyRef:
37+
key: JIRA_URL
38+
name: mcp-atlassian-secret
39+
image: image-registry.openshift-image-registry.svc:5000/jotnar-prod/mcp-atlassian@sha256:0a33e7a171cf54297dceb3b2cd473133b172978d5dbde9b68bf088d201696b3c
40+
imagePullPolicy: Always
41+
name: mcp-atlassian
42+
ports:
43+
- containerPort: 9000
44+
protocol: TCP
45+
# TODO: add limits on cpu and memory.
46+
resources: {}
47+
terminationMessagePath: /dev/termination-log
48+
terminationMessagePolicy: File
49+
dnsPolicy: ClusterFirst
50+
restartPolicy: Always
51+
schedulerName: default-scheduler
52+
securityContext: {}
53+
terminationGracePeriodSeconds: 30
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
spec:
4+
progressDeadlineSeconds: 600
5+
replicas: 1
6+
revisionHistoryLimit: 10
7+
selector:
8+
matchLabels:
9+
app: phoenix
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: 25%
13+
maxUnavailable: 25%
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
app: phoenix
19+
deployment: phoenix
20+
spec:
21+
containers:
22+
- env:
23+
- name: PHOENIX_WORKING_DIR
24+
value: /mnt/data
25+
- name: PHOENIX_PORT
26+
value: "6006"
27+
image: image-registry.openshift-image-registry.svc:5000/jotnar-prod/phoenix@sha256:6b2cbca1e7b2516b174d3fe844a4462236e4cf6b1b747b941f92a57db29b4390
28+
imagePullPolicy: IfNotPresent
29+
name: phoenix
30+
ports:
31+
- containerPort: 4317
32+
protocol: TCP
33+
- containerPort: 6006
34+
protocol: TCP
35+
- containerPort: 9090
36+
protocol: TCP
37+
# TODO: add limits on cpu and memory.
38+
resources: {}
39+
terminationMessagePath: /dev/termination-log
40+
terminationMessagePolicy: File
41+
volumeMounts:
42+
- mountPath: /mnt/data
43+
name: phoenix-data
44+
dnsPolicy: ClusterFirst
45+
restartPolicy: Always
46+
schedulerName: default-scheduler
47+
securityContext: {}
48+
terminationGracePeriodSeconds: 30
49+
volumes:
50+
- name: phoenix-data
51+
persistentVolumeClaim:
52+
claimName: phoenix-data
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
spec:
4+
progressDeadlineSeconds: 600
5+
replicas: 1
6+
revisionHistoryLimit: 10
7+
selector:
8+
matchLabels:
9+
app: rebase-agent
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: 25%
13+
maxUnavailable: 25%
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
app: rebase-agent
19+
deployment: rebase-agent
20+
spec:
21+
containers:
22+
- args:
23+
- agents/rebase_agent.py
24+
command:
25+
- /usr/bin/python
26+
env:
27+
- name: MCP_JIRA_URL
28+
valueFrom:
29+
configMapKeyRef:
30+
key: MCP_JIRA_URL
31+
name: x-beeai-agent-configmap
32+
- name: REDIS_URL
33+
valueFrom:
34+
configMapKeyRef:
35+
key: REDIS_URL
36+
name: x-beeai-agent-configmap
37+
- name: COLLECTOR_ENDPOINT
38+
valueFrom:
39+
configMapKeyRef:
40+
key: COLLECTOR_ENDPOINT
41+
name: x-beeai-agent-configmap
42+
- name: MAX_RETRIES
43+
valueFrom:
44+
configMapKeyRef:
45+
key: MAX_RETRIES
46+
name: x-beeai-agent-configmap
47+
- name: CHAT_MODEL
48+
valueFrom:
49+
secretKeyRef:
50+
key: CHAT_MODEL
51+
name: beeai-agent-secrets
52+
- name: GEMINI_API_KEY
53+
valueFrom:
54+
secretKeyRef:
55+
key: GEMINI_API_KEY
56+
name: beeai-agent-secrets
57+
- name: GITLAB_TOKEN
58+
valueFrom:
59+
secretKeyRef:
60+
key: GITLAB_TOKEN
61+
name: beeai-agent-secrets
62+
- name: GITLAB_USER
63+
valueFrom:
64+
secretKeyRef:
65+
key: GITLAB_USER
66+
name: beeai-agent-secrets
67+
- name: DRY_RUN
68+
value: "true"
69+
image: 'image-registry.openshift-image-registry.svc:5000/jotnar-prod/beeai-agent@sha256:649cc82f9529d48c6f4f61654d87fee6e18155944054acfa074928e5e73844a8'
70+
imagePullPolicy: Always
71+
name: rebase-agent
72+
ports:
73+
- containerPort: 8080
74+
protocol: TCP
75+
# TODO: add limits on cpu and memory.
76+
resources: {}
77+
terminationMessagePath: /dev/termination-log
78+
terminationMessagePolicy: File
79+
dnsPolicy: ClusterFirst
80+
restartPolicy: Always
81+
schedulerName: default-scheduler
82+
securityContext: {}
83+
# TODO: this should be reset when we have enough data.
84+
terminationGracePeriodSeconds: 30
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
spec:
4+
progressDeadlineSeconds: 600
5+
replicas: 1
6+
revisionHistoryLimit: 10
7+
selector:
8+
matchLabels:
9+
app: redis-commander
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: 25%
13+
maxUnavailable: 25%
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
app: redis-commander
19+
deployment: redis-commander
20+
spec:
21+
containers:
22+
- env:
23+
- name: REDIS_HOSTS
24+
value: local:valkey:6379
25+
image: image-registry.openshift-image-registry.svc:5000/jotnar-prod/redis-commander@sha256:d33e338d4d441a75b7bdc23fc148c9353233707ccd0234176e51f1b2fbb97ceb
26+
imagePullPolicy: IfNotPresent
27+
name: redis-commander
28+
ports:
29+
- containerPort: 8081
30+
protocol: TCP
31+
# TODO: add limits on cpu and memory.
32+
resources: {}
33+
terminationMessagePath: /dev/termination-log
34+
terminationMessagePolicy: File
35+
dnsPolicy: ClusterFirst
36+
restartPolicy: Always
37+
schedulerName: default-scheduler
38+
securityContext: {}
39+
terminationGracePeriodSeconds: 30

0 commit comments

Comments
 (0)