You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quentin.vallin c28288639a Merge pull request 'fix/wrong_dynamic_usage' (#3) from fix/wrong_dynamic_usage into master 1 month ago
examples/default feat: add daemonset 1 month ago
.gitignore Initial commit 1 month ago
.pre-commit-config.yaml Initial commit 1 month ago
CHANGELOG.md doc: update changelog 1 month ago
Jenkinsfile feat: init 1 month ago
LICENSE feat: init 1 month ago
README.md feat: add daemonset 1 month ago
main.tf fix: wrong dynamic variable call 1 month ago
outputs.tf feat: add daemonset 1 month ago
providers.tf Initial commit 1 month ago
variables.tf feat: add daemonset 1 month ago
versions.tf feat: add daemonset 1 month ago

README.md

NVidia device kubernetes plugin

Terraform kubernetes NVidio plugin to run nodes with NVidia GPU

This repo is an adaptation of the repository https://github.com/NVIDIA/k8s-device-plugin

Requirements

Name Version
terraform >= 0.13
kubernetes >= 1.10.0
random >= 2.0

Providers

Name Version
kubernetes >= 1.10.0
random >= 2.0

Modules

No Modules.

Resources

Name
kubernetes_daemonset
random_string

Inputs

Name Description Type Default Required
annotations Map of annoations to be merged with daemonset map {} no
daemonset_name Name of the deamonset string "nvidia-driver" no
image_extra_arguments image extra aguments list [] no
image_name image name string "nvidia/k8s-device-plugin" no
image_version Version of the nvidia image string "1.11" no
labels Map of labels to be merged with daemonset map {} no
namespace Kubernates namespace string "kube-system" no
node_selector Map of key value that will be used to select appropriate nodes map
{
“kubernetes.io/os”: “linux"
}
no
toleration List of map of daemonset toleration
* key (optional): Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
* effect (optional): Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
* operator (optional): Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
* toleation_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
* value (optional): Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
map {} no

Outputs

Name Description
daemonset n/a

Versioning

This repository follows Semantic Versioning 2.0.0

Git Hooks

This repository uses pre-commit hooks.