44 lines
946 B
YAML
44 lines
946 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: haproxy
|
|
namespace: haproxy
|
|
annotations:
|
|
purelb.io/service-group: dmz
|
|
purelb.io/addresses: 198.18.199.1
|
|
spec:
|
|
type: LoadBalancer
|
|
loadBalancerIP: "198.18.199.1"
|
|
# Source IP must survive for acl_internalsubnets, X-Real-IP and SMTP.
|
|
externalTrafficPolicy: Local
|
|
# Pins a client to one replica, standing in for the dropped stick-table peers.
|
|
sessionAffinity: ClientIP
|
|
selector:
|
|
app: haproxy
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
targetPort: http
|
|
- name: https
|
|
port: 443
|
|
protocol: TCP
|
|
targetPort: https
|
|
- name: smtp
|
|
port: 25
|
|
protocol: TCP
|
|
targetPort: smtp
|
|
- name: imap
|
|
port: 143
|
|
protocol: TCP
|
|
targetPort: imap
|
|
- name: submission
|
|
port: 587
|
|
protocol: TCP
|
|
targetPort: submission
|
|
- name: imaps
|
|
port: 993
|
|
protocol: TCP
|
|
targetPort: imaps
|