Browse Source

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

pull/3721/head
Erwan Miran 6 years ago
committed by k8s-ci-robot
parent
commit
3e6d0a50e8
1 changed files with 22 additions and 0 deletions
  1. 22
      roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json

22
roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json

@ -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}"
}
]
Loading…
Cancel
Save