2021-01-17 01:09:41 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
|
|
|
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
name: {{ template "postgres-operator-ui.fullname" . }}
|
2021-11-14 22:17:04 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2021-01-17 01:09:41 +00:00
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.service.port }}
|
|
|
|
targetPort: 8081
|
|
|
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
|
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
|
|
{{- end }}
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
|
|
|
type: {{ .Values.service.type }}
|
|
|
|
|
|
|
|
|