diff --git a/templates/service.yaml b/templates/service.yaml new file mode 100644 index 0000000..19270d1 --- /dev/null +++ b/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "postgresql.fullname" . }} + labels: + {{- include "postgresql.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: postgres + protocol: TCP + name: postgres + selector: + {{- include "postgresql.selectorLabels" . | nindent 4 }}