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

Fix update wiki

parent e3d61e79
No related branches found
No related tags found
1 merge request!237Fix update wiki
...@@ -29,6 +29,14 @@ spec: ...@@ -29,6 +29,14 @@ spec:
serviceAccountName: {{ include "df-wiki.serviceAccountName" . }} serviceAccountName: {{ include "df-wiki.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- 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: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
...@@ -39,23 +47,24 @@ spec: ...@@ -39,23 +47,24 @@ spec:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
livenessProbe: # livenessProbe:
httpGet: # httpGet:
path: /wiki/ # path: /
port: http # port: http
readinessProbe: # readinessProbe:
httpGet: # httpGet:
path: /wiki/ # path: /
port: http # port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: /tmp - mountPath: /tmp
name: tmp name: tmp
- name: nginx-config - name: nginx-config
mountPath: /etc/nginx/conf.d/ mountPath: /etc/nginx/conf.d
- name: structure-data-pvc - name: structure-data-pvc
mountPath: /usr/share/nginx/html mountPath: /usr/share/nginx/html
subPath: wiki
- name: website-pvc - name: website-pvc
mountPath: /website mountPath: /website
......
...@@ -28,8 +28,7 @@ serviceAccount: ...@@ -28,8 +28,7 @@ serviceAccount:
podAnnotations: {} podAnnotations: {}
podSecurityContext: podSecurityContext:
{} fsGroup: 101
# fsGroup: 2000
securityContext: securityContext:
runAsNonRoot: true runAsNonRoot: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment