2 Commits

Author SHA1 Message Date
21cc232e08 fix(deploy): adding missing volume 2025-02-12 11:43:40 +01:00
48a657b01a fix(deploy): adding correct listen port 2025-02-12 11:04:46 +01:00
3 changed files with 18 additions and 2 deletions

View File

@ -6,6 +6,9 @@ resources:
- resources/svc.yaml
configMapGenerator:
- name: varnish-env
literals:
- VARNISH_SIZE=1G
- name: varnish-config
files:
- files/default.vcl

View File

@ -16,17 +16,27 @@ spec:
spec:
containers:
- name: varnish
image: reg.cadoles.com/dh/library/varnish:7.6.1
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
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:
@ -34,6 +44,9 @@ spec:
items:
- key: default.vcl
path: default.vcl
- name: varnish-lib
emptyDir:
sizeLimit: 1Gi
securityContext:
runAsUser: 1000
runAsGroup: 1000

View File

@ -7,5 +7,5 @@ spec:
app: varnish
ports:
- protocol: TCP
port: 80
port: 8080
targetPort: 8080