99 lines
2.5 KiB
YAML
99 lines
2.5 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: autodiscover.environment
|
|
namespace: mail
|
|
immutable: false
|
|
data:
|
|
COMPANY_NAME: 'Undercloud'
|
|
SUPPORT_URL: 'https://autodiscover.undercloud.cf'
|
|
DOMAIN: 'undercloud.cf'
|
|
# IMAP configuration (host mandatory to enable)
|
|
IMAP_HOST: 'mail.undercloud.cf'
|
|
IMAP_PORT: '993'
|
|
IMAP_SOCKET: 'SSL'
|
|
# POP configuration (host mandatory to enable)
|
|
POP_HOST: 'mail.undercloud.cf'
|
|
POP_PORT: '995'
|
|
POP_SOCKET: 'SSL'
|
|
# SMTP configuration (host mandatory to enable)
|
|
SMTP_HOST: 'mail.undercloud.cf'
|
|
SMTP_PORT: '587'
|
|
SMTP_SOCKET: 'STARTTLS'
|
|
# MobileSync/ActiveSync configuration (url mandatory to enable)
|
|
MOBILESYNC_URL: 'https://sync.undercloud.cf'
|
|
MOBILESYNC_NAME: 'sync.undercloud.cf'
|
|
# LDAP configuration (host mandatory to enable)
|
|
LDAP_HOST: 'ldap.undercloud.cf'
|
|
LDAP_PORT: '636'
|
|
LDAP_SOCKET: 'SSL'
|
|
LDAP_BASE: 'dc=undercloud,dc=cf'
|
|
LDAP_USER_FIELD: 'uid'
|
|
LDAP_USER_BASE: 'ou=users,dc=undercloud,dc=cf'
|
|
LDAP_SEARCH: '(|(objectClass=inetOrgPerson))'
|
|
# Apple mobile config identifiers (identifier mandatory to enable)
|
|
#PROFILE_IDENTIFIER: 'com.example.autodiscover'
|
|
#PROFILE_UUID: '92943D26-CAB3-4086-897D-DC6C0D8B1E86'
|
|
#MAIL_UUID: '7A981A9E-D5D0-4EF8-87FE-39FD6A506FAC'
|
|
#LDAP_UUID: '6ECB6BA9-2208-4ABF-9E60-4E9F4CD7309E'
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: autodiscover
|
|
namespace: mail
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: autodiscover
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: autodiscover
|
|
spec:
|
|
containers:
|
|
- name: autodiscover
|
|
image: monogramm/autodiscover-email-settings:a7aee0d
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: transfer
|
|
containerPort: 8000
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: autodiscover.environment
|
|
env:
|
|
- name: LDAP_BIND_PW
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mailserver-ldap
|
|
key: pw
|
|
restartPolicy: Always
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: autodiscover
|
|
namespace: mail
|
|
spec:
|
|
clusterIP: '2001:470:72f0:f:1::51'
|
|
clusterIPs:
|
|
- '2001:470:72f0:f:1::51'
|
|
- 10.0.91.51
|
|
ipFamilies:
|
|
- IPv6
|
|
- IPv4
|
|
ipFamilyPolicy: PreferDualStack
|
|
ports:
|
|
# Transfer
|
|
- name: transfer
|
|
port: 8000
|
|
targetPort: 8000
|
|
protocol: TCP
|
|
selector:
|
|
app: autodiscover
|
|
#sessionAffinity: None
|
|
type: ClusterIP
|