# 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