Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

add environment variable to kube-scheduler

We’re running K8s on EC2 instances. These have a volume limit of 25 per node. So we need to set the KUBE_MAX_PD_VOLS environment variable for the kube-scheduler. The thing is, I don’t know how to set it. I can not add it to the pod definition as it’s not allowed to edit this field. Additionally there’s no deployment, stateful set or daemon set that defines the pods. So where the hack can I set it? The documentation of Kubernetes is not helpful in this case.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Preumed your cluster is built with kubeadm, you specify this environment variable in the kube-scheduler static pod spec at /etc/kubernetes/manifests/kube-scheduler.yaml.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading