[nextcloud] fix label
This commit is contained in:
parent
c91efa5d50
commit
265831a84f
1 changed files with 24 additions and 20 deletions
|
@ -21,7 +21,7 @@ spec:
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ tpl .Values.identifier . }}-postgres-config
|
name: {{ tpl .Values.identifier . }}-postgres-config
|
||||||
# Use subpath to avoid lost+found error
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
mountPath: "/var/lib/postgresql/data"
|
mountPath: "/var/lib/postgresql/data"
|
||||||
|
@ -58,7 +58,6 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-nextcloud
|
app: {{ .Release.Name }}-nextcloud
|
||||||
use-as-service: {{ .Release.Name }}
|
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-cert
|
- name: wait-for-cert
|
||||||
|
@ -70,8 +69,18 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
mountPath: "/etc/letsencrypt"
|
mountPath: "/etc/letsencrypt"
|
||||||
|
- name: copy-php
|
||||||
|
image: nextcloud:20-fpm
|
||||||
|
command:
|
||||||
|
- rsync
|
||||||
|
- -a
|
||||||
|
- -v
|
||||||
|
- /var/www/html/
|
||||||
|
- /var/www/nextcloud
|
||||||
|
volumeMounts:
|
||||||
|
- name: nextcloud-php
|
||||||
|
mountPath: "/var/www/nextcloud"
|
||||||
containers:
|
containers:
|
||||||
# This container will only start *after* the cert has been placed
|
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx:1.21-alpine
|
image: nginx:1.21-alpine
|
||||||
ports:
|
ports:
|
||||||
|
@ -81,24 +90,26 @@ spec:
|
||||||
mountPath: "/etc/nginx/conf.d/"
|
mountPath: "/etc/nginx/conf.d/"
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
mountPath: "/etc/letsencrypt"
|
mountPath: "/etc/letsencrypt"
|
||||||
|
- name: nextcloud-php
|
||||||
|
mountPath: "/var/www/nextcloud"
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: nextcloud/nextcloud:{{ .Chart.AppVersion }}
|
image: nextcloud:20-fpm
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 9000
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretRef:
|
secretKeyRef:
|
||||||
name: {{ tpl .Values.identifier . }}-postgres-config
|
name: {{ tpl .Values.identifier . }}-postgres-config
|
||||||
key: POSTGRES_DB
|
key: POSTGRES_DB
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretRef:
|
secretKeyRef:
|
||||||
name: {{ tpl .Values.identifier . }}-postgres-config
|
name: {{ tpl .Values.identifier . }}-postgres-config
|
||||||
key: POSTGRES_USER
|
key: POSTGRES_USER
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretRef:
|
secretKeyRef:
|
||||||
name: {{ tpl .Values.identifier . }}-postgres-config
|
name: {{ tpl .Values.identifier . }}-postgres-config
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
|
@ -106,10 +117,10 @@ spec:
|
||||||
- name: NEXTCLOUD_DATA_DIR
|
- name: NEXTCLOUD_DATA_DIR
|
||||||
value: "/data"
|
value: "/data"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: etcletsencrypt
|
|
||||||
mountPath: "/etc/letsencrypt"
|
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: "/data"
|
mountPath: "/data"
|
||||||
|
- name: nextcloud-php
|
||||||
|
mountPath: "/var/www/nextcloud"
|
||||||
volumes:
|
volumes:
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -123,7 +134,8 @@ spec:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ tpl .Values.identifier . }}-nginx-config
|
name: {{ tpl .Values.identifier . }}-nginx-config
|
||||||
|
- name: nextcloud-php
|
||||||
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -142,14 +154,7 @@ spec:
|
||||||
- port: 443
|
- port: 443
|
||||||
name: https
|
name: https
|
||||||
selector:
|
selector:
|
||||||
use-as-service: {{ .Release.Name }}
|
app: {{ .Release.Name }}-nextcloud
|
||||||
# ---
|
|
||||||
# apiVersion: v1
|
|
||||||
# kind: ConfigMap
|
|
||||||
# metadata:
|
|
||||||
# name: {{ tpl .Values.identifier . }}-nextcloudconfig
|
|
||||||
# data:
|
|
||||||
# {{ tpl (.Files.Glob "nextcloud/*").AsConfig . | indent 2 }}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
@ -195,8 +200,7 @@ spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: certbot-letsencrypt-getcert
|
app: {{ .Release.Name }}-nextcloud
|
||||||
use-as-service: {{ .Release.Name }}
|
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
|
|
Loading…
Reference in a new issue