kubemark: static binary, replace deprecated --log-file parameter
The --log-file parameter will be deprecated as of Kubernetes 1.23 and should be avoided. The replacement for distroless images is the image with go-runner, a tool that handles output redirection. For kubemark to run in that image it must be built as static binary.
This commit is contained in:
@@ -49,12 +49,12 @@ spec:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
command: [
|
||||
"/go-runner",
|
||||
"-log-file=/var/log/kubelet-$(NODE_NAME).log",
|
||||
"/kubemark",
|
||||
"--morph=kubelet",
|
||||
"--name=$(NODE_NAME)",
|
||||
"--kubeconfig=/kubeconfig/kubelet.kubeconfig",
|
||||
"--log-file=/var/log/kubelet-$(NODE_NAME).log",
|
||||
"--logtostderr=false",
|
||||
"--node-labels={{hollow_node_labels}}",
|
||||
{{hollow_kubelet_params}}
|
||||
]
|
||||
@@ -80,12 +80,12 @@ spec:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
command: [
|
||||
"/go-runner",
|
||||
"-log-file=/var/log/kubeproxy-$(NODE_NAME).log",
|
||||
"/kubemark",
|
||||
"--morph=proxy",
|
||||
"--name=$(NODE_NAME)",
|
||||
"--kubeconfig=/kubeconfig/kubeproxy.kubeconfig",
|
||||
"--log-file=/var/log/kubeproxy-$(NODE_NAME).log",
|
||||
"--logtostderr=false",
|
||||
{{hollow_proxy_params}}
|
||||
]
|
||||
volumeMounts:
|
||||
|
Reference in New Issue
Block a user