2016-07-01 18:46:05 +00:00
|
|
|
{
|
|
|
|
"apiVersion": "extensions/v1beta1",
|
2016-07-12 00:30:49 +00:00
|
|
|
"kind": "Job",
|
2016-07-01 18:46:05 +00:00
|
|
|
"metadata": {
|
|
|
|
"labels": {
|
|
|
|
"app": "dbi-nodelabel"
|
|
|
|
},
|
|
|
|
"name": "dbi-nodelabel"
|
|
|
|
},
|
|
|
|
"spec": {
|
2016-07-12 00:30:49 +00:00
|
|
|
"completions": COMPLETION_COUNT,
|
|
|
|
"parallelism": PARALLELISM_COUNT,
|
2016-07-01 18:46:05 +00:00
|
|
|
"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",
|
2016-07-12 00:30:49 +00:00
|
|
|
"ports": [
|
|
|
|
{
|
|
|
|
"containerPort": 2233,
|
|
|
|
"hostPort": 7156
|
2016-07-01 18:46:05 +00:00
|
|
|
}
|
2016-07-12 00:30:49 +00:00
|
|
|
]
|
2016-07-01 18:46:05 +00:00
|
|
|
}
|
2016-07-12 00:30:49 +00:00
|
|
|
],
|
|
|
|
"restartPolicy": "Never"
|
2016-07-01 18:46:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|