Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Latest commit

 

History

History
69 lines (55 loc) · 2.01 KB

drivers.md

File metadata and controls

69 lines (55 loc) · 2.01 KB

cluster section parser

Default configuration

drivers default configuration

How to configure cluster section in service-configuraiton.yaml

All configurations in this section is optional. If you wanna customized these value, you can configure it in service-configuration.yaml.

For example, if you wanna reconfigure drivers.set-nvidia-runtme with a new value. You should configure it in service-configuration.yaml with the yaml style as following.

drivers:
    set-nvidia-runtme: true

Or if your cluster has already installed nvidia-driver, and do not need pai to install it again, then you can provide this info in your service-configuration.yaml like:

drivers:
    pre-installed-nvidia-path: /path/to/your/drivers

Generated Configuration

Generated configuration means the object model after parsing. The parsed data will be presented by a yaml format.

drivers:
    set-nvidia-runtme: false
    version: 384.111
    pre-installed-nvidia-path: /usr/local/nvidia

Table

Data in Configuration File Data in Cluster Object Model Data in Jinja2 Template Data type
drivers.set-nvidia-runtme com["drivers"]["set-nvidia-runtime"] cluster_cfg["drivers"]["set-nvidia-runtime"] Bool
drivers.version com["drivers"]["version"] cluster_cfg["drivers"]["version"] string
drivers.pre-installed-nvidia-path com["drivers"]["pre-installed-nvidia-path"] cluster_cfg["drivers"]["pre-installed-nvidia-path"] path string