Describe the bug
In the first CKAD exam, the solution and the second check is wrong according to kubernetes documentation.
Environment (please complete the following):
Report in Depth
In the first CKAD exam, the solution places the sidecar container in spec.containers (https://github.com/sailor-sh/CK-X/blob/master/facilitator/assets/exams/ckad/001/answers.md#question-6-create-a-multi-container-pod-with-sidecar-logging-pattern) and also the check for the second subtask expects it there (
|
MOUNT_IN_CONTAINER2=$(kubectl get pod sidecar-pod -n troubleshooting -o jsonpath="{.spec.containers[1].volumeMounts[?(@.name==\"$VOLUME\")].mountPath}" 2>/dev/null) |
).
According to the documentation https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers sidecar containers should be placed in spec.initContainers, so the solution and the checks are wrong.
Steps to reproduce
Expected Behavior
Checks passing, correct solution documented.
Actual Behaviour
The check "Pod has shared volume mounted in both containers" fails and the solution places the sidecar container under spec.containers
Screenshots / Logs
Workaround
Additional context
Describe the bug
In the first CKAD exam, the solution and the second check is wrong according to kubernetes documentation.
Environment (please complete the following):
Report in Depth
In the first CKAD exam, the solution places the sidecar container in
spec.containers(https://github.com/sailor-sh/CK-X/blob/master/facilitator/assets/exams/ckad/001/answers.md#question-6-create-a-multi-container-pod-with-sidecar-logging-pattern) and also the check for the second subtask expects it there (CK-X/facilitator/assets/exams/ckad/001/scripts/validation/q6_s2_validate_shared_volume.sh
Line 27 in eaa11c1
According to the documentation https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers sidecar containers should be placed in
spec.initContainers, so the solution and the checks are wrong.Steps to reproduce
Expected Behavior
Checks passing, correct solution documented.
Actual Behaviour
The check "Pod has shared volume mounted in both containers" fails and the solution places the sidecar container under
spec.containersScreenshots / Logs
Workaround
Additional context