62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: stalwart
|
|
namespace: mail
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app.kubernetes.io/name: stalwart
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
targetPort: http
|
|
- name: lmtp
|
|
port: 24
|
|
targetPort: lmtp
|
|
---
|
|
# Governing Service for the StatefulSet's per-pod DNS.
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: stalwart-headless
|
|
namespace: mail
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
app.kubernetes.io/name: stalwart
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
targetPort: http
|
|
---
|
|
# Client-facing mail ports on the lab network. 443 is here too so the single
|
|
# internal mail.unkin.net record serves web as well as IMAP/submission.
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: stalwart-lb
|
|
namespace: mail
|
|
annotations:
|
|
purelb.io/addresses: 198.18.200.18
|
|
purelb.io/service-group: common
|
|
spec:
|
|
type: LoadBalancer
|
|
externalTrafficPolicy: Local
|
|
selector:
|
|
app.kubernetes.io/name: stalwart
|
|
ports:
|
|
- name: imaps
|
|
port: 993
|
|
targetPort: imaps
|
|
- name: submissions
|
|
port: 465
|
|
targetPort: submissions
|
|
- name: submission
|
|
port: 587
|
|
targetPort: submission
|
|
- name: https
|
|
port: 443
|
|
targetPort: https
|