How will go inside the pod as a root?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version:
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS:
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

By default when you execute the following command, you get root privileges.
kubectl exec -it [pod name] bin/bash

thanks for the reply,but this command help only go to the container after that will did any changes it wont work.

What are you trying to accomplish?

Pods are composed of one or more containers; as such, you have the ability to gain access within a container using the kubectl exec -it [pod] (-c [container]) (-n [namespace]) bin/bash

If you’re trying to gain access to the node instead, use ssh followed by the username@node_host