bf9e827f85
Deploy backend, frontend, PostgreSQL, and Redis on Kubernetes with optional Ingress/TLS, SQL migration hooks, and public registry exposure at repo.3fase.ir. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
513 B
YAML
19 lines
513 B
YAML
{{- if .Values.postgres.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "cloudhost-platform.postgres.fullname" . }}
|
|
namespace: {{ include "cloudhost-platform.namespace" . }}
|
|
labels:
|
|
app: {{ include "cloudhost-platform.postgres.fullname" . }}
|
|
{{- include "cloudhost-platform.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: {{ include "cloudhost-platform.postgres.fullname" . }}
|
|
ports:
|
|
- name: postgres
|
|
port: 5432
|
|
targetPort: 5432
|
|
{{- end }}
|