Offline Nvidia GPU Override file
This override file should be used to create images for use with DKP that can use GPU hardware. These override files can also be located in the Konvoy Image Builder repo.--overrides overrides/offline-nvidia.yaml
# Use this file when building a machine image, not as a override secret for preprovisioned environments
nvidia_runfile_local_file: "{{ playbook_dir}}/../artifacts/{{ nvidia_runfile_installer }}"
gpu:
types:
- nvidia
build_name_extra: "-nvidia"
GPU Override File for Air-gapped Pre-provisioned Environments
If you require your environment to consume GPU resources, add the following GPU Overrides file to your environment:
If your pre-provisioned machines need to have a default Override file like GPU, create a secret that includes the overrides in a file:
CODEcat > nvidia.yaml << EOF --- nvidia_runfile_local_file: "{{ playbook_dir}}/../artifacts/{{ nvidia_runfile_installer }}" gpu: types: - nvidia build_name_extra: "-nvidia" EOF
Create the related secret by running the following command:
CODEkubectl create secret generic $CLUSTER_NAME-user-overrides --from-file=nvidia.yaml=nvidia.yaml kubectl label secret $CLUSTER_NAME-user-overrides clusterctl.cluster.x-k8s.io/move=