Skip to content

Commit 44a49d4

Browse files
bootjpCopilot
andauthored
Update docs/redis-proxy-deployment.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 753a980 commit 44a49d4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/redis-proxy-deployment.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,16 @@ spec:
179179
memory: 512Mi
180180
```
181181
182-
> **Note:** The distroless base image does not include `redis-cli`. If you want to use the `exec`-based probes above, build a redis-proxy image that includes `redis-cli` (or another ping tool) in the same container. Otherwise, prefer a `tcpSocket` probe (as below) or an HTTP health endpoint.
182+
> **Note:** The distroless base image does not include `redis-cli`. If you want to use the `exec`-based probe below, build a redis-proxy image that includes `redis-cli` (or another ping tool) in the same container. Otherwise, prefer the `tcpSocket` probes shown in the Deployment spec above or an HTTP health endpoint.
183183

184184
```yaml
185-
# Alternative: TCP socket probe (no redis-cli needed)
185+
# Alternative: exec-based probe (requires redis-cli in the image)
186186
livenessProbe:
187-
tcpSocket:
188-
port: 6479
187+
exec:
188+
command:
189+
- /bin/sh
190+
- -c
191+
- 'redis-cli -p 6479 PING || exit 1'
189192
initialDelaySeconds: 5
190193
periodSeconds: 10
191194
```

0 commit comments

Comments
 (0)