Study. uk . com
  1. Home
  2. All questions
  3. Question 972

CKA study material · question 972 of 1000

A ConfigMap is created from a directory containing regular files, a subdirectory and a symlink. What is packaged?

  1. Everything, with directories flattened
  2. Only the symlinks' targets
  3. Nothing; the command requires individual files
  4. Only the regular files whose basenames are valid keys
Show the answer

Answer: D. Only the regular files whose basenames are valid keys

Directory entries other than regular files — subdirectories, symlinks, devices, pipes — are ignored, as are files whose basenames are not valid keys.

Source: kubectl create configmap (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards