Addition of the missing patch file hostnameOverride-patch.json from PR#3708 (#3714)

This commit is contained in:
Erwan Miran 2018-11-15 19:37:57 +01:00 committed by k8s-ci-robot
parent ff09141a14
commit 3e6d0a50e8

View file

@ -0,0 +1,22 @@
[
{
"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}"
}
]