We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff09141 commit 3e6d0a5Copy full SHA for 3e6d0a5
roles/win_nodes/kubernetes_patch/files/hostnameOverride-patch.json
@@ -0,0 +1,22 @@
1
+[
2
+ {
3
+ "op": "add",
4
+ "path": "/spec/template/spec/containers/0/env",
5
+ "value": [
6
7
+ "name": "NODE_NAME",
8
+ "valueFrom": {
9
+ "fieldRef": {
10
+ "apiVersion": "v1",
11
+ "fieldPath": "spec.nodeName"
12
+ }
13
14
15
+ ]
16
+ },
17
18
19
+ "path": "/spec/template/spec/containers/0/command/-",
20
+ "value": "--hostname-override=${NODE_NAME}"
21
22
+]
0 commit comments