CK.I · CKAD practice question
You are migrating a legacy workload on Kubernetes v1.37 that previously used an inline gitRepo volume. Which approach is recommended after the removal of the gitRepo volume driver?
Check answer and explanation
Correct answer: Use an emptyDir volume populated by an initContainer or git-sync container
Explanation
Because the gitRepo volume driver was removed due to security risks, cloning repositories via an init container or sidecar/git-sync into an emptyDir volume is the standard pattern.
Common trap
Because the gitRepo volume driver was removed due to security risks, cloning repositories via an init container or sidecar/git-sync into an emptyDir volume is the standard pattern.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.