4

I have a local minikube installation. I want to change the authentication mechanism for the api-server and restart and test it out. All the documentation I have read lacks this information.

David Medinets
  • 5,160
  • 3
  • 29
  • 42
Vaibhav Ranglani
  • 215
  • 1
  • 2
  • 14
  • Yes, you can. Have you tried it? – ffledgling Apr 25 '18 at 07:57
  • I have a command line utility kubectl which helps interact with the api-server. How do we access the api-server directly??? – Vaibhav Ranglani Apr 25 '18 at 08:13
  • 1
    You can ssh into minikube using `minikube ssh` and restart kube-apiserver service using systemctl like `systemctl restart kube-apiserver`. Check [this](https://stackoverflow.com/questions/51666507/how-to-restart-the-kube-apiserver) – vadasambar Jul 31 '19 at 12:34
  • @vadasambar That would be a good answer. – Kyle Strand Aug 12 '19 at 23:19
  • 1
    @KyleStrand, thank you :) Actually, this method did not work for me because I couldn't find kube-apiserver service in my minikube. Hence, I can't verify if it actually works myself. – vadasambar Aug 13 '19 at 05:59

1 Answers1

3

Yes you can. The kubernetes API Server, Controller manager, and scheduler are all run as static manifests in minikube.

So, in fact, in your example: Any change to the manifest will automatically lead to them being restarted instantly.

In order to make the modification, just use vi inside of /etc/kubernetes/manifests on whatever file you want to edit, and you'll see that the apiserver instantly restarts.

To look at the logs of the restart, you can look in /var/log/containers/ where each of the individual minikube services run.

jayunit100
  • 17,388
  • 22
  • 92
  • 167