6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Add missing smtp service to kubernetes

This commit is contained in:
Régis Behmo 2019-03-20 18:35:09 +01:00
parent f6d6fb642d
commit 960816b002
2 changed files with 34 additions and 0 deletions

View File

@ -242,6 +242,27 @@ spec:
claimName: mysql
{% endif %}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: smtp
spec:
replicas: 1
selector:
matchLabels:
app: smtp
template:
metadata:
labels:
app: smtp
spec:
containers:
- name: smtp
image: {{ DOCKER_REGISTRY }}{{ DOCKER_IMAGE_SMTP }}
ports:
- containerPort: 25
---
apiVersion: apps/v1
kind: Deployment

View File

@ -130,3 +130,16 @@ spec:
selector:
app: rabbitmq
{% endif %}
---
apiVersion: v1
kind: Service
metadata:
name: smtp
spec:
type: NodePort
ports:
- port: 25
protocol: TCP
selector:
app: smtp