Move nextcloud probes to http/https instead of tcp (#652)

* no message

* back to tcp

* no message

* no message

* try some tweaking of the probes

* try again

* use new common

* try not using empty-dir

* try setting type

* more

* size set

* hmm

* disable cron for now

* mount html instead of www

* use nextcloud user for initcontainer checkings

* Try some more tweaking

* hmmm

* whoops

* also try custom startup probe

* reenable cronjob

* cleaning
This commit is contained in:
Kjeld Schouten-Lebbing
2021-07-04 16:46:10 +02:00
committed by GitHub
parent edbec052db
commit 04ddaee8f2
5 changed files with 94 additions and 32 deletions
+1 -1
View File
@@ -35,4 +35,4 @@ sources:
- https://github.com/nextcloud/docker - https://github.com/nextcloud/docker
- https://github.com/nextcloud/helm - https://github.com/nextcloud/helm
type: application type: application
version: 1.0.18 version: 1.0.19
+37 -13
View File
@@ -47,7 +47,7 @@ initContainers:
command: command:
- "sh" - "sh"
- "-c" - "-c"
- "until pg_isready -h ${pghost} ; do sleep 2 ; done" - "until pg_isready -U nextcloud -h ${pghost} ; do sleep 2 ; done"
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
- name: pghost - name: pghost
@@ -63,32 +63,56 @@ probes:
# -- Liveness probe configuration # -- Liveness probe configuration
# @default -- See below # @default -- See below
liveness: liveness:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
# -- Redainess probe configuration # -- Redainess probe configuration
# @default -- See below # @default -- See below
readiness: readiness:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
# -- Startup probe configuration # -- Startup probe configuration
# @default -- See below # @default -- See below
startup: startup:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
## Cronjob to execute Nextcloud background tasks ## Cronjob to execute Nextcloud background tasks
## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron ## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
@@ -124,6 +124,13 @@ questions:
schema: schema:
type: string type: string
default: "172.16.0.0/16" default: "172.16.0.0/16"
- variable: NODE_IP
label: "NODE_IP"
description: "Sets nextcloud nodeip for nodeport connections"
schema:
type: string
$ref:
- "definitions/nodeIP"
# Configure Enviroment Variables # Configure Enviroment Variables
@@ -17,7 +17,7 @@ kind: ConfigMap
metadata: metadata:
name: nextcloudconfig name: nextcloudconfig
data: data:
NEXTCLOUD_TRUSTED_DOMAINS: {{ $hosts | quote }} NEXTCLOUD_TRUSTED_DOMAINS: {{ ( printf "%v %v %v" "test.fakedomain.dns" ( .Values.env.NODE_IP | default "localhost" ) $hosts ) | quote }}
{{- if .Values.ingress.main.enabled }} {{- if .Values.ingress.main.enabled }}
APACHE_DISABLE_REWRITE_IP: "1" APACHE_DISABLE_REWRITE_IP: "1"
{{- end }} {{- end }}
+48 -17
View File
@@ -48,20 +48,26 @@ envValueFrom:
persistence: persistence:
data: data:
enabled: true enabled: true
mountPath: "/var/www" mountPath: "/var/www/html"
type: emptyDir type: pvc
accessMode: ReadWriteOnce
size: "100Gi"
db: db:
noMount: true noMount: true
forceName: "db" forceName: "db"
enabled: true enabled: true
type: emptyDir type: pvc
accessMode: ReadWriteOnce
size: "100Gi"
redismaster: redismaster:
noMount: true noMount: true
forceName: "redismaster" forceName: "redismaster"
enabled: true enabled: true
type: emptyDir type: pvc
accessMode: ReadWriteOnce
size: "100Gi"
initContainers: initContainers:
- name: init-postgresdb - name: init-postgresdb
@@ -69,7 +75,7 @@ initContainers:
command: command:
- "sh" - "sh"
- "-c" - "-c"
- "until pg_isready -h ${pghost} ; do sleep 2 ; done" - "until pg_isready -U nextcloud -h ${pghost} ; do sleep 2 ; done"
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
- name: pghost - name: pghost
@@ -88,32 +94,57 @@ probes:
# -- Liveness probe configuration # -- Liveness probe configuration
# @default -- See below # @default -- See below
liveness: liveness:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
# -- Redainess probe configuration # -- Redainess probe configuration
# @default -- See below # @default -- See below
readiness: readiness:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
# -- Startup probe configuration # -- Startup probe configuration
# @default -- See below # @default -- See below
startup: startup:
# -- sets the probe type when not using a custom probe custom: true
# @default -- "TCP"
type: HTTP
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
# @default -- "/" # @default -- "/"
path: /status.php spec:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: "test.fakedomain.dns"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 5
## Cronjob to execute Nextcloud background tasks ## Cronjob to execute Nextcloud background tasks
## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron ## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron