Skip to content

Commit

Permalink
create k8s Services for cable and client
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Aug 20, 2024
1 parent 0496070 commit a21e87f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "princeton-manifold.fullname" . }}-api
name: {{ include "princeton-manifold.fullname" . }}-api-cable
labels:
{{- include "princeton-manifold.labels" . | nindent 4 }}
spec:
type: {{ .Values.serviceApi.type }}
type: {{ .Values.serviceApiCable.type }}
ports:
- port: {{ .Values.serviceApi.port }}
targetPort: 3020
- port: {{ .Values.serviceApiCable.port }}
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "princeton-manifold.name" . }}-api
app.kubernetes.io/name: {{ include "princeton-manifold.name" . }}-api-cable
app.kubernetes.io/instance: {{ .Release.Name }}
15 changes: 15 additions & 0 deletions chart/princeton-manifold/templates/service-api-rails.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "princeton-manifold.fullname" . }}-api-rails
labels:
{{- include "princeton-manifold.labels" . | nindent 4 }}
spec:
type: {{ .Values.serviceApiRails.type }}
ports:
- port: {{ .Values.serviceApiRails.port }}
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "princeton-manifold.name" . }}-api-rails
app.kubernetes.io/instance: {{ .Release.Name }}
15 changes: 15 additions & 0 deletions chart/princeton-manifold/templates/service-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "princeton-manifold.fullname" . }}-client
labels:
{{- include "princeton-manifold.labels" . | nindent 4 }}
spec:
type: {{ .Values.serviceClient.type }}
ports:
- port: {{ .Values.serviceClient.port }}
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "princeton-manifold.name" . }}-client
app.kubernetes.io/instance: {{ .Release.Name }}
10 changes: 9 additions & 1 deletion chart/princeton-manifold/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@ service:
type: ClusterIP
port: 80

serviceApi:
serviceApiRails:
type: ClusterIP
port: 3020

serviceApiCable:
type: ClusterIP
port: 3021

serviceClient:
type: ClusterIP
port: 3010

ingress:
enabled: false
className: ""
Expand Down

0 comments on commit a21e87f

Please sign in to comment.