if suppose i have two containers in a pod, is it possible to configure HPA autoscaling only for one container in a pod? also can the resources be defined separately for each container?
Pods are the smallest unit of work when scheduling in Kubernetes .So you can’t just scale one container. In this scenario, you should split them up into different pods. Also, you can define resources per container - refer to this - https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory