Revision history [back]

click to hide/show revision 1
initial version

how i can run kubectl get pods in controller?

i install magnum in rocky ( after that i run

$ mkdir -p ~/clusters/kubernetes-cluster
$ $(openstack coe cluster config kubernetes-cluster --dir ~/clusters/kubernetes-cluster)
export KUBECONFIG=/home/user/clusters/kubernetes-cluster/config

that is every thing ok until now but when i run

kubectl -n kube-system get po
**controller does not understand kebectl
Command 'kubectl' not found, but can be installed with:

snap install kubectl**

it is obvios that i do not install kuberneties in my controller because the container should run in vm like fedora

so should i install kubernetis on controller? if yes why it is neede if no why should i install kubernetis in a controller that does not create pod and how controller understand the pod of vm in compute