first commit

This commit is contained in:
2025-07-04 19:51:51 +05:30
commit 42895beb8c
72 changed files with 2584 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-service"
namespace: {{ .Values.namespace }}
spec:
{{- if eq .Values.service.app.type "LoadBalancer" }}
type: LoadBalancer
{{- else if eq .Values.service.app.type "NodePort" }}
type: NodePort
{{- end }}
selector:
app: "{{ .Values.name }}-app"
ports:
- targetPort: 2283
{{- if eq .Values.service.app.type "LoadBalancer" }}
port: {{ .Values.service.app.port }}
{{- else if eq .Values.service.app.type "NodePort" }}
nodePort: {{ .Values.service.app.nodePort }}
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-machine-learning-service"
namespace: {{ .Values.namespace }}
spec:
{{- if eq .Values.service.ml.type "LoadBalancer" }}
type: LoadBalancer
{{- else if eq .Values.service.ml.type "NodePort" }}
type: NodePort
{{- end }}
selector:
app: "{{ .Values.name }}-app"
ports:
- targetPort: 3003
{{- if eq .Values.service.ml.type "LoadBalancer" }}
port: {{ .Values.service.ml.port }}
{{- else if eq .Values.service.ml.type "NodePort" }}
nodePort: {{ .Values.service.ml.nodePort }}
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-psql-service"
namespace: {{ .Values.namespace }}
spec:
selector:
app: "{{ .Values.name }}-db"
ports:
- protocol: TCP
port: 5432
targetPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-redis-service"
namespace: {{ .Values.namespace }}
spec:
selector:
app: "{{ .Values.name }}-db"
ports:
- protocol: TCP
port: 6379
targetPort: 6379