From a4425303c408dbe3ddfc343388036398395ee921 Mon Sep 17 00:00:00 2001 From: bp99 Date: Mon, 21 Apr 2025 00:30:02 +0200 Subject: [PATCH] chart-wyoming_piper: add proper probes --- charts/wyoming-piper/Chart.yaml | 2 +- charts/wyoming-piper/values.yaml | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/charts/wyoming-piper/Chart.yaml b/charts/wyoming-piper/Chart.yaml index 293fff0..f208e1f 100644 --- a/charts/wyoming-piper/Chart.yaml +++ b/charts/wyoming-piper/Chart.yaml @@ -3,5 +3,5 @@ apiVersion: v2 name: wyoming-piper description: Wyoming protocol server for the Piper text to speech system. type: application -version: 0.1.1 +version: 0.1.2 appVersion: '1.5.0' diff --git a/charts/wyoming-piper/values.yaml b/charts/wyoming-piper/values.yaml index 5ed0833..9d46f53 100644 --- a/charts/wyoming-piper/values.yaml +++ b/charts/wyoming-piper/values.yaml @@ -70,14 +70,24 @@ resources: {} # memory: 128Mi livenessProbe: - httpGet: - path: / - port: http + tcpSocket: + port: 10200 + initialDelaySeconds: 15 + periodSeconds: 10 + timeoutSeconds: 5 readinessProbe: - httpGet: - path: / - port: http + exec: + command: + - /bin/sh + - -c + - >- + echo '{ "type": "describe" }' | nc localhost 10200 + initialDelaySeconds: 15 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 autoscaling: enabled: false