Page MenuHomePhorge

external-proxy-svc.yaml
No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None

external-proxy-svc.yaml

{{- if .Values.proxy.enabled -}}
kind: Service
apiVersion: v1
metadata:
name: external-proxy
{{- if .Values.metallb.addressPool }}
annotations:
metallb.universe.tf/address-pool: {{ .Values.metallb.addressPool }}
metallb.universe.tf/allow-shared-ip: "{{ .Release.Name }}-shared-ip"
labels:
IPAddressPool: l2
{{- end }}
spec:
ipFamilies:
- IPv4
ports:
- name: imap
protocol: TCP
port: 143
targetPort: 6143
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.imap }}
{{- end }}
- name: imap-haproxy
protocol: TCP
port: 144
targetPort: 6144
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.imapHaproxy }}
{{- end }}
- name: imaps
protocol: TCP
port: 993
targetPort: 6993
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.imaps }}
{{- end }}
- name: imaps-haproxy
protocol: TCP
port: 994
targetPort: 6994
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.imapsHaproxy }}
{{- end }}
- name: managesieve
protocol: TCP
port: 4190
targetPort: 6190
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.managesieve }}
{{- end }}
- name: submission
protocol: TCP
port: 587
targetPort: 6587
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.submission }}
{{- end }}
- name: submission-haproxy
protocol: TCP
port: 588
targetPort: 6588
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.submissionHaproxy }}
{{- end }}
- name: submission-tls
protocol: TCP
port: 465
targetPort: 6465
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.submissionTls }}
{{- end }}
- name: submission-tls-haproxy
protocol: TCP
port: 466
targetPort: 6466
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.submissionTlsHaproxy }}
{{- end }}
- name: http
protocol: TCP
port: 80
targetPort: 6080
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.http }}
{{- end }}
- name: http-haproxy
protocol: TCP
port: 81
targetPort: 6081
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.httpHaproxy }}
{{- end }}
- name: https
protocol: TCP
port: 443
targetPort: 6443
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.https }}
{{- end }}
- name: https-haproxy
protocol: TCP
port: 444
targetPort: 6444
{{- if .Values.nodePorts }}
nodePort: {{ .Values.nodePorts.httpsHaproxy }}
{{- end }}
internalTrafficPolicy: Cluster
# Required to preserve the client ip
externalTrafficPolicy: Local
ipFamilyPolicy: SingleStack
{{- if .Values.nodePorts }}
type: NodePort
{{- else }}
type: LoadBalancer
{{- end }}
{{- if .Values.proxy.loadBalancerIP }}
loadBalancerIP: {{ .Values.proxy.loadBalancerIP }}
{{- end }}
{{- if .Values.proxy.externalIP }}
externalIPs:
- {{ .Values.proxy.externalIP }}
{{- end }}
{{- if .Values.proxy.externalIP }}
{{- end }}
selector:
app: proxy
{{- end }}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 10:57 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18778035
Default Alt Text
external-proxy-svc.yaml (3 KB)

Event Timeline