Skip to content

Commit

Permalink
Build and deploy admin service
Browse files Browse the repository at this point in the history
  • Loading branch information
aliok committed Oct 4, 2023
1 parent 3d6899f commit cabe555
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,18 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print ai-demo-feedback-service image url
run: echo "ai-demo-feedback-service image pushed to ${{ steps.push-ai-demo-feedback-service.outputs.registry-paths }}"

- name: Build ai-demo-admin-service
id: build-ai-demo-admin-service
run: docker build services/admin-service --file services/admin-service/Dockerfile -t ai-demo-admin-service:main
- name: Push ai-demo-admin-service
id: push-ai-demo-admin-service
uses: redhat-actions/push-to-registry@v2
with:
image: ai-demo-admin-service
tags: main
registry: quay.io/kevent-mesh
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print ai-demo-admin-service image url
run: echo "ai-demo-admin-service image pushed to ${{ steps.push-ai-demo-admin-service.outputs.registry-paths }}"
38 changes: 38 additions & 0 deletions infra/openshift-manifests/admin-service/ksvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: admin-service
namespace: ai-demo
labels:
app: admin-service
spec:
template:
spec:
containers:
- image: quay.io/kevent-mesh/ai-demo-admin-service:main
ports:
- containerPort: 8080
env:
# TODO: use a secret
- name: DB_HOST
value: "postgresql.ai-demo.svc"
- name: DB_PORT
value: "5432"
- name: DB_DATABASE
value: "ai-demo"
- name: DB_USERNAME
value: "ai-demo"
- name: DB_PASSWORD
value: "ai-demo"
- name: SOURCE_DECLARATION
value: "prediction-service"
- name: S3_ENDPOINT_URL
value: https://minio.minio-operator.svc.cluster.local
- name: S3_ACCESS_KEY_ID
value: minio
- name: S3_ACCESS_KEY_SECRET
value: minio1234
- name: S3_ACCESS_SSL_VERIFY
value: "false"
- name: S3_BUCKET_NAME
value: ai-demo
1 change: 1 addition & 0 deletions infra/openshift-manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ resources:
- inference-service/service.yaml
- analytics-service
- feedback-service/ksvc.yaml
- admin-service/ksvc.yaml

0 comments on commit cabe555

Please sign in to comment.