For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To Modify/Add APIServer, ControllerManager & Scheduler Flags on an Existing Cluster

Problem

How To Modify/Add APIServer, ControllerManager & Scheduler Flags on an Existing Cluster?

As an example, we will be looking to modify the default pod eviction timeout "--pod-eviction-timeout" controlled by the kube-controller-manager.

Environment

  • Platform9 Managed Kubernetes (PMK) - All Versions

Procedure

The default pod eviction timeout value is 5 minutes. This can be modified using the steps outlined on the master node part of the cluster.

Info

The steps will remain same for any other flag that needs to be changed or added for kube-apiserver, kube-controller-manager & kube-scheduler.

Certain default flag values are already set in PMK's default configuration file. The path for the same is mentioned below.

  1. Backup the original master.yaml file (PMK's default configuration file) to some other location on the node.

  1. Stop the PMK Stack.

  1. Add/Modify the required flag and it's corresponding value in this case "--pod-eviction-timeout=7m0s" to the file _/opt/pf9/pf9-kube/conf/masterconfig/base/centos/master.yaml_in the _kube-controller-manager_ container's command section. The file path will be different for Ubuntu OS as mentioned previously.

Post modification, the kube-controller-manager container section of master.yaml file should look as shown below.

  1. Start the PMK Stack.

Additional Information

Last updated