From 21cc232e080b858896876b589a5e33a396efa202 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 12 Feb 2025 11:43:40 +0100 Subject: [PATCH] fix(deploy): adding missing volume --- resources/deployment.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/deployment.yaml b/resources/deployment.yaml index d1a1b74..3ae5e80 100644 --- a/resources/deployment.yaml +++ b/resources/deployment.yaml @@ -18,20 +18,25 @@ spec: - name: varnish image: reg.cadoles.com/dh/library/varnish:7.6.1-alpine imagePullPolicy: IfNotPresent + env: + - name: VARNISH_HTTP_PORT + value: "8080" envFrom: - configMapRef: name: varnish-env - env: - - VARNISH_HTTP_PORT=8080 ports: - containerPort: 8080 volumeMounts: - mountPath: /etc/varnish/default.vcl name: varnish-config subPath: default.vcl + - mountPath: /var/lib/varnish/varnishd + name: varnish-lib securityContext: readOnlyRootFilesystem: true allowPrivilegeEscalation: false + capabilities: + add: [ "IPC_LOCK" ] volumes: - name: varnish-config configMap: @@ -39,6 +44,9 @@ spec: items: - key: default.vcl path: default.vcl + - name: varnish-lib + emptyDir: + sizeLimit: 1Gi securityContext: runAsUser: 1000 runAsGroup: 1000