fix(deploy): adding missing volume
This commit is contained in:
parent
48a657b01a
commit
21cc232e08
@ -18,20 +18,25 @@ spec:
|
|||||||
- name: varnish
|
- name: varnish
|
||||||
image: reg.cadoles.com/dh/library/varnish:7.6.1-alpine
|
image: reg.cadoles.com/dh/library/varnish:7.6.1-alpine
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: VARNISH_HTTP_PORT
|
||||||
|
value: "8080"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: varnish-env
|
name: varnish-env
|
||||||
env:
|
|
||||||
- VARNISH_HTTP_PORT=8080
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /etc/varnish/default.vcl
|
- mountPath: /etc/varnish/default.vcl
|
||||||
name: varnish-config
|
name: varnish-config
|
||||||
subPath: default.vcl
|
subPath: default.vcl
|
||||||
|
- mountPath: /var/lib/varnish/varnishd
|
||||||
|
name: varnish-lib
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
add: [ "IPC_LOCK" ]
|
||||||
volumes:
|
volumes:
|
||||||
- name: varnish-config
|
- name: varnish-config
|
||||||
configMap:
|
configMap:
|
||||||
@ -39,6 +44,9 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: default.vcl
|
- key: default.vcl
|
||||||
path: default.vcl
|
path: default.vcl
|
||||||
|
- name: varnish-lib
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 1Gi
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user