Skip to main content
Skip table of contents

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

CODE
# 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:

  1. If your pre-provisioned machines need to have a default Override file like GPU, create a secret that includes the overrides in a file:

    CODE
    cat > nvidia.yaml << EOF 
    ---
    nvidia_runfile_local_file: "{{ playbook_dir}}/../artifacts/{{ nvidia_runfile_installer }}"
    gpu:
      types:
        - nvidia
    build_name_extra: "-nvidia"
    EOF
  2. Create the related secret by running the following command:

    CODE
    kubectl 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=
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.