dev-environment/k8s_config/dev/smtp4dev/deployment.yaml

35 lines
735 B
YAML
Raw Permalink Normal View History

2024-11-04 00:22:29 +00:00
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