Provide writable cache for read-only Nginx
Validate, publish and promote pdfcraft / validate (push) Successful in 14s
Validate, publish and promote pdfcraft / publish (push) Successful in 36s

This commit is contained in:
feedc0de
2026-10-18 20:05:53 +02:00
parent a92d5352cc
commit e4aa241081
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -63,6 +63,7 @@ spec:
failureThreshold: 3
volumeMounts:
- {name: tmp, mountPath: /tmp}
- {name: nginx-cache, mountPath: /var/cache/nginx}
- name: nginx-exporter
image: {{ .Values.metrics.exporter.image }}
args: [--nginx.scrape-uri=http://127.0.0.1:8081/nginx_status]
@@ -81,6 +82,8 @@ spec:
volumes:
- name: tmp
emptyDir: {sizeLimit: 1Gi}
- name: nginx-cache
emptyDir: {sizeLimit: 64Mi}
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
+1
View File
@@ -8,3 +8,4 @@ trap 'rm -f "$rendered"' EXIT
helm template pdfcraft "$chart" > "$rendered"
grep -q '^kind: Deployment$' "$rendered"
grep -q '^kind: Service$' "$rendered"
grep -q 'mountPath: /var/cache/nginx' "$rendered"