Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions apps/filehosting/nextcloud/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ spec:
zz-pm_children.conf: |-
[www]
pm=dynamic
pm.max_children=21
pm.start_servers=5
pm.min_spare_servers=5
pm.max_spare_servers=15
pm.max_children=40
pm.start_servers=8
pm.min_spare_servers=8
pm.max_spare_servers=24
zz-max_upload_size.ini: |-
upload_max_filesize=10240M
post_max_size=10240M
Expand Down Expand Up @@ -328,5 +328,23 @@ spec:
resourcesPreset: "micro"
persistence:
enabled: false
startupProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 60
livenessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 15
failureThreshold: 6
readinessProbe:
enabled: true
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 10
persisitence:
enabled: false
7 changes: 7 additions & 0 deletions apps/filehosting/nextcloud/cnp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ spec:
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: "{{ .customer.name }}-nextcloud-{{ .customer.stage }}"
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: cnpg-operator
toPorts:
- ports:
- port: "8000"
protocol: TCP
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: ingress-nginx
Expand Down
2 changes: 2 additions & 0 deletions apps/filehosting/nextcloud/deploy/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: nextcloud-postgresql
annotations:
argocd.argoproj.io/ignore-healthcheck: "true"
spec:
instances: 1
storage:
Expand Down