chore(receiver): packaging, k8s manifests, CI/release, docs
Dockerfile.receiver (CGO-free, /data volume), receiver image in CI and tag releases, receiver binary in release archives, make build-receiver, example k8s manifests (deployment/service/ingress/secret/pvc) under deploy/k8s/receiver/, and README coverage including sender/receiver token pairing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
beb595442f
commit
c9a963ecdd
@@ -0,0 +1,57 @@
|
||||
# TEMPLATE — single-replica receiver deployment. Keep replicas at 1 while
|
||||
# using the SQLite backend: the database file on the RWO volume supports only
|
||||
# one writer. With RECEIVER_MYSQL_DSN you may scale out and drop the volume.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: exploredns-receiver
|
||||
namespace: exploredns-receiver
|
||||
labels:
|
||||
app: exploredns-receiver
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate # RWO volume: never run old and new pods concurrently
|
||||
selector:
|
||||
matchLabels:
|
||||
app: exploredns-receiver
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: exploredns-receiver
|
||||
spec:
|
||||
containers:
|
||||
- name: receiver
|
||||
image: gitea.hansenits.com.au/hits/exploredns-receiver:latest
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: exploredns-receiver
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 15
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: exploredns-receiver-data
|
||||
Reference in New Issue
Block a user