62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
# Read-only HTTP file server exposing the digest workflow's output
|
|
# (n8n-digest-workspace PVC, digests/ subdirectory) for browsing/download,
|
|
# instead of email delivery (no SMTP configured).
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: digest-files
|
|
namespace: watch
|
|
labels:
|
|
app.kubernetes.io/name: digest-files
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: digest-files
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: digest-files
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginxinc/nginx-unprivileged:alpine
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
volumeMounts:
|
|
- name: digests
|
|
mountPath: /usr/share/nginx/html
|
|
subPath: digests
|
|
readOnly: true
|
|
- name: nginx-conf
|
|
mountPath: /etc/nginx/conf.d/default.conf
|
|
subPath: default.conf
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 32Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 128Mi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 20
|
|
volumes:
|
|
- name: digests
|
|
persistentVolumeClaim:
|
|
claimName: n8n-digest-workspace
|
|
- name: nginx-conf
|
|
configMap:
|
|
name: digest-files-nginx-conf
|