feat(joplin-server): add probes on ping endpoint (#1675)

* feat(joplin-server): add probes on `ping` endpoint

* bump patch

* make APP_BASE_URL required
This commit is contained in:
Stavros Kois
2022-01-10 19:11:07 +02:00
committed by GitHub
parent 7502a0bdd3
commit f08d13fe4f
3 changed files with 12 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.5.1"
description: This server allows you to sync any Joplin client
name: joplin-server
version: 5.0.19
version: 5.0.20
kubeVersion: '>=1.16.0-0'
keywords:
- joplin

View File

@@ -86,6 +86,7 @@ questions:
description: "Sets the APP_BASE_URL env var"
schema:
type: string
required: true
default: ""
# Include{containerConfig}

View File

@@ -1,9 +1,6 @@
image:
# -- image repository
repository: tccr.io/truecharts/joplin-server
# -- image tag
tag: v2.5.1@sha256:a285ff0cf05f534efd28c6652925b57a9774ba41923d15536b873fbbdbabcd2b
# -- image pull policy
pullPolicy: IfNotPresent
securityContext:
@@ -14,14 +11,9 @@ podSecurityContext:
runAsUser: 0
runAsGroup: 0
# -- environment variables. See [image docs](https://github.com/laurent22/joplin) for more details.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
# -- joplin-server base URL
APP_BASE_URL: https://joplin.domain
# -- joplin-server listening port (same as Service port)
APP_BASE_URL: http://localhost:22300
APP_PORT: 22300
DB_CLIENT: "pg"
POSTGRES_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
@@ -38,8 +30,14 @@ envValueFrom:
name: dbcreds
key: plainhost
# -- Configures service settings for the chart.
# @default -- See values.yaml
probes:
liveness:
path: "/api/ping"
readiness:
path: "/api/ping"
startup:
path: "/api/ping"
service:
main:
ports:
@@ -51,8 +49,7 @@ persistence:
config:
enabled: true
mountPath: "/config"
# -- Enable and configure postgresql database subchart under this key.
# @default -- See values.yaml
postgresql:
enabled: true
existingSecret: "dbcreds"