24 lines
		
	
	
		
			770 B
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			770 B
		
	
	
	
		
			YAML
		
	
	
	
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" . }}
 | 
						|
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 }}
 | 
						|
 | 
						|
 |