127 lines
2.1 KiB
YAML
127 lines
2.1 KiB
YAML
|
|
# Mailu Services - Routes traffic to Mailu stack components
|
||
|
|
# All services use app: mailu selectors to match mailu-deployment.yaml
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: mailu-front
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: front
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: front
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
port: 80
|
||
|
|
targetPort: 80
|
||
|
|
- name: https
|
||
|
|
port: 443
|
||
|
|
targetPort: 443
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: mailu-admin
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: admin
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: admin
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
port: 80
|
||
|
|
targetPort: 80
|
||
|
|
---
|
||
|
|
# Primary SMTP service - used by notification-service and other internal services
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: mailu-smtp
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: smtp
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: smtp
|
||
|
|
ports:
|
||
|
|
- name: smtp
|
||
|
|
port: 25
|
||
|
|
targetPort: 25
|
||
|
|
- name: submission
|
||
|
|
port: 587
|
||
|
|
targetPort: 587
|
||
|
|
---
|
||
|
|
# Alias for backwards compatibility with services expecting 'email-smtp'
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: email-smtp
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: smtp
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: smtp
|
||
|
|
ports:
|
||
|
|
- name: smtp
|
||
|
|
port: 25
|
||
|
|
targetPort: 25
|
||
|
|
- name: submission
|
||
|
|
port: 587
|
||
|
|
targetPort: 587
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: mailu-imap
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: imap
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: imap
|
||
|
|
ports:
|
||
|
|
- name: imap
|
||
|
|
port: 143
|
||
|
|
targetPort: 143
|
||
|
|
- name: imaps
|
||
|
|
port: 993
|
||
|
|
targetPort: 993
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: mailu-antispam
|
||
|
|
namespace: bakery-ia
|
||
|
|
labels:
|
||
|
|
app: mailu
|
||
|
|
component: antispam
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
selector:
|
||
|
|
app: mailu
|
||
|
|
component: antispam
|
||
|
|
ports:
|
||
|
|
- name: rspamd
|
||
|
|
port: 11333
|
||
|
|
targetPort: 11333
|
||
|
|
- name: rspamd-admin
|
||
|
|
port: 11334
|
||
|
|
targetPort: 11334
|