From 934958d26650ed8cd527478adb71a687fad7d53d Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 2 Jan 2025 09:19:51 -0600 Subject: [PATCH] Recommend actual sidecar installation in sample pod A kubernetes sidecar is an initContainer with restartPolicy:Always. Since we are already calling the helper repositories sidecars, it helps if the example for the user actually installs them as a true sidecar, rather than as a regular container. Signed-off-by: Eric Blake --- book/src/deploying.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/src/deploying.md b/book/src/deploying.md index 44b67c6d..1d2c49ba 100644 --- a/book/src/deploying.md +++ b/book/src/deploying.md @@ -73,7 +73,9 @@ on the host to see mounts created by the CSI driver container. See the example b - name: mountpoint-dir mountPath: /var/lib/kubelet/pods mountPropagation: "Bidirectional" + initContainers: - name: node-driver-registrar + restartPolicy: Always ... volumeMounts: - name: registration-dir