How to restart kubelet on master to change flag options and how to apply that in terraform

Bojan Radulovic picture Bojan Radulovic · Apr 18, 2017 · Viewed 7.3k times · Source

Kops created a cluster as well as terraform scripts.

How to restart kubelet and provide new flags for garbage collection(manual approach) and how to apply them to terraform?

Problem occurs when I manually kill the kubelet process on master and it keeps getting restarted immediately.

Answer

Abhishek picture Abhishek · Nov 30, 2017

You could change the /etc/sysconfig/kubelet file. In the config, append / change the flags you need. Then restart the kubelet service using $ systemctl restart kubelet