mirror of
https://github.com/plausible/hosting.git
synced 2024-11-17 13:15:58 -06:00
71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: plausible-smtp
|
|
labels:
|
|
app.kubernetes.io/name: smtp
|
|
app.kubernetes.io/component: email
|
|
app.kubernetes.io/part-of: plausible
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: smtp
|
|
port: 25
|
|
targetPort: 25
|
|
protocol: TCP
|
|
selector:
|
|
app.kubernetes.io/name: smtp
|
|
app.kubernetes.io/component: database
|
|
app.kubernetes.io/part-of: plausible
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: plausible-smtp
|
|
labels:
|
|
app.kubernetes.io/name: smtp
|
|
app.kubernetes.io/component: email
|
|
app.kubernetes.io/part-of: plausible
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: smtp
|
|
app.kubernetes.io/component: email
|
|
app.kubernetes.io/part-of: plausible
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: smtp
|
|
app.kubernetes.io/component: email
|
|
app.kubernetes.io/part-of: plausible
|
|
spec:
|
|
restartPolicy: Always
|
|
containers:
|
|
- name: plausible-smtp
|
|
image: bytemark/smtp:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 25
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
cpu: 500m
|
|
requests:
|
|
memory: 5Mi
|
|
cpu: 1m
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 25
|
|
initialDelaySeconds: 20
|
|
failureThreshold: 6
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 25
|
|
initialDelaySeconds: 30
|
|
failureThreshold: 3
|
|
periodSeconds: 10
|