PodSpec
PodSpec is the specification that describes the desired state of a Pod in Kubernetes. It is a core part of the Pod API object and defines the runtime requirements that Kubernetes should deliver when creating and running a pod. The PodSpec focuses on what containers and volumes the pod should contain, how they should be configured, and various scheduling and networking settings that affect the pod’s execution.
At the heart of a PodSpec are containers. The containers array specifies one or more container definitions,
Volumes defined in the PodSpec provide persistent or ephemeral storage to the containers. Each volume is given
Beyond containers and volumes, the PodSpec includes scheduling and networking-related settings. These include restartPolicy, dnsPolicy, serviceAccountName,
PodSpec is used by Pods directly and by higher-level controllers through PodTemplateSpec to describe the desired