Added postfix deployment, added resource limit to dovecot
This commit is contained in:
parent
80a4ac2156
commit
e431abb9a6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.vscode
|
@ -21,6 +21,10 @@ spec:
|
||||
containers:
|
||||
- image: git.altarik.fr/quentinlegot/dovecot:latest
|
||||
name: dovecot
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 24
|
||||
name: lmtp
|
||||
|
@ -9,4 +9,4 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
storage: 250Mi
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user