Skip to content
Snippets Groups Projects
Unverified Commit 58472e29 authored by Göran Pöhner's avatar Göran Pöhner Committed by GitHub
Browse files

Investigate Nextcloud warning about read-only file-sys for redis config (#758)

parent 8ec4b16c
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ maintainers: ...@@ -8,7 +8,7 @@ maintainers:
- name: groundhog2k - name: groundhog2k
# This is the chart version. # This is the chart version.
version: 0.9.0 version: 0.9.1
# This is the version number of the application being deployed. # This is the version number of the application being deployed.
appVersion: "23.0.0-apache" appVersion: "23.0.0-apache"
......
# Nextcloud # Nextcloud
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.0.0-apache](https://img.shields.io/badge/AppVersion-23.0.0-informational?style=flat-square) ![Version: 0.9.1](https://img.shields.io/badge/Version-0.9.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.0.0-apache](https://img.shields.io/badge/AppVersion-23.0.0-informational?style=flat-square)
A Helm chart for Nextcloud on Kubernetes A Helm chart for Nextcloud on Kubernetes
......
...@@ -49,6 +49,26 @@ spec: ...@@ -49,6 +49,26 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /var/datavolume - mountPath: /var/datavolume
name: nextcloud-data-vol name: nextcloud-data-vol
- name: {{ .Chart.Name }}-initconfd
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ['sh', '-c', 'cp -R /usr/local/etc/php/conf.d/* /confd && chmod 660 /confd/*']
volumeMounts:
- mountPath: /confd
name: confd
- mountPath: /usr/local/etc/php/conf.d/custom.ini
subPath: custom.ini
name: extended
- mountPath: /usr/local/etc/php/conf.d/memory-limit.ini
subPath: memory-limit.ini
name: extended
- mountPath: /usr/local/etc/php/conf.d/redis-session.ini
subPath: redis-session.ini
name: extended
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{- with .Values.securityContext }} {{- with .Values.securityContext }}
...@@ -138,15 +158,8 @@ spec: ...@@ -138,15 +158,8 @@ spec:
- mountPath: /etc/apache2/000-default.conf - mountPath: /etc/apache2/000-default.conf
subPath: 000-default.conf subPath: 000-default.conf
name: extended name: extended
- mountPath: /usr/local/etc/php/conf.d/custom.ini - mountPath: /usr/local/etc/php/conf.d
subPath: custom.ini name: confd
name: extended
- mountPath: /usr/local/etc/php/conf.d/memory-limit.ini
subPath: memory-limit.ini
name: extended
- mountPath: /usr/local/etc/php/conf.d/redis-session.ini
subPath: redis-session.ini
name: extended
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
...@@ -164,6 +177,8 @@ spec: ...@@ -164,6 +177,8 @@ spec:
emptyDir: {} emptyDir: {}
- name: run - name: run
emptyDir: {} emptyDir: {}
- name: confd
emptyDir: {}
- name: extended - name: extended
configMap: configMap:
name: {{ include "nextcloud.fullname" . }}-extended name: {{ include "nextcloud.fullname" . }}-extended
......
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