2019-02-04 21:03:30 +01:00
|
|
|
apiVersion: apps/v1beta2
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: smtp-server
|
|
|
|
name: smtp-server
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: smtp-server
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: smtp-server
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: GMAIL_USER
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: username
|
|
|
|
name: smtp-account
|
|
|
|
- name: GMAIL_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: password
|
|
|
|
name: smtp-account
|
|
|
|
- name: DISABLE_IPV6
|
|
|
|
value: "True"
|
|
|
|
- name: RELAY_DOMAINS
|
|
|
|
value: :192.168.0.0/24:10.0.0.0/16
|
2019-02-15 13:33:59 +01:00
|
|
|
image: carlosedp/docker-smtp:v1.0.1
|
2019-02-04 21:03:30 +01:00
|
|
|
name: smtp-server
|
|
|
|
ports:
|
2019-08-08 22:09:53 +02:00
|
|
|
- containerPort: smtp
|
|
|
|
name: 25
|