Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kube-controller-manager is not appearing on Google Kubernetes Engine

Folks, I am using Google Cloud Kubernetes Engine. I want to browse through some of the logs that should be available namely kube-controller-manager logs. I am certain I have done this recently on the same setup but I can't figure it out now. So here's the thing:

  1. There's no component anyhow related to kube-controller-manager in the kube-system namespace. I have tried: kubectl get pods -namespace=kube-system
  2. There's no logs if I am connecting to the VM running k8s node (any of them, I tried all) in /var/log related to kube-controller-manager. Connected to all nodes (VMs) via SSH and tried to browse /var/logs/
  3. There seem to be only one manifest in /etc/kubernetes/manifests and it's kube-proxy one. I was expecting to have kube-controller-manager and a few others to be in that directory.

Can someone point me to a place where I should be looking? Has this been changed recently on GKE?

like image 834
ninjaboy Avatar asked Jan 22 '19 12:01

ninjaboy


People also ask

Where is kube-Controller-Manager running?

Kube-controller-manager runs in master nodes and it takes care of the different controller processes. These controllers watch the status of the different services deployed through the API and take corrective actions in case real and desired status don't match.

Where is kube-controller-manager Yaml?

The kube-controller-manager runs as a pod in your control plane. It's config file is located in /etc/kubernetes/manifests , a kube-controller-manager. yaml .

What is kube-controller-manager in Kubernetes?

The Kubernetes controller manager is a daemon that embeds the core control loops shipped with Kubernetes. In applications of robotics and automation, a control loop is a non-terminating loop that regulates the state of the system.

Can I create my own controller manager in Kubernetes?

You can find controllers that run outside the control plane, to extend Kubernetes. Or, if you want, you can write a new controller yourself. You can run your own controller as a set of Pods, or externally to Kubernetes.


1 Answers

The kube-controller-manager runs as a pod on the master and is managed by Google, therefore it is not accessible to the public. I do not believe that has been changed recently if ever.

like image 116
dany L Avatar answered Oct 19 '22 14:10

dany L