Story Details

  • Nvidia GPU on bare metal NixOS Kubernetes cluster explained

    Posted: 2025-03-02 20:26:21

    This blog post details setting up a bare-metal Kubernetes cluster on NixOS with Nvidia GPU support, focusing on simplicity and declarative configuration. It leverages NixOS's package management for consistent deployments across nodes and uses the toolkit's modularity to manage complex dependencies like CUDA drivers and container toolkits. The author emphasizes using separate NixOS modules for different cluster components—Kubernetes, GPU drivers, and container runtimes—allowing for easier maintenance and upgrades. The post guides readers through configuring the systemd unit for the Nvidia container toolkit, setting up the necessary kernel modules, and ensuring proper access for Kubernetes to the GPUs. Finally, it demonstrates deploying a GPU-enabled pod as a verification step.

    Summary of Comments ( 6 )
    https://news.ycombinator.com/item?id=43234666

    Hacker News users discussed various aspects of running Nvidia GPUs on a bare-metal NixOS Kubernetes cluster. Some questioned the necessity of NixOS for this setup, suggesting that its complexity might outweigh its benefits, especially for smaller clusters. Others countered that NixOS provides crucial advantages for reproducible deployments and managing driver dependencies, particularly valuable in research and multi-node GPU environments. Commenters also explored alternatives like using Ansible for provisioning and debated the performance impact of virtualization. A few users shared their personal experiences, highlighting both successes and challenges with similar setups, including issues with specific GPU models and kernel versions. Several commenters expressed interest in the author's approach to network configuration and storage management, but the author didn't elaborate on these aspects in the original post.