-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add some complete samples for node_labels and dynamic vars render by inventory group #11806
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,8 +315,9 @@ persistent_volumes_enabled: false | |
## Important: if you use Ubuntu then you should set in all.yml 'docker_storage_options: -s overlay2' | ||
## Array with nvida_gpu_nodes, leave empty or comment if you don't want to install drivers. | ||
## Labels and taints won't be set to nodes if they are not in the array. | ||
# nvidia_gpu_nodes: | ||
# - kube-gpu-001 | ||
## Dynamic render gpu node list via ansible inventory group. | ||
# nvidia_gpu_nodes: "{{ groups['nvidia_gpu_nodes'] | list }}" | ||
|
||
Comment on lines
-318
to
+320
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can drop this, the nvidia_gpu_nodes which only reflect the groups is a bad idea and will be deleted eventually. |
||
# nvidia_driver_version: "384.111" | ||
## flavor can be tesla or gtx | ||
# nvidia_gpu_flavor: gtx | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ containerd_systemd_dir: "/etc/systemd/system/containerd.service.d" | |
containerd_oom_score: 0 | ||
|
||
containerd_default_runtime: "runc" | ||
# Also you can dynamic set container runtime by ansible inventory group | ||
# containerd_default_runtime: "{{ 'nvidia' if inventory_hostname in groups['nvidia_gpu_nodes'] else 'runc' }}" | ||
|
||
Comment on lines
+11
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is wrong advice, this is the kind of settings which should go in a |
||
containerd_snapshotter: "overlayfs" | ||
|
||
containerd_runc_runtime: | ||
|
@@ -27,6 +30,15 @@ containerd_additional_runtimes: [] | |
# engine: "" | ||
# root: "" | ||
|
||
# Example for Nvidia as additional runtime: | ||
# containerd_additional_runtimes: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. scrap this line and indent the rest as the example above for Kata |
||
# - name: nvidia | ||
# type: "io.containerd.runc.v2" | ||
# engine: "" | ||
# root: "" | ||
# options: | ||
# BinaryName: "/usr/bin/nvidia-container-runtime" | ||
|
||
containerd_base_runtime_spec_rlimit_nofile: 65535 | ||
|
||
containerd_default_base_runtime_spec_patch: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't be toml and ini ^.
Also, IMO that kind of vars is much more readable in yaml.