diff --git a/README.md b/README.md index f4d4110..06c39a6 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Here's a summary of the available configuration options: | relay.secrets | array | `[]` | Defines container environment variables or volumes populated from k8s secrets | | relay.volume | object | `{}` | Enables offline mode or references an existing config file from a defined volume | | relay.livenessProbe | object | `{httpGet: { port: "api", path: "/status" }}` | Defines the liveness probe for the relay container | -| relay.readinessProbe | object | `{httpGet: { port: "api", path: "/status" }}` | Defines the readiness probe for the relay container | +| relay.readinessProbe | object | `{httpGet: null, failureThreshold: 1, exec: ... curl,grep }` | Defines the readiness probe for the relay container | | replicaCount | integer | `1` | Number of replicas of the relay pod | | image.repository | string | `launchdarkly/ld-relay` | ld-relay image repository | | image.pullPolicy | string | `IfNotPresent` | ld-relay image pull policy | diff --git a/values.yaml b/values.yaml index aa1e601..e130d7d 100644 --- a/values.yaml +++ b/values.yaml @@ -188,10 +188,15 @@ relay: path: /status port: api readinessProbe: - httpGet: - path: /status - port: api - + httpGet: null + failureThreshold: 1 + exec: + command: + - sh + - -c + - >- + curl -s -X GET "http://127.0.0.1:8030/status" | + grep -q healthy # Enables mounting a k8s volume onto the relay container. #