This commit is contained in:
parent
b57cc949d3
commit
d7ed6afe41
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*~
|
||||
.*~
|
||||
ENV
|
||||
ENV.test
|
||||
|
9
ENV
9
ENV
@ -1,9 +0,0 @@
|
||||
export HOSTNAME=`hostname`
|
||||
export LOCALMAILNAME="hottis.de"
|
||||
#export LOCALMAILNAME=""
|
||||
export SMARTHOST=smtprelaypool.ispgateway.de
|
||||
#export SMARTHOST=""
|
||||
export SMARTHOST_USER=pseudosmarthostuser@hottis.de
|
||||
#export SMARTHOST_USER="_"
|
||||
export SMARTHOST_PASS="Chaediek3Chaer7u"
|
||||
export RELAYNETS="0.0.0.0/0"
|
16
examples/deploy.sh
Executable file
16
examples/deploy.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
kubectl create secret generic smtp-secrets \
|
||||
--dry-run=client \
|
||||
-o yaml \
|
||||
--save-config \
|
||||
--from-literal=SMARTHOST="smtprelaypool.ispgateway.de" \
|
||||
--from-literal=SMARTHOST_USER="pseudosmarthostuser@hottis.de" \
|
||||
--from-literal=SMARTHOST_PASS="$SMARTHOST_PASSWORD" \
|
||||
--from-literal=RELAY_NETWORKS=":10.0.0.0/8" | \
|
||||
kubectl apply -n system -f -
|
||||
|
||||
kubectl apply -n system -f deploy.yml
|
||||
|
||||
|
42
examples/deploy.yml
Normal file
42
examples/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.2.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user