Merge pull request #82 from PrivateBin/fsgroup-init
replace init container with fsGroup in example k8s deployment
This commit is contained in:
commit
5eb40fe550
1 changed files with 4 additions and 13 deletions
17
README.md
17
README.md
|
@ -85,17 +85,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: privatebin
|
app: privatebin
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
securityContext:
|
||||||
- name: privatebin-volume-permissions
|
runAsUser: 65534
|
||||||
image: privatebin/chown:1.33.0-musl-1.2.2-r0
|
runAsGroup: 82
|
||||||
args: ['65534:82', '/mnt']
|
fsGroup: 82
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /mnt
|
|
||||||
name: privatebin-data
|
|
||||||
readOnly: False
|
|
||||||
containers:
|
containers:
|
||||||
- name: privatebin
|
- name: privatebin
|
||||||
image: privatebin/nginx-fpm-alpine:1.3.5
|
image: privatebin/nginx-fpm-alpine:1.3.5
|
||||||
|
@ -107,8 +100,6 @@ spec:
|
||||||
- name: PHP_TZ
|
- name: PHP_TZ
|
||||||
value: Antarctica/South_Pole
|
value: Antarctica/South_Pole
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 65534
|
|
||||||
runAsGroup: 82
|
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
privileged: false
|
privileged: false
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue