-
Notifications
You must be signed in to change notification settings - Fork 0
/
postfix.yml
45 lines (45 loc) · 1.22 KB
/
postfix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: postfix
namespace: default
labels:
k8s-app: postfix
component: ingress-controller
type: nginx
spec:
selector:
matchLabels:
k8s-app: mail-loadbalancer
component: ingress-controller
type: nginx
template:
metadata:
labels:
k8s-app: mail-loadbalancer
component: ingress-controller
type: nginx
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: Exists
nodeSelector:
kubernetes.io/os: "linux"
dnsPolicy: ClusterFirstWithHostNet
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: postfix
image: 431145989806.dkr.ecr.ap-southeast-1.amazonaws.com/postfix:latest #will change later, for now you'll need to build it from the postfix folder with docker built . -t postfix
imagePullPolicy: Always
ports:
- name: postfix
containerPort: 25
hostPort: 25
protocol: TCP
imagePullSecrets:
- name: regcred