mirror of
https://github.com/plausible/hosting.git
synced 2024-12-22 12:03:18 -06:00
2a9eaf06bc
The selector was set incorrectly and hence would point to nothing causing 500 errors when sending emails. I must have not tested with SMTP when I originally created the Kubernetes configurations hence this mistake made it through.
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: email
|
|
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
|