ConfigMaps, Secrets, PersistentVolumes and Claims, StorageClasses, RBAC, ServiceAccounts, Pod Security and CKAD and CKS topics.
39 cards · basic cards · AI-written, checked twice. Edit anything.
- What are ConfigMaps used for in Kubernetes?
Show answer
Storing non-sensitive configuration data as key-value pairs that can be consumed by Pods
- How do you create a ConfigMap from a literal key-value pair on the command line?
Show answer
kubectl create configmap <name> --from-literal=<key>=<value>
- Can ConfigMaps store binary data?
Show answer
No, ConfigMaps store only text data as key-value strings
- What is the maximum size of a ConfigMap?
Show answer
1 MB
- How do you inject ConfigMap data as environment variables into a Pod?
Show answer
Use envFrom.configMapRef with the ConfigMap name, or env.valueFrom.configMapKeyRef for individual keys
- What encoding does Kubernetes use for Secret data at rest in etcd?
Show answer
Base64 by default (base64 is encoding, not encryption)
- How do you create a generic Secret from a file using kubectl?
Show answer
kubectl create secret generic <name> --from-file=<path>
- What is the maximum size of a Kubernetes Secret?
Show answer
1 MB
- When would you use a kubernetes.io/dockercfg Secret type?
Show answer
To store Docker registry credentials for pulling images from private registries
- What is the main difference between Secrets and ConfigMaps regarding data sensitivity?
Show answer
Secrets are intended for sensitive data, while ConfigMaps are for non-sensitive configuration
- What is a PersistentVolume?
Show answer
A cluster-level storage resource that exists independently of any Pod
- What is a PersistentVolumeClaim?
Show answer
A request for storage by a Pod, which binds to an available PersistentVolume
- Name the three PersistentVolume access modes
Show answer
ReadWriteOnce (RWO), ReadOnlyMany (ROX), ReadWriteMany (RWX)
- What does it mean when a PersistentVolumeClaim status is Bound?
Show answer
The PVC has successfully matched with an available PersistentVolume
- What is a reclaim policy for a PersistentVolume?
Show answer
The action taken when a PVC is deleted: either Retain, Delete, or Recycle