1
0

volumes permissions

This commit is contained in:
sido 2018-06-27 17:00:10 +02:00
parent ef4462a7c3
commit 399abaf4f9
2 changed files with 7 additions and 7 deletions

View File

@ -19,9 +19,6 @@ spec:
app: {{ .Values.nexus.name }} app: {{ .Values.nexus.name }}
creationTimestamp: null creationTimestamp: null
spec: spec:
securityContext:
runAsUser: 200
fsGroup: 200
volumes: volumes:
- name: molgenis-nexus-data - name: molgenis-nexus-data
persistentVolumeClaim: persistentVolumeClaim:
@ -29,6 +26,13 @@ spec:
restartPolicy: {{ .Values.nexus.restartPolicy }} restartPolicy: {{ .Values.nexus.restartPolicy }}
containers: containers:
- name: {{ .Values.nexus.name }} - name: {{ .Values.nexus.name }}
initContainers:
- name: volume-mount-nexus
image: busybox
command: ["sh", "-c", "chown -R 200:200 /gcc/molgenis/nexus"]
volumeMounts:
- name: molgenis-nexus-data
mountPath: "/nexus-data"
image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}" image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}"
imagePullPolicy: {{ .Values.nexus.image.pullPolicy }} imagePullPolicy: {{ .Values.nexus.image.pullPolicy }}
ports: ports:
@ -37,6 +41,4 @@ spec:
volumeMounts: volumeMounts:
- name: molgenis-nexus-data - name: molgenis-nexus-data
mountPath: "/nexus-data" mountPath: "/nexus-data"
# securityContext:
# allowPrivilegeEscalation: false

View File

@ -2,8 +2,6 @@ apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: molgenis-nexus-data name: molgenis-nexus-data
annotations:
pv.beta.kubernetes.io/gid: "200"
labels: labels:
name: nfs2 name: nfs2
spec: spec: