Interlegis Public Rancher Charts for Kubernetes
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
704 B

apiVersion: v1
kind: Service
metadata:
name: {{ include "mailproxy.fullname" . }}-nginx
labels:
{{- include "mailproxy.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.nginx.service.annotations | nindent 4 }}
spec:
type: {{ .Values.nginx.service.type }}
ports:
{{- range $i, $port := .Values.nginx.service.ports }}
- port: {{ $port.number }}
targetPort: {{ $port.number }}
protocol: {{ $port.protocol }}
name: {{ $port.name }}
{{- end }}
externalTrafficPolicy: {{ .Values.nginx.service.externalTrafficPolicy }}
selector:
{{- include "mailproxy.nginx.selectorLabels" . | nindent 4 }}
loadBalancerIP: {{ .Values.nginx.service.loadBalancerIP }}