问题
I need to disable interactive session/ssh access to a Kubernetes pod.
回答1:
It’s controlled via the RBAC system, via the pods/exec subresource. You can set up your policies however you want.
来源:https://stackoverflow.com/questions/60756423/how-do-i-disable-interactive-session-kubectl-exec-to-a-kubernetes-pod