Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

Docs

install

microk8s enable gpu

configuration options

In the microk8s enable gpu command, the following command-line arguments may be set:

ARGUMENT DEFAULT DESCRIPTION
--driver $driver auto Supported values are auto (use host driver if found), host (force use the host driver), or operator (force use the operator driver).
--version $VERSION v1.10.1 Version of the GPU operator to install.
--toolkit-version $VERSION `` If not empty, override the version of the nvidia-container-runtime that will be installed.
--set-as-default-runtime / --no-set-as-default-runtime true Set the default containerd runtime to nvidia.
--set $key=$value `` Set additional configuration options to the GPU operator Helm chart. May be passed multiple times. For a list of options see values.yaml.
--values $file `` Set additional configuration options to the GPU operator Helm chart using a file. May be passed multiple times. For a list of options see values.yaml

possible solution for add more custom values

cat <<EOF > values.yaml
devicePlugin:
  daemonset:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
          - matchExpressions:
              - key: nos.nebuly.com/gpu-partitioning
                operator: NotIn
                values:
                  - mps
EOF

microk8s enable gpu --values values.yaml

test mnicrok8s config

microk8s enable gpu --driver operator --version 22.9.0 --values values.yaml