Added postfix deployment, added resource limit to dovecot

This commit is contained in:
Quentin Legot 2023-10-09 15:54:59 +02:00
parent 80a4ac2156
commit e431abb9a6
5 changed files with 54 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vscode

View File

@ -21,6 +21,10 @@ spec:
containers: containers:
- image: git.altarik.fr/quentinlegot/dovecot:latest - image: git.altarik.fr/quentinlegot/dovecot:latest
name: dovecot name: dovecot
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports: ports:
- containerPort: 24 - containerPort: 24
name: lmtp name: lmtp

View File

@ -9,4 +9,4 @@ spec:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 100Mi storage: 250Mi

View File

@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: postfix
labels:
app: postfix
spec:
selector:
matchLabels:
app: postfix
template:
metadata:
labels:
app: postfix
tier: smtp
spec:
containers:
- name: postfix
image: git.altarik.fr/quentinlegot/postfix:latest
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 25
name: smtp
- containerPort: 143
name: auth smtp tls
- containerPort: 587
name: msa

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: postfix
labels:
app: postfix
spec:
selector:
app: postfix
type: LoadBalancer
ports:
- port: 30025
targetPort: 25
- port: 30143
targetPort: 143
- port: 30587
targetPort: 587