35 lines
735 B
YAML
35 lines
735 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: smtp4dev
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: smtp4dev
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: smtp4dev
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: smtp4dev
|
||
|
image: rnwood/smtp4dev:v3
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 80
|
||
|
- name: smtp
|
||
|
containerPort: 25
|
||
|
- name: imap
|
||
|
containerPort: 143
|
||
|
volumeMounts:
|
||
|
- name: smtp4dev
|
||
|
mountPath: "/smtp4dev"
|
||
|
env:
|
||
|
- name: ServerOptions__Urls
|
||
|
value: http://*:80
|
||
|
volumes:
|
||
|
- name: smtp4dev
|
||
|
persistentVolumeClaim:
|
||
|
# Name of the PVC created earlier
|
||
|
claimName: smtp4dev
|