Skip to content

Commit 780d8d7

Browse files
committed
Add instructions to deploy on OpenShift
Related: packit/jotnar#38 Signed-off-by: Siteshwar Vashisht <[email protected]>
1 parent ded0a6b commit 780d8d7

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

beeai/openshift/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deploy:
2+
./deploy.sh

beeai/openshift/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# OpenShift Deployment
2+
3+
## Steps to deploy:
4+
5+
- Ensure secrets exist for the following values:
6+
7+
`beeai-agent-secrets`:
8+
```
9+
CHAT_MODEL
10+
GEMINI_API_KEY
11+
GITLAB_TOKEN
12+
GITLAB_USER
13+
```
14+
15+
`mcp-atlassian-secret`:
16+
```
17+
JIRA_PERSONAL_TOKEN
18+
JIRA_URL
19+
```
20+
21+
Values of these secrets are documented in [README](https://github.com/packit/jotnar?tab=readme-ov-file#service-accounts--authentication).
22+
23+
- Run `make deploy`. This would apply all the existing configurations to the project.
24+
25+
- Run `oc get route phoenix` and verify url listed in `HOST/PORT` column is accessible.

beeai/openshift/deploy.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
for filename in *.yml; do
6+
# This check prevents an error if no .yml files are found.
7+
if [ -e "$filename" ]; then
8+
echo "Applying $filename ..."
9+
oc apply -f "$filename"
10+
fi
11+
done

0 commit comments

Comments
 (0)