Skip to content

Commit

Permalink
feat(k8s): add manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Mar 22, 2024
1 parent 437f1f6 commit dae1808
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
45 changes: 45 additions & 0 deletions k8s/manifests/gateway-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hub-adaptor-gateway-deployment
spec:
selector:
matchLabels:
component: gateway-service
version: 0.1.0
deployment-id: hub-adaptor
replicas: 1
template:
metadata:
labels:
component: gateway-service
version: 0.1.0
deployment-id: hub-adaptor
spec:
containers:
- name: api-gateway
image: ghcr.io/privateaim/node-hub-api-adapter:latest
imagePullPolicy: IfNotPresent # Maybe "Always" during debug
readinessProbe:
httpGet:
path: /healthz
port: 5000
ports:
- containerPort: 5000
env:
- name: API_CLIENT_ID
value: "api-client"
- name: IDP_URL
value: "keycloak-svc" # To be replaced
- name: IDP_REALM
value: "flame"
- name: RESULTS_SERVICE_URL
value: "results-svc" # To be properly filled in
- name: HUB_SERVICE_URL
value: "https://api.privateaim.net"
- name: HUB_AUTH_SERVICE_URL
value: "https://auth.privateaim.net"
- name: HUB_USERNAME
value: "thehubusername" # To be properly filled in
- name: HUB_PASSWORD
value: "thehubpassword"
16 changes: 16 additions & 0 deletions k8s/manifests/gateway-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: hub-adaptor-gateway-service
labels:
component: gateway-service
version: 0.1.0
deployment-id: hub-adaptor
spec:
ports:
- name: api
port: 5000
selector:
component: gateway-service
version: 0.1.0
deployment-id: hub-adaptor

0 comments on commit dae1808

Please sign in to comment.