Compare commits

..

2 Commits
v0.0.2 ... main

Author SHA1 Message Date
4cea0437f3 fix(svc): adding a port name 2025-02-12 11:48:38 +01:00
21cc232e08 fix(deploy): adding missing volume 2025-02-12 11:43:40 +01:00
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -6,6 +6,7 @@ spec:
selector:
app: varnish
ports:
- protocol: TCP
- name: varnish-http
protocol: TCP
port: 8080
targetPort: 8080