A team must set fsGroup for volume ownership and allowPrivilegeEscalation on a single container. Where do these securityContext fields belong?
Select an answer to reveal the explanation.
Short Explanation
Pod-level context is the shared apartment rules (like fsGroup for volumes); container-level is each roommate's personal locks (like allowPrivilegeEscalation). Put each field where the API actually defines it—not on Services or Ingress.
Full Explanation
PodSecurityContext (spec.securityContext on the Pod) holds pod-scoped settings such as fsGroup, runAsUser defaults, and seccompProfile. Container securityContext holds per-container fields including allowPrivilegeEscalation, capabilities, and readOnlyRootFilesystem. Services and Ingress do not carry these securityContext fields.