Skip to content
Snippets Groups Projects
Commit 9e4970e7 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Merge branch 'fix-update-wiki' into 'main'

Fix update wiki

See merge request !237
parents e3d61e79 d106662b
No related branches found
No related tags found
1 merge request!237Fix update wiki
Pipeline #152752 waiting for manual action with stages
in 10 minutes and 1 second
......@@ -29,6 +29,14 @@ spec:
serviceAccountName: {{ include "df-wiki.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: init-directory
image: busybox
command: ["/bin/sh", "-c"]
args: ["mkdir -p /struct/wiki"]
volumeMounts:
- name: structure-data-pvc
mountPath: /struct
containers:
- name: {{ .Chart.Name }}
securityContext:
......@@ -39,23 +47,24 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /wiki/
port: http
readinessProbe:
httpGet:
path: /wiki/
port: http
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /tmp
name: tmp
- name: nginx-config
mountPath: /etc/nginx/conf.d/
mountPath: /etc/nginx/conf.d
- name: structure-data-pvc
mountPath: /usr/share/nginx/html
subPath: wiki
- name: website-pvc
mountPath: /website
......
......@@ -28,8 +28,7 @@ serviceAccount:
podAnnotations: {}
podSecurityContext:
{}
# fsGroup: 2000
fsGroup: 101
securityContext:
runAsNonRoot: true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment