Configure a new kubernetes node automatically

Server Fault Asked by Sadmi on November 26, 2020

I configured a Kubernetes cluster with GPU in AWS, and one of the steps is configuring the nodes to enable Nvidia runtime by default.

So when I configured cluster auto scaler, the cluster scales up successfully but the new node still needs to be configured to use Nvidia as a default runtime.

My goal is to configure this step automatically, I wonder if there is a way to do this with Kubernetes, like specifying the commands to execute in startup in the instance group. (just like in GCP where you are able to define a startup script or in AWS called a user data for launching scripts).


One Answer

I found an interesting resource here that helped me to achieve my goal above.

so the it's possible to define additional user data section in the instance group configuration.

In my case I was about to enable Nvidia runtime which I achieved as follows:

  - content: |
      sudo sed -i '2i "default-runtime": "nvidia",' /etc/docker/daemon.json && sudo systemctl restart docker
    type: text/x-shellscript 

Answered by Sadmi on November 26, 2020

Add your own answers!

Related Questions

Any way to migrate AWS T3 x64 to T4G ARM?

1  Asked on November 27, 2020 by ruben-john


how to use the pool connection correctly?

0  Asked on November 25, 2020 by lucas-muoz


azure networking, azure mover failed

0  Asked on November 25, 2020 by frdric-guigui


Servicing ws:// in Node.js via Tomcat and Apache

1  Asked on November 23, 2020 by ken-y-n


change URI for tfs project

0  Asked on November 23, 2020 by akrem


Problem with symbolic links in FTP client

4  Asked on November 15, 2020 by falcata


Fibre channel multipath

0  Asked on November 11, 2020 by kab00m


NGINX Dynamic Port proxy_pass

2  Asked on November 8, 2020 by fyroc


Printer not reachable in network

2  Asked on November 4, 2020 by andrea


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir