first commit
This commit is contained in:
71
clusters/default/apps/immich/templates/immich-svc.yaml
Normal file
71
clusters/default/apps/immich/templates/immich-svc.yaml
Normal 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
|
||||
Reference in New Issue
Block a user