If the pod scales, only the main container scales or both main container and sidecar container scales? If the pod scales, only the main container scales or both main container and sidecar container scales? kubernetes kubernetes

If the pod scales, only the main container scales or both main container and sidecar container scales?


From the official kubernetes documentation:

Pods are the smallest deployable units of computing that you can create and manage in Kubernetes.

Therefore, if we scale a pod, we scale all its containers.