++nexxxxxxxtcloud
This commit is contained in:
parent
5da9172e78
commit
97b0332ac3
3 changed files with 12 additions and 33 deletions
|
@ -2,14 +2,6 @@ upstream php-handler {
|
||||||
server localhost:9000;
|
server localhost:9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
# server {
|
|
||||||
# listen 80;
|
|
||||||
# listen [::]:80;
|
|
||||||
# server_name _;
|
|
||||||
|
|
||||||
# return 301 https://$server_name$request_uri;
|
|
||||||
# }
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
|
|
@ -60,18 +60,6 @@ spec:
|
||||||
app: {{ .Release.Name }}-nextcloud
|
app: {{ .Release.Name }}-nextcloud
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
# - name: copy-php
|
|
||||||
# image: nextcloud:20-fpm-alpine
|
|
||||||
# command: [ "/bin/sh" ]
|
|
||||||
# env:
|
|
||||||
# - name: NEXTCLOUD_UPDATE
|
|
||||||
# value: "1"
|
|
||||||
# args:
|
|
||||||
# - -c
|
|
||||||
# - "/entrypoint.sh; rsync -a -v /var/www/html/ /var/www/nextcloud"
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: nextcloud-php
|
|
||||||
# mountPath: "/var/www/nextcloud"
|
|
||||||
- name: wait-for-cert
|
- name: wait-for-cert
|
||||||
image: busybox
|
image: busybox
|
||||||
command:
|
command:
|
||||||
|
@ -91,10 +79,10 @@ spec:
|
||||||
mountPath: "/etc/nginx/conf.d/"
|
mountPath: "/etc/nginx/conf.d/"
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
mountPath: "/etc/letsencrypt"
|
mountPath: "/etc/letsencrypt"
|
||||||
- name: nextcloud-php
|
- name: nextcloud-data
|
||||||
mountPath: "/var/www/nextcloud"
|
mountPath: "/var/www/nextcloud"
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: nextcloud:20.0.11-apache
|
image: nextcloud:20.0.11-fpm
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 9000
|
||||||
env:
|
env:
|
||||||
|
@ -115,18 +103,14 @@ spec:
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
value: {{ .Release.Name }}-postgres
|
value: {{ .Release.Name }}-postgres
|
||||||
- name: NEXTCLOUD_DATA_DIR
|
|
||||||
value: "/data"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: nextcloud-data
|
||||||
mountPath: "/data"
|
mountPath: "/var/www/html"
|
||||||
- name: nextcloud-php
|
|
||||||
mountPath: "/var/www/nextcloud"
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ tpl .Values.identifier . }}-letsencrypt-certs
|
claimName: {{ tpl .Values.identifier . }}-letsencrypt-certs
|
||||||
- name: data
|
- name: nextcloud-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ tpl .Values.identifier . }}-data
|
claimName: {{ tpl .Values.identifier . }}-data
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
|
@ -135,8 +119,6 @@ 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
|
||||||
|
@ -176,7 +158,7 @@ spec:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: {{ .Values.datasizeingb }}Gi
|
||||||
storageClassName: rook-cephfs
|
storageClassName: rook-cephfs
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -188,7 +170,7 @@ spec:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 500Mi
|
storage: {{ .Values.dbsizeingb }}Gi
|
||||||
storageClassName: rook-ceph-block
|
storageClassName: rook-ceph-block
|
||||||
---
|
---
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
|
@ -208,6 +190,8 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
env:
|
env:
|
||||||
|
- name: ONLYGETCERT
|
||||||
|
value: "yes"
|
||||||
- name: DOMAIN
|
- name: DOMAIN
|
||||||
value: "{{ tpl .Values.fqdn . }}"
|
value: "{{ tpl .Values.fqdn . }}"
|
||||||
- name: EMAIL
|
- name: EMAIL
|
||||||
|
|
|
@ -6,3 +6,6 @@ letsencryptStaging: "yes"
|
||||||
# persistent thing
|
# persistent thing
|
||||||
identifier: "{{ .Release.Name }}"
|
identifier: "{{ .Release.Name }}"
|
||||||
fqdn: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
|
fqdn: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
|
||||||
|
|
||||||
|
datasizeingb: 1
|
||||||
|
dbsizeingb: 0.5
|
||||||
|
|
Loading…
Add table
Reference in a new issue