1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/featurelabeling-job.json.template
Balaji Subramaniam d96f50e7c6 1. Enabled RDT discovery.
2. Updated the ds to a job for node labelling.
3. Added script to run a job in each node.
4. Updated Readme.
2016-07-12 02:30:49 +02:00

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"
}
}
}
}