I deployed Postgresql on Azure Kubernetes Service (AKS). It works fine.
But when I login to the pod with kubectl exec -it pod_name bash, it's automatically login with "postgres" user and I can't switch to the "root" user.
If I could able to login Kubernetes' nodes with ssh, I could use docker exec -it -u root image_id and login with "root" user, but as I know it's not possible on Azure.
How can I login to the pods as "root" user on AKS?
Thanks!