initial
This commit is contained in:
14
deploy.sh
Executable file
14
deploy.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAMESPACE=mail
|
||||||
|
|
||||||
|
kubectl create secret generic smtp-secrets \
|
||||||
|
--dry-run=client \
|
||||||
|
-o yaml \
|
||||||
|
--save-config \
|
||||||
|
--from-literal=RELAY_NETWORKS=":10.0.0.0/8" | \
|
||||||
|
kubectl apply -n $NAMESPACE -f -
|
||||||
|
|
||||||
|
kubectl apply -n $NAMESPACE -f deploy.yml
|
||||||
|
|
||||||
|
|
||||||
42
deploy.yml
Normal file
42
deploy.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: smtp
|
||||||
|
labels:
|
||||||
|
app: smtp
|
||||||
|
annotations:
|
||||||
|
secret.reloader.stakater.com/reload: smtp-secrets
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: smtp
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: smtp
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: smtp
|
||||||
|
image: quay.io/wollud1969/exim-docker:0.5.0
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: smtp-secrets
|
||||||
|
ports:
|
||||||
|
- containerPort: 25
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: smtp
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: smtp
|
||||||
|
ports:
|
||||||
|
- name: smtp
|
||||||
|
protocol: TCP
|
||||||
|
port: 25
|
||||||
|
targetPort: 25
|
||||||
|
|
||||||
Reference in New Issue
Block a user