mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
d96f50e7c6
2. Updated the ds to a job for node labelling. 3. Added script to run a job in each node. 4. Updated Readme.
54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
{
|
|
"apiVersion": "extensions/v1beta1",
|
|
"kind": "Job",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "dbi-nodelabel"
|
|
},
|
|
"name": "dbi-nodelabel"
|
|
},
|
|
"spec": {
|
|
"completions": COMPLETION_COUNT,
|
|
"parallelism": PARALLELISM_COUNT,
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "dbi-nodelabel"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "POD_NAME",
|
|
"valueFrom": {
|
|
"fieldRef": {
|
|
"fieldPath": "metadata.name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "POD_NAMESPACE",
|
|
"valueFrom": {
|
|
"fieldRef": {
|
|
"fieldPath": "metadata.namespace"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"image": "intelsdi/nodelabels",
|
|
"name": "nodelabeler",
|
|
"ports": [
|
|
{
|
|
"containerPort": 2233,
|
|
"hostPort": 7156
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Never"
|
|
}
|
|
}
|
|
}
|
|
}
|