mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Write kubernetes deployment for dummy mailserver
This commit is contained in:
parent
3c36cad373
commit
a2d99c9831
@ -10,6 +10,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
|
# - nitro-mailserver.human-connection.org
|
||||||
- nitro-staging.human-connection.org
|
- nitro-staging.human-connection.org
|
||||||
secretName: tls
|
secretName: tls
|
||||||
rules:
|
rules:
|
||||||
@ -20,3 +21,10 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: nitro-web
|
serviceName: nitro-web
|
||||||
servicePort: 3000
|
servicePort: 3000
|
||||||
|
# - host: nitro-mailserver.human-connection.org
|
||||||
|
# http:
|
||||||
|
# paths:
|
||||||
|
# - path: /
|
||||||
|
# backend:
|
||||||
|
# serviceName: mailserver
|
||||||
|
# servicePort: 80
|
||||||
|
|||||||
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mailserver
|
||||||
|
namespace: human-connection
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
minReadySeconds: 15
|
||||||
|
progressDeadlineSeconds: 60
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
human-connection.org/selector: deployment-human-connection-mailserver
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
human-connection.org/selector: deployment-human-connection-mailserver
|
||||||
|
name: "mailserver"
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mailserver
|
||||||
|
image: djfarrelly/maildev
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
- containerPort: 25
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: configmap
|
||||||
|
- secretRef:
|
||||||
|
name: human-connection
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
status: {}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mailserver
|
||||||
|
namespace: human-connection
|
||||||
|
labels:
|
||||||
|
human-connection.org/selector: deployment-human-connection-mailserver
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
- name: smtp
|
||||||
|
port: 25
|
||||||
|
targetPort: 25
|
||||||
|
selector:
|
||||||
|
human-connection.org/selector: deployment-human-connection-mailserver
|
||||||
@ -2,6 +2,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
data:
|
data:
|
||||||
|
SMTP_HOST: "http://mailserver.human-connection"
|
||||||
|
SMTP_PORT: "25"
|
||||||
|
SMTP_USERNAME: ""
|
||||||
|
SMTP_PASSWORD: ""
|
||||||
GRAPHQL_PORT: "4000"
|
GRAPHQL_PORT: "4000"
|
||||||
GRAPHQL_URI: "http://nitro-backend.human-connection:4000"
|
GRAPHQL_URI: "http://nitro-backend.human-connection:4000"
|
||||||
MOCKS: "false"
|
MOCKS: "false"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user