1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-15 04:57:56 +00:00
node-feature-discovery/node-feature-discovery-job.json.template
Markus Lehtonen 01e2110a5c Make it possible to run nfd as a DaemonSet (#105)
* Re-order imports in main.go alphabetically
* Refactor argument parsing
* Run nfd periodically in a loop by default
* Implement --sleep-interval command line option
* Add template for running nfd as a Kubernetes DaemonSet
2018-04-11 09:33:06 -07:00

62 lines
1.4 KiB
Text

{
"apiVersion": "batch/v1",
"kind": "Job",
"metadata": {
"labels": {
"app": "node-feature-discovery"
},
"name": "node-feature-discovery"
},
"spec": {
"completions": COMPLETION_COUNT,
"parallelism": PARALLELISM_COUNT,
"template": {
"metadata": {
"labels": {
"app": "node-feature-discovery"
}
},
"spec": {
"hostNetwork": true,
"containers": [
{
"env": [
{
"name": "NODE_NAME",
"valueFrom": {
"fieldRef": {
"fieldPath": "spec.nodeName"
}
}
}
],
"image": "quay.io/kubernetes_incubator/node-feature-discovery:v0.1.0",
"name": "node-feature-discovery",
"args": ["--oneshot"],
"ports": [
{
"containerPort": 7156,
"hostPort": 7156
}
],
"volumeMounts": [
{
"name": "host-sys",
"mountPath": "/host-sys"
}
]
}
],
"restartPolicy": "Never",
"volumes": [
{
"name": "host-sys",
"hostPath": {
"path": "/sys"
}
}
]
}
}
}
}