Skip to content

Commit

Permalink
KB: API now has a separate service
Browse files Browse the repository at this point in the history
  • Loading branch information
js-sub committed Sep 3, 2024
1 parent 93122ac commit a28f649
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/knowledge-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: knowledge-base
description: Knowledge Base frontend and API/backend
type: application
version: 0.1.3
version: 0.1.4
appVersion: "0.0.1"
15 changes: 15 additions & 0 deletions charts/knowledge-base/templates/api_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: "{{ include "knowledge-base.fullname" . }}-api"
labels:
{{- include "knowledge-base-api.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "knowledge-base-api.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "knowledge-base.fullname" . }}
name: "{{ include "knowledge-base.fullname" . }}-frontend"
labels:
{{- include "knowledge-base-frontend.labels" . | nindent 4 }}
spec:
Expand Down
4 changes: 2 additions & 2 deletions charts/knowledge-base/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ api:
passwordKey: "sophora-password"

imagePullSecrets: []
nameOverride: "testNameOverride"
fullnameOverride: "fullTestNameOverride"
nameOverride: "test-name-override"
fullnameOverride: "full-test-name-override"

podAnnotations:
my/test/annotation: "foo"
Expand Down

0 comments on commit a28f649

Please sign in to comment.