23 lines
537 B
JSON
23 lines
537 B
JSON
|
[
|
||
|
{
|
||
|
"op": "add",
|
||
|
"path": "/spec/template/spec/containers/0/env",
|
||
|
"value": [
|
||
|
{
|
||
|
"name": "NODE_NAME",
|
||
|
"valueFrom": {
|
||
|
"fieldRef": {
|
||
|
"apiVersion": "v1",
|
||
|
"fieldPath": "spec.nodeName"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"op": "add",
|
||
|
"path": "/spec/template/spec/containers/0/command/-",
|
||
|
"value": "--hostname-override=${NODE_NAME}"
|
||
|
}
|
||
|
]
|