2018-03-03 02:42:15 +01:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
deployment.kubernetes.io/revision: "1"
|
|
|
|
generation: 1
|
|
|
|
labels:
|
|
|
|
run: smtp-server
|
|
|
|
name: smtp-server
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: smtp-server
|
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxSurge: 1
|
|
|
|
maxUnavailable: 1
|
|
|
|
type: RollingUpdate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
run: smtp-server
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: carlosedp/docker-smtp
|
|
|
|
imagePullPolicy: Always
|
|
|
|
name: smtp-server
|
|
|
|
ports:
|
|
|
|
- containerPort: 25
|
|
|
|
protocol: TCP
|
|
|
|
env:
|
|
|
|
- name: GMAIL_USER
|
2018-05-30 18:01:02 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: smtp-account
|
|
|
|
key: username
|
2018-03-03 02:42:15 +01:00
|
|
|
- name: GMAIL_PASSWORD
|
2018-05-30 18:01:02 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: smtp-account
|
|
|
|
key: password
|
2018-03-03 02:42:15 +01:00
|
|
|
- name: DISABLE_IPV6
|
|
|
|
value: "True"
|
|
|
|
- name: RELAY_DOMAINS
|
|
|
|
value: ":192.168.0.0/24:10.0.0.0/16"
|
|
|
|
resources: {}
|
|
|
|
restartPolicy: Always
|
|
|
|
replicas: 1
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: smtp-server
|
|
|
|
name: smtp-server
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- nodePort: 30025
|
|
|
|
port: 25
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 25
|
|
|
|
selector:
|
|
|
|
run: smtp-server
|
|
|
|
type: NodePort
|