mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
563 B
21 lines
563 B
{{- if .Values.postgresql.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "wiki.postgresql.fullname" . }}
|
|
labels:
|
|
{{- include "wiki.labels" . | nindent 4 }}
|
|
{{- with .Values.postgresql.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.postgresql.service.type }}
|
|
ports:
|
|
- port: {{ .Values.postgresql.service.port }}
|
|
targetPort: 5432
|
|
protocol: TCP
|
|
name: postgresql
|
|
selector:
|
|
{{- include "wiki.postgresql.selectorLabels" . | nindent 4 }}
|
|
{{- end }} |