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).
Thanks!
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:
spec:
additionalUserData:
- content: |
#!/bin/sh
sudo sed -i '2i "default-runtime": "nvidia",' /etc/docker/daemon.json && sudo systemctl restart docker
name: script.sh
type: text/x-shellscript
Answered by Sadmi on November 26, 2020
1 Asked on November 4, 2021 by brett-maes
1 Asked on November 4, 2021 by fskexp
0 Asked on November 4, 2021 by bcubk
0 Asked on November 4, 2021 by umesh
0 Asked on November 4, 2021 by wojtas-zet
1 Asked on November 4, 2021 by ajiroghene
1 Asked on November 4, 2021 by maxxer
2 Asked on March 11, 2021
2 Asked on March 4, 2021 by shailesh-sutar
1 Asked on February 28, 2021 by cj7
1 Asked on February 28, 2021 by wobbo
0 Asked on February 27, 2021 by cabz
1 Asked on February 26, 2021 by sj19
0 Asked on February 25, 2021 by hooman-bahreini
amazon elb amazon web services internet explorer load balancing
2 Asked on February 25, 2021 by user204088
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP