Skip to content

Commit

Permalink
refactor(helm): change k8s manifests to use hub-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Apr 5, 2024
1 parent f4e35a6 commit 8b539c8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 24 deletions.
4 changes: 2 additions & 2 deletions k8s/helm/gateway/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: flame-gateway
description: A Helm chart for the FLAME API Gateway
name: flame-hub-adapter
description: A Helm chart for the FLAME Hub Adapter API Gateway

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
10 changes: 7 additions & 3 deletions k8s/helm/gateway/templates/gateway-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-gateway-deployment
name: {{ .Release.Name }}-hub-adapter-deployment
spec:
selector:
matchLabels:
component: gateway-service
component: hub-adapter-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
replicas: 1
template:
metadata:
labels:
component: gateway-service
component: hub-adapter-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
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
name: http-result-srv
Expand Down
6 changes: 3 additions & 3 deletions k8s/helm/gateway/templates/gateway-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-gateway-ingress
name: {{ .Release.Name }}-hub-adapter-ingress
labels:
component: gateway-service
component: hub-adapter-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
spec:
Expand All @@ -15,6 +15,6 @@ spec:
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-gateway-service
name: {{ .Release.Name }}-hub-adapter-service
port:
number: 5000
6 changes: 3 additions & 3 deletions k8s/helm/gateway/templates/gateway-service.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-gateway-service
name: {{ .Release.Name }}-hub-adapter-service
labels:
component: gateway-service
component: hub-adapter-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
spec:
ports:
- name: api
port: 5000
selector:
component: gateway-service
component: hub-adapter-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
16 changes: 8 additions & 8 deletions k8s/manifests/gateway-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hub-adaptor-gateway-deployment
name: hub-adapter-gateway-deployment
spec:
selector:
matchLabels:
component: gateway-service
component: hub-adapter-service
version: 0.1.0
deployment-id: hub-adaptor
deployment-id: hub-adapter
replicas: 1
template:
metadata:
labels:
component: gateway-service
component: hub-adapter-service
version: 0.1.0
deployment-id: hub-adaptor
deployment-id: hub-adapter
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
httpGet:
path: /healthz
port: 5000
ports:
- containerPort: 5000
env:
Expand Down
10 changes: 5 additions & 5 deletions k8s/manifests/gateway-service.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: hub-adaptor-gateway-service
name: hub-adapter-gateway-service
labels:
component: gateway-service
component: hub-adapter-service
version: 0.1.0
deployment-id: hub-adaptor
deployment-id: hub-adapter
spec:
ports:
- name: api
port: 5000
selector:
component: gateway-service
component: hub-adapter-service
version: 0.1.0
deployment-id: hub-adaptor
deployment-id: hub-adapter

0 comments on commit 8b539c8

Please sign in to comment.